Commit graph

455 commits

Author SHA1 Message Date
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
Kamila Chyla
79e390afe8 Updated Polish translation: help messages. 2015-10-24 19:00:54 +02:00
Adam Waldenberg
81e18ff075 Small tweaks to the header of the german translation.
It now correctly references the current pot and version. Consequently, it
should be usable without generating a warning from the current
development iteration of gitinspector.
2015-10-24 17:34:21 +02:00
xxyy
b0e7bb5ae9 Update German translation; Fixes #25
This commit updates the German translation. Changes in translation
include updating for changed messages in upstream and some rewording.
Also, this commit includes a different translation for "cyclomatic
complexity" because the previously used one (by inventor's name)
might be less clear than the current, literal translation, which seems
more intuitive, especially in a world where English is dominant in
software dev, so people are more likely to know only the English word.

Some translations have been changed to be more clear and to the point.
Some comments have been added to messages that have been causing issues.
2015-10-24 12:20:49 +02:00
Adam Waldenberg
b4eb5484ac README.md now includes a note about JSON being supported. 2015-10-24 03:08:35 +02:00
Adam Waldenberg
bbe07f061d Added support for JSON output format (Fixes #50). 2015-10-24 02:44:45 +02:00
Adam Waldenberg
cff8dd109b Fixed minor mistake in the filtering XML output.
Nothing that really affects functionality. However, a string was doing
some unnecessary string.format calls.
2015-10-22 00:36:11 +02:00
Adam Waldenberg
124636cb85 Restructured imports slightly. 2015-10-21 05:26:20 +02:00
Adam Waldenberg
e9eab37c83 Added a new gitinspector.py entry script. 2015-10-21 05:07:47 +02:00
Marc Harper
59d9e5c7ae Try block unneeded in localization.py import 2015-10-20 09:51:42 -07:00
Marc Harper
4f3e0d3073 Restore relative imports of changes and filtering 2015-10-20 09:48:32 -07:00
Marc Harper
9abb9b3d56 Relative imports to fix packaging issues 2015-10-20 09:40:08 -07:00
Adam Waldenberg
f2a4cb92d3 Always append the root gitinspector package to sys.path (Fixes #73).
With this change, gitinspector once again functions in conjunction with
egg installations. Also removed all forceful absolute imports, as these
really aren't needed.
2015-10-15 17:01:57 +02:00
Adam Waldenberg
d333f7bdd2 Updated copyright notices of recently updated files. 2015-10-12 03:18:57 +02:00
Adam Waldenberg
1f2f120389 Fixed pylint violations reported by a newer version of pylint. 2015-10-12 03:15:30 +02:00
Adam Waldenberg
34337dec17 Refactored all outputable modules.
This prepares the source code for the changes discussed in issue #24.

Note that this is just a quick restructuring in order to see the resulting
classes and separation. More work will be done to make it more elegant
and with less dependencies between modules.
2015-10-12 03:03:07 +02:00
Adam Waldenberg
6aa41ade9f Bumped the version number to the next development iteration. 2015-10-12 00:48:30 +02:00
Adam Waldenberg
fa483b4327 Bumped the version number to 0.4.2. 2015-10-12 00:47:46 +02:00
Adam Waldenberg
5259b76b94 The localization module now warns when finding an out of date translation.
While allowing us to include translations that are not quite up to date
with the current development branch in releases, it also serves to inform
the user that they are using a translation that is broken or incomplete.
2015-10-09 03:02:06 +02:00