diff options
Diffstat (limited to 'RepSys/log.py')
-rw-r--r-- | RepSys/log.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/RepSys/log.py b/RepSys/log.py index d6d13e3..85d502f 100644 --- a/RepSys/log.py +++ b/RepSys/log.py @@ -97,6 +97,7 @@ class _Release(_Revision): revisions = [] release_revisions = [] authors = [] + visible = False def __init__(self, **kwargs): self.revisions = [] @@ -137,13 +138,8 @@ 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(): @@ -226,8 +222,11 @@ def make_release(author=None, revision=None, date=None, lines=None, rel.date = (date and parse_raw_date(date)) or None rel.lines = lines rel.released = released + rel.visible = False for entry in entries: lines = filter_log_lines(entry.lines) + if lines: + rel.visible = True revision = _Revision() revision.revision = entry.revision revision.lines = format_lines(lines) |