From b98cc32e7546d0cb90ce6df763a9515045750924 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Thu, 15 Mar 2007 18:40:24 +0000 Subject: Make releases with only SILENTed messages will result in a warning, not to be skipped. --- RepSys/log.py | 9 ++++----- default.chlog | 3 +++ 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 @@ -5,6 +5,9 @@ + Revision: $rel.revision #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 -- cgit v1.2.1