diff options
-rw-r--r-- | RepSys/log.py | 9 | ||||
-rw-r--r-- | repsys.conf | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/RepSys/log.py b/RepSys/log.py index 2934907..064b585 100644 --- a/RepSys/log.py +++ b/RepSys/log.py @@ -195,6 +195,13 @@ def get_author_name(author): def parse_raw_date(rawdate): return time.strftime("%a %b %d %Y", rawdate) +def ignore_log_entry(entry): + ignstr = config.get("log", "ignore-string", "SILENT") + for line in entry.lines: + if ignstr in line: + return True + return False + def make_release(author=None, revision=None, date=None, lines=None, entries=[], released=True, version=None, release=None): rel = _Release() @@ -208,6 +215,8 @@ def make_release(author=None, revision=None, date=None, lines=None, rel.lines = lines rel.released = released for entry in entries: + if ignore_log_entry(entry): + continue revision = _Revision() revision.revision = entry.revision revision.lines = format_lines(entry.lines) diff --git a/repsys.conf b/repsys.conf index 1430fb6..e87b119 100644 --- a/repsys.conf +++ b/repsys.conf @@ -10,6 +10,8 @@ oldurl = svn+ssh://svn.mandriva.com/svn/packages/misc # will be constructed (default zero, i.e., oldest # commit) revision-offset = 0 +# commits containing this string won't be shown in the changelog: +ignore-string = SILENT [template] path = /usr/share/repsys/default.chlog |