diff options
Diffstat (limited to 'RepSys/log.py')
-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(): |