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 | |
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)
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | RepSys/log.py | 12 | ||||
-rw-r--r-- | default.chlog | 2 |
3 files changed, 9 insertions, 6 deletions
@@ -14,6 +14,7 @@ log section - added rpmlog options: -o to append the old changelog, -p to append the changelog found in the spec, and -s to resort all changelog entries +- don't hide authors with only the first revision SILENTed (#41117) - allow submitting many packages at once (#28352) - package revisions in submit are now specified with name@nnn - fixed bad url used when using -v in getsrpm 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 diff --git a/default.chlog b/default.chlog index 93dcd1b..a7f9f4a 100644 --- a/default.chlog +++ b/default.chlog @@ -22,7 +22,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: |