Commit graph

375 commits

Author SHA1 Message Date
Adam Waldenberg
13b11f4961 Added HTML output to the missing module. 2013-03-14 00:47:40 +01:00
Adam Waldenberg
e4cf02afa2 Added HTML output to the filtering module. 2013-03-11 10:22:54 +01:00
Adam Waldenberg
94cd12da8d Added HTML output to the extensions module. 2013-03-11 09:59:13 +01:00
Adam Waldenberg
bc9503928f Changed the HTML output to a pure single-column output. 2013-03-11 09:43:51 +01:00
Adam Waldenberg
53b0cfba37 The default output functions now properly print the name of the class. 2013-03-11 09:06:05 +01:00
Adam Waldenberg
37c4260149 Added an Outputable class and worked a little more on the HTML output.
The Outputable class is now the base class of all the classes that want to
output formatted text. This is more object oriented and cleaner solution
compared to the previous implementation.
2013-03-11 00:23:50 +01:00
Adam Waldenberg
267a00dae4 Removed XML output from version module.
Instead of directly supporting the version module, XML and HTML output will
instead always output a version string somewhere to indicate with what
version of gitinspector the output was generated.
2013-03-11 00:12:35 +01:00
Adam Waldenberg
3e8d6434e8 Perfected the look of the HTML output from the blame module.
This output is a good start and should work fine as a first template that
can be used when implementing HTML output in all other modules.

Once this is done we can work on adding some interactivity. However; it
might be a good idea to just release a version with some simple HTML
output before adding more complex stuff.
2012-11-17 02:58:56 +01:00
Adam Waldenberg
f4c8aa05b5 Created an initial version of the HTML in the blame module.
Currently, the output is very rough and needs a lot of work. However, the
integration with flot and all data output seems to be correct.
2012-11-17 00:35:56 +01:00
Adam Waldenberg
369290fc25 Extended the HTML header with some initial CSS.
The pie-chart plugin script was also added to the head of the document.
2012-11-17 00:33:47 +01:00
Adam Waldenberg
e833ac1c9b Fixed some violations reported by pylint. 2012-11-13 12:18:30 +01:00
Adam Waldenberg
1b89bf150b Scaled down the gitinspector piclet to a 48x48 pixel size. 2012-11-13 11:28:39 +01:00
Adam Waldenberg
527d47ecae gitinspector can now be executed from another directory again.
This was broken when the loading of external resources for the HTML output
was added.

This fix should also improve compatibility with py2exe.
2012-11-13 11:27:56 +01:00
Adam Waldenberg
6ee7ad71ab The scripts from the flot archive are now included in the HTML output.
The gitinspector piclet was also added to the generated HTML.
2012-11-13 00:49:26 +01:00
Adam Waldenberg
ffdad930cf Added a gitinspector "piclet" to the html directory. 2012-11-13 00:46:28 +01:00
Adam Waldenberg
6625651366 HTML header and footer is now properly outputted. 2012-11-03 02:13:53 +01:00
Adam Waldenberg
4e2c690962 Created an html directory and added the Flot distribution archive to it.
Flot is a javascript plotting library for charts. It uses JQuery, is very
common and has a good compatibility between different browsers.

We will use this library for data representation in the HTML output mode.
2012-11-03 01:45:24 +01:00
Adam Waldenberg
e5762eda3f Implemented support for XML output in the missing module. 2012-11-03 01:26:49 +01:00
Adam Waldenberg
28871199df Added missing shell parameter to subprocess.call() during file checkout.
This is a long-standing bug that has gone undetected until now.
2012-11-03 01:25:53 +01:00
Adam Waldenberg
695a2b98df Implemented support for XML output in the filtering module. 2012-11-03 01:08:08 +01:00
Adam Waldenberg
5b8ce8c1e8 Implemented support for XML output in the responsibilities module. 2012-11-03 00:47:16 +01:00
Adam Waldenberg
0669adc560 Implemented support for XML output in the metrics module. 2012-10-23 11:25:52 +02:00
Adam Waldenberg
c4b108b7ff Fixed broken --version text output. 2012-10-21 01:27:50 +02:00
Adam Waldenberg
a72a29212a Implemented support for XML output in the timeline module. 2012-10-21 01:22:21 +02:00
Adam Waldenberg
4170c00c03 Added missing gitinspector tag to the XML output of the version flag.
This got accidentally removed when the implementation of the footer and
header functions in the format module were added.
2012-10-21 00:42:31 +02:00
Adam Waldenberg
00baf350a8 Implemented support for XML output in the extensions module. 2012-10-19 02:01:10 +02:00
Adam Waldenberg
e4a1b6ea15 The blame module now only shows progress in text format output. 2012-10-19 02:00:34 +02:00
Adam Waldenberg
77111094b6 Added a missing newline output in the changes module. 2012-10-18 17:01:40 +02:00
Adam Waldenberg
8afc57edcc Implemented support for XML output in the blame module. 2012-10-18 17:00:35 +02:00
Adam Waldenberg
a557ff9944 Implemented output_header/footer() in the format module.
This enables us to fetch XML output from multiple sources in-between the
footer and header. These functions are called at the beginning and end
when gitinspector runs.
2012-10-18 16:59:52 +02:00
Adam Waldenberg
d9c94b53d6 Fixed the packing and unpacking of parameters in the format module.
Forgot to specify the '*' operator when passing the parameters to the
callback functions; something which resulted in a dictionary being sent
into the callback functions. Obviously, this is not what we want.
2012-10-18 16:56:46 +02:00
Adam Waldenberg
e11606bcaf Implemented support for XML output in the changes module. 2012-10-18 15:35:23 +02:00
Adam Waldenberg
ed92376d35 Implemented support for XML output in the version module. 2012-10-18 15:34:16 +02:00
Adam Waldenberg
fb0b29c6c5 The format module now supports function callbacks for different formats.
There is now a call_output_function() which automatically decides which
function (of any three supplied ones) should be called.
2012-10-18 15:32:55 +02:00
Adam Waldenberg
ac5c5ddb31 Added format module with initial support for different formats.
Currently this does nothing but will later enable us to output xml and
html alongside the current support for text output.
2012-10-12 12:52:35 +02:00
Adam Waldenberg
b18e31a20b Updated help text (-h) to describe the --grading flag instead of --tda367. 2012-10-09 23:00:47 +02:00
Adam Waldenberg
28d7981bdf The flag --tda367 has been changed to --grading; making it more general. 2012-10-09 23:00:27 +02:00
Adam Waldenberg
12159cd398 Bumped the version number to 0.1.0. 2012-05-29 03:15:29 +02:00
Adam Waldenberg
35dc497e94 Removed keyword arguments from the decode() calls.
This makes the code compatible with Python 2.6 again.
2012-05-29 03:13:49 +02:00
Adam Waldenberg
c59c8c23eb More changes done to improve compatibility with Python 3.
Changed from using the deprecated functions in the os module to using the
new ones in the subprocess module. All string reading now also uses the
string.decode() function, which seems to be recommended practice whenever
the input is a little "iffy".
2012-05-28 16:35:47 +02:00
Adam Waldenberg
2d48510777 Updated the whole project to be compatible with Python 3. 2012-05-25 16:42:29 +02:00
Adam Waldenberg
22809a3b53 Extended help to better describe the -x (--exclude) parameter. 2012-05-25 14:28:43 +02:00
Adam Waldenberg
949b62736c Added a responsibilities parameter that shows which author has done what.
The responsibilities module shows a maximum of 10 files, per author, that each
author is responsible for. This fucntionality can be enabled by supplying -r
or --responsibilities to gitinspector. The parameter is also enabled if
--tda367 is specified.
2012-05-25 14:27:28 +02:00
Adam Waldenberg
0fa883eb55 Now only clears the row before blame statistics if on a real terminal. 2012-05-24 02:41:34 +02:00
Adam Waldenberg
ed501fe757 Longer file names are now generated when "git log" runs in the changes module.
The default setting configures printed file names to fit to a 80 character
wide terminal; something that destroys the ability to do proper filtering of
long file names in gitinspector.
2012-05-24 02:03:57 +02:00
Adam Waldenberg
706dd6c07a Appropriate modules now take the terminal width into consideration. 2012-05-24 02:00:24 +02:00
Adam Waldenberg
1e8e60574f The terminal module now also checks if the terminal actually is a terminal.
The output is now limited to 80 characters; this is useful when cat'ing to a
file and terminal.get_size() is called. The previous behaviour was to always
output according to the terminal width, something that probably isn't what
someone usually wants when outputting to a file.
2012-05-24 01:30:51 +02:00
Adam Waldenberg
1d30ffa7f4 The changes module now excludes commits without any valid FileDiff entries. 2012-05-24 00:56:19 +02:00
Adam Waldenberg
96e87ae457 Added a constant to the blame module for the number of threads. 2012-05-23 09:18:50 +02:00
Adam Waldenberg
35b4194b40 Fixed a few misstakes in the help text. 2012-05-23 00:17:28 +02:00