aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/log.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-01-02 16:30:45 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-01-02 16:30:45 +0000
commitc2361c74e06a0fe7e84b534a74f868cf19f90f5a (patch)
treefa87460c73baf73042335c3bf0c64ba2d5a1f0a2 /RepSys/log.py
parent9a98086f0224ea644e0dc2d8e2a42bcf40c2d6df (diff)
downloadmgarepo-c2361c74e06a0fe7e84b534a74f868cf19f90f5a.tar
mgarepo-c2361c74e06a0fe7e84b534a74f868cf19f90f5a.tar.gz
mgarepo-c2361c74e06a0fe7e84b534a74f868cf19f90f5a.tar.bz2
mgarepo-c2361c74e06a0fe7e84b534a74f868cf19f90f5a.tar.xz
mgarepo-c2361c74e06a0fe7e84b534a74f868cf19f90f5a.zip
Commit messages containing SILENT (or whatever is in repsys.conf) won't appear
in the changelog.
Diffstat (limited to 'RepSys/log.py')
-rw-r--r--RepSys/log.py9
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)