aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rw-r--r--RepSys/log.py12
-rw-r--r--default.chlog2
3 files changed, 9 insertions, 6 deletions
diff --git a/CHANGES b/CHANGES
index 198ef9b..cc9966f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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: