diff options
Diffstat (limited to 'RepSys/log.py')
-rw-r--r-- | RepSys/log.py | 9 |
1 files changed, 9 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) |