Commit graph

423 commits

Author SHA1 Message Date
Adam Waldenberg
5275521a9a Added author and license meta data to gitinspector piclet image. 2015-11-26 00:58:30 +01:00
Adam Waldenberg
ecc67a31a5 Repositories are now merged with __iadd__() instead of __add__().
Thus, we are overriding the "+=" operator instead of "+". This
implementation results in a much cleaner solution as we were directly
updating "self" when overriding __add__(), something which isn't really
an acceptable solution as we were changing the supplied in-parameters.
2015-11-25 17:28:50 +01:00
Adam Waldenberg
9bd4b979b3 Fixed confusing variable names in JSON output functions and methods.
These functions and methods were originally based on the XML output.
Consequently, those variable names were also preserved. All "<name>_xml"
variables are now named "<name>_json" instead.
2015-11-24 21:20:35 +01:00
Adam Waldenberg
bfde70db91 Include author email in JSON and HTML outputs (Fixes #85). 2015-11-24 21:02:32 +01:00
Adam Waldenberg
12f8c8a192 Use repos_string instead of repos[0].name in JSON output in format.py. 2015-11-07 05:55:14 +01:00
Adam Waldenberg
9a22763e64 Added missing line break in format.__get_zip_file_content__(...). 2015-11-07 05:52:23 +01:00
Adam Waldenberg
346645d655 The format.__output_html_template__(...) function now cleans up. 2015-11-07 05:51:40 +01:00
Adam Waldenberg
91d94446a7 The logo in the HTML output now links to the gitinspector page. 2015-11-04 05:56:52 +01:00
Adam Waldenberg
88d840dd51 Gitinspector now has a better and more clear logo. 2015-11-04 05:31:24 +01:00
Adam Waldenberg
26f77e0ee4 The XML output now prints repositories in a proper XML list.
If one repository is found, the following format is used:

<repository>name</repository>

If multiple repositories are found, the following format is used:

<repositories>
	<repository>name</repository>
	<repository>name</repository>
	...
</repositories>
2015-11-03 23:00:17 +01:00
Adam Waldenberg
4d6ecd3123 Avoid hyphen characters ("-") in JSON properties.
Using that character is obviously a bad idea, as it is reserved
for substraction in most programming languages; making output a
hassle to parse.
2015-11-03 22:52:17 +01:00
Adam Waldenberg
9b3a5b674e Some output was missing in the JSON output.
Repository names, gitinspector version and report date were all missing
from the output when JSON was selected.
2015-11-03 22:42:23 +01:00
Adam Waldenberg
87fd5b467f Upgraded the JQuery version in the flot archive to 1.9.1 (#28).
This is the minimal version required by Bootstrap3 (which we will
base the new responsive HTML theme on). This upgrade required changes
to the JavaScript code, as toggle(...) has been deprecated since
version 1.9.x of JQuery.
2015-11-03 04:25:40 +01:00
Adam Waldenberg
4fd918fca4 Fixed some pylint violations. 2015-11-03 00:44:47 +01:00
Adam Waldenberg
949a301698 Fixed a few typo mistakes in the HTML output of the format module. 2015-11-03 00:36:05 +01:00
Adam Waldenberg
211060c20e Updated the flot archive to version 0.8.3. 2015-11-03 00:33:16 +01:00
Adam Waldenberg
9ada057d81 Progress output now includes repository name (#24).
The name of the repository is only printed when multiple repositories
are specified. Otherwise, gitinspector falls back to the previous
behavior
2015-11-02 18:22:56 +01:00
Adam Waldenberg
7dda8d34b5 Made terminal.output_progress(...) aware of the terminal width.
Instead of clearing the row using the "\b" character on each
iteration, the function now passes a carriage return ("\r") instead.
Furthermore, the row is now always completely cleared before
printing the progress.
2015-11-02 18:02:54 +01:00
Adam Waldenberg
d5106a7302 Implemented validation and printing of all supplied repositories (#24).
Upon start-up, now directly passes all supplied paths to git in order
to check if all of them point to a valid git repository.

The clone.create() function now returns a list of Repository instances,
containing the name and location of the repository. This is later
used in the gitinspector module to execute and parse the repository.

format.output_header(...) now takes a list of Repository instances.
Thanks to this, each output format can print every supplied repository.
2015-11-02 02:30:28 +01:00
Adam Waldenberg
01bdbfaba1 basedir.get_basedir_git() now takes an optional path argument.
This enables us to change the working directory for the git commands
in the function upon request. This change is in preparation of the
completion of #24.
2015-11-01 17:19:46 +01:00
Adam Waldenberg
7f5b50cd0d Fixed formatting bug in the JSON output of the metrics module.
Sections in the metrics output were not being separated with a comma,
leading to invalid JSON.
2015-11-01 03:45:44 +01:00
Adam Waldenberg
802f18e7e5 The metrics module now supports multiple repositories (See issue #24). 2015-11-01 03:36:40 +01:00
Adam Waldenberg
7acf871ab1 Help text now mentions support for multiple repos (See issue #24). 2015-10-31 05:11:10 +01:00
Adam Waldenberg
98615ccbfc Support for multiple repositories is near completion (See issue #24).
Only the metrics module is lacking support. While the rest should work,
please note that it is completely untested as of now and probably
has some rough edges.
2015-10-31 05:10:00 +01:00
Adam Waldenberg
46b21db196 The changes module now supports multiple repositories (See issue #24).
Just as before, all other parts of gitinspector currently do not
support fetching statistics from multiple repositories and just
simply fetch data from the last repository specified.
2015-10-31 03:44:00 +01:00
Adam Waldenberg
3bae1be0cb Fixed faulty import in metricsoutput module. 2015-10-31 02:22:25 +01:00
Adam Waldenberg
9287b187f7 Fixed some pylint violations. This also takes care of some bugs. 2015-10-31 00:03:51 +01:00
Adam Waldenberg
dd2feedbe4 Fixed invalid indentation at begining of file in gitinspector.py. 2015-10-30 23:54:04 +01:00
Adam Waldenberg
e0941fdcf1 The gitinspector.py entry module now considers all repositories.
While they are considered, they are not yet being merged. Statistics
are only calculated for the last repository passed.

This is being done in preparation of completing issue #24.
2015-10-30 23:46:13 +01:00
Adam Waldenberg
109a94e1e7 The basedir module is no longer persistent (doesn't remember state).
This is required in order for it to be callable multiple times for
multiple repositories (Needed for #24).
2015-10-30 23:29:03 +01:00
Adam Waldenberg
258eefa1e7 The clone module can now handle multiple repositories.
This is needed to allow gitinspector to be able to clone multiple
repositories during the same execution (Needed for #24).
2015-10-30 23:16:33 +01:00
Adam Waldenberg
d88ff2c5b9 Slight cleanup in gitinspector.py.
Renamed all "local" declarations in main().
2015-10-30 03:41:09 +01:00
Adam Waldenberg
c01a59430c Rewrote the config module into a class (GitConfig).
This class takes the initialization variable "global_only" which
will be set in the future whenever multiple repositories are
specified (See issue #24).

This will make sure that the git configuration is only read from the
global settings instead of per-repository.
2015-10-30 01:24:33 +01:00
Adam Waldenberg
5af89f798a Added a note about the supplied Debian packages to README.md. 2015-10-29 03:58:09 +01:00
Adam Waldenberg
d30715cc84 The changes module now also outputs the progress when in text mode.
Furthermore, the output also shows the pass currently running. This is
important, as the progress goes from 0 to 100%, twice.
2015-10-29 03:37:08 +01:00
Adam Waldenberg
ce91c4176a Moved blame.Blame.output_progress to terminal.output_progress.
This enables us to output progress from multiple modules.
2015-10-29 03:36:53 +01:00
Adam Waldenberg
6606d8b13c Progress from the blame module is now printed regardless of --hard. 2015-10-29 03:36:49 +01:00
Adam Waldenberg
1ed9b5e3cf Re-factored the changes module and made it more independent.
This will make it easier to add support for the merging of statistics from
multiple repositories (as discussed in issue #24).
2015-10-29 03:09:46 +01:00
Adam Waldenberg
fa04eb57f3 Bumped the version number to the next development iteration. 2015-10-29 02:25:20 +01:00
Adam Waldenberg
d941487280 Imported CHANGES.txt from most recent extra-release branch. 2015-10-29 01:32:15 +01:00
Adam Waldenberg
d8dfecb19a Updated typo in RESPONSIBILITIES_INFO_TEXT in all translations.
Also regenerated all .mo files, so these should now all be up-to-date.
2015-10-29 00:11:26 +01:00
Adam Waldenberg
4bd723eea0 Chinese help text would not fit on a 80 character terminal. 2015-10-28 23:59:57 +01:00
Adam Waldenberg
859224f36f Wrong translator specified in Chinese translation. 2015-10-28 23:56:48 +01:00
Bill Wang
5ee5127b15 Fixed typos in RESPONSIBILITIES_INFO_TEXT.
This also requires changes to the templates of the translations.
2015-10-28 23:23:33 +01:00
Bill Wang
75b528a84a Updated Chinese translation (Fixes #11). 2015-10-28 23:23:23 +01:00
Adam Waldenberg
8a0ba3dca1 Updated the header and .mo file of the Italian translation. 2015-10-28 01:01:39 +01:00
Luca Motta
58a983ed27 Updated the Italian translation (Fixes #20). 2015-10-28 00:49:39 +01:00
Adam Waldenberg
eec6741cfb Updated header information of french translation and generated .mo file. 2015-10-26 02:19:42 +01:00
Yannick Moy
21c6346868 Updated French translation: help messages. 2015-10-25 21:56:13 +01:00
Adam Waldenberg
78831c1b9b Fixed slight mistake and updated header information in Polish translation.
Also took the opportunity to regenerate the .mo file.
2015-10-24 23:24:28 +02:00