aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/log.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2008-02-05 21:06:50 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2008-02-05 21:06:50 +0000
commitffdaa7d17062bf450a040b34056aaf0e096a9599 (patch)
treed0e06ec190790ca7ded9793b2e05a8214297e903 /RepSys/log.py
parent66fb7a96a4101acc06de59492ab74f00e5c85210 (diff)
downloadmgarepo-ffdaa7d17062bf450a040b34056aaf0e096a9599.tar
mgarepo-ffdaa7d17062bf450a040b34056aaf0e096a9599.tar.gz
mgarepo-ffdaa7d17062bf450a040b34056aaf0e096a9599.tar.bz2
mgarepo-ffdaa7d17062bf450a040b34056aaf0e096a9599.tar.xz
mgarepo-ffdaa7d17062bf450a040b34056aaf0e096a9599.zip
Set the default template path and update the built-in one to match
default.chlog
Diffstat (limited to 'RepSys/log.py')
-rw-r--r--RepSys/log.py21
1 files changed, 16 insertions, 5 deletions
diff --git a/RepSys/log.py b/RepSys/log.py
index df7bc9f..68cbbc0 100644
--- a/RepSys/log.py
+++ b/RepSys/log.py
@@ -23,17 +23,27 @@ locale.setlocale(locale.LC_ALL, "C")
default_template = """
#for $rel in $releases_by_author
* $rel.date $rel.author_name <$rel.author_email> $rel.version-$rel.release
- ##
- #if not $rel.released
- (not released yet)
++ Revision: $rel.revision
+## #if not $rel.released
+##+ Status: not released
+## #end if
+ #if not $rel.visible
++ rebuild (emptylog)
#end if
#for $rev in $rel.release_revisions
#for $line in $rev.lines
- $line
+$line
#end for
#end for
#for $author in $rel.authors
+ #if $author.revisions and not $author.revisions[0].lines
+ #continue
+ #end if
+ ##alternatively, one could use:
+ ###if $author.email == "root"
+ ## #continue
+ ###end if
+ $author.name <$author.email>
#for $rev in $author.revisions
#for $line in $rev.lines
@@ -298,7 +308,8 @@ def make_release(author=None, revision=None, date=None, lines=None,
def dump_file(releases, currentlog=None, template=None):
- templpath = template or config.get("template", "path", None)
+ templpath = template or config.get("template", "path",
+ "/usr/share/repsys/default.chlog")
params = {}
if templpath is None or not os.path.exists(templpath):
params["source"] = default_template