aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-01-30 20:56:26 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-01-30 20:56:26 +0000
commitdfbe875f5fed1fdd017eba2d460c53b8b7cd2658 (patch)
treef59afca6a3f45abd45a9a7586e9e8884c6bf3377
parentf2d171495ab3387cb95256accd5db304f8db0f86 (diff)
downloadmgarepo-dfbe875f5fed1fdd017eba2d460c53b8b7cd2658.tar
mgarepo-dfbe875f5fed1fdd017eba2d460c53b8b7cd2658.tar.gz
mgarepo-dfbe875f5fed1fdd017eba2d460c53b8b7cd2658.tar.bz2
mgarepo-dfbe875f5fed1fdd017eba2d460c53b8b7cd2658.tar.xz
mgarepo-dfbe875f5fed1fdd017eba2d460c53b8b7cd2658.zip
Hide authors with only SILENTed changesets.
-rw-r--r--RepSys/log.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/RepSys/log.py b/RepSys/log.py
index 535287d..d6d13e3 100644
--- a/RepSys/log.py
+++ b/RepSys/log.py
@@ -94,7 +94,9 @@ class _Revision:
class _Release(_Revision):
version = None
release = None
- revisions = None
+ revisions = []
+ release_revisions = []
+ authors = []
def __init__(self, **kwargs):
self.revisions = []
@@ -135,8 +137,13 @@ def group_releases_by_author(releases):
for release in releases:
authors = {}
for revision in release.revisions:
+ if not revision.lines:
+ continue
authors.setdefault(revision.author, []).append(revision)
+ if not authors:
+ continue
+
# all the mess below is to sort by author and by revision number
decorated = []
for authorname, revs in authors.iteritems():