aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RepSys/log.py9
-rw-r--r--default.chlog3
2 files changed, 7 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)
diff --git a/default.chlog b/default.chlog
index 00b4784..ab5f97b 100644
--- a/default.chlog
+++ b/default.chlog
@@ -6,6 +6,9 @@
#if not $rel.released
##+ Status: not released
#end if
+ #if not $rel.visible
++ EMPTYLOG: Man is the only animal that blushes -- or needs to. -- Mark Twain
+ #end if
#for $rev in $rel.release_revisions
#for $line in $rev.lines
$line