diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2008-07-17 12:24:13 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2008-07-17 12:24:13 +0000 |
commit | 0af96a9eb0e69191d5fb5d5dcfa35a287bcc31b4 (patch) | |
tree | 36d7169f0356d670baf92ec554c78d95084ce2ef /RepSys | |
parent | 397263470f9603677a6adccff62301ddd032012b (diff) | |
download | mgarepo-0af96a9eb0e69191d5fb5d5dcfa35a287bcc31b4.tar mgarepo-0af96a9eb0e69191d5fb5d5dcfa35a287bcc31b4.tar.gz mgarepo-0af96a9eb0e69191d5fb5d5dcfa35a287bcc31b4.tar.bz2 mgarepo-0af96a9eb0e69191d5fb5d5dcfa35a287bcc31b4.tar.xz mgarepo-0af96a9eb0e69191d5fb5d5dcfa35a287bcc31b4.zip |
Don't hide authors with only the first revision SILENTed (#41117)
Diffstat (limited to 'RepSys')
-rw-r--r-- | RepSys/log.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/RepSys/log.py b/RepSys/log.py index 2eadbe2..ca1d107 100644 --- a/RepSys/log.py +++ b/RepSys/log.py @@ -45,7 +45,7 @@ $line #end for #for $author in $rel.authors - #if $author.revisions and not $author.revisions[0].lines + #if not $author.visible #continue #end if ##alternatively, one could use: @@ -176,6 +176,7 @@ class _Author: name = None email = None revisions = None + visible = False def group_releases_by_author(releases): @@ -196,13 +197,14 @@ def group_releases_by_author(releases): author.name = revs[0].author_name author.email = revs[0].author_email author.revisions = revs + # #41117: mark those authors without visible messages + author.visible = bool(sum(len(rev.lines) for rev in revs)) revlatest = author.revisions[0] # keep the latest revision even for completely invisible # authors (below) if latest is None or revlatest.revision > latest.revision: latest = revlatest - count = sum(len(rev.lines) for rev in author.revisions) - if count == 0: + if not author.visible: # only sort those visible authors, invisible ones are used # only in "latest" continue @@ -302,11 +304,11 @@ def make_release(author=None, revision=None, date=None, lines=None, 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) + if revision.lines: + rel.visible = True revision.date = parse_raw_date(entry.date) revision.raw_date = entry.date revision.author = entry.author |