diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-01-30 20:56:26 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-01-30 20:56:26 +0000 |
commit | dfbe875f5fed1fdd017eba2d460c53b8b7cd2658 (patch) | |
tree | f59afca6a3f45abd45a9a7586e9e8884c6bf3377 | |
parent | f2d171495ab3387cb95256accd5db304f8db0f86 (diff) | |
download | mgarepo-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.py | 9 |
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(): |