aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--RepSys/log.py9
-rw-r--r--repsys.conf2
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