aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/log.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-03-15 18:40:24 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-03-15 18:40:24 +0000
commitb98cc32e7546d0cb90ce6df763a9515045750924 (patch)
tree786307a8ec435d3c384c774a7820cee19d99007b /RepSys/log.py
parentfa714df32fc64fecdf766bdc9ba801ddc07ce536 (diff)
downloadmgarepo-b98cc32e7546d0cb90ce6df763a9515045750924.tar
mgarepo-b98cc32e7546d0cb90ce6df763a9515045750924.tar.gz
mgarepo-b98cc32e7546d0cb90ce6df763a9515045750924.tar.bz2
mgarepo-b98cc32e7546d0cb90ce6df763a9515045750924.tar.xz
mgarepo-b98cc32e7546d0cb90ce6df763a9515045750924.zip
Make releases with only SILENTed messages will result in a warning, not to
be skipped.
Diffstat (limited to 'RepSys/log.py')
-rw-r--r--RepSys/log.py9
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)