aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Hasenack <andreas@mandriva.com>2006-02-16 18:25:24 +0000
committerAndreas Hasenack <andreas@mandriva.com>2006-02-16 18:25:24 +0000
commitb66f2dde58c8039de50bdb772db8701fae0d2505 (patch)
treeb657ae484b1764c18029d7bdc29580fb5ba5bfa6
parent3f6e695937dac1d9f766acb0b8c1cafa62635aa1 (diff)
downloadmgarepo-b66f2dde58c8039de50bdb772db8701fae0d2505.tar
mgarepo-b66f2dde58c8039de50bdb772db8701fae0d2505.tar.gz
mgarepo-b66f2dde58c8039de50bdb772db8701fae0d2505.tar.bz2
mgarepo-b66f2dde58c8039de50bdb772db8701fae0d2505.tar.xz
mgarepo-b66f2dde58c8039de50bdb772db8701fae0d2505.zip
- place revision-offset in [log] section and not in [global]
- added revision-offset to default config file
-rw-r--r--RepSys/log.py2
-rw-r--r--repsys.conf4
2 files changed, 5 insertions, 1 deletions
diff --git a/RepSys/log.py b/RepSys/log.py
index a7210a6..d1b0968 100644
--- a/RepSys/log.py
+++ b/RepSys/log.py
@@ -241,7 +241,7 @@ def parse_repsys_entry(revlog):
def get_revision_offset():
try:
- revoffset = config.getint("global", "revision-offset", 0)
+ revoffset = config.getint("log", "revision-offset", 0)
except (ValueError, TypeError):
raise Error, ("Invalid revision-offset number in configuration "
"file(s).")
diff --git a/repsys.conf b/repsys.conf
index 9a07f0a..244189c 100644
--- a/repsys.conf
+++ b/repsys.conf
@@ -5,6 +5,10 @@ url-map = svn\+ssh://svn\.mandriva\.com/(.*) file:///\1
[log]
oldurl = svn+ssh://svn.mandriva.com/svn/mdv/misc
+# controls up to which revision the rpm changelog
+# will be constructed (default zero, i.e., oldest
+# commit)
+revision-offset = 0
[template]
path = /usr/share/repsys/default.chlog