changeset 34178:0cfa7d9b889c

configitems: register the 'convert.svn.startrev' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:36:46 +0200
parents b88878720526
children 036d47d7cf39
files hgext/convert/__init__.py hgext/convert/subversion.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py	Fri Jun 30 03:36:36 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:36:46 2017 +0200
@@ -106,6 +106,9 @@
 configitem('convert', 'svn.debugsvnlog',
     default=True,
 )
+configitem('convert', 'svn.startrev',
+    default=0,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/subversion.py	Fri Jun 30 03:36:36 2017 +0200
+++ b/hgext/convert/subversion.py	Fri Jun 30 03:36:46 2017 +0200
@@ -354,7 +354,7 @@
 
         self.trunkname = self.ui.config('convert', 'svn.trunk',
                                         'trunk').strip('/')
-        self.startrev = self.ui.config('convert', 'svn.startrev', default=0)
+        self.startrev = self.ui.config('convert', 'svn.startrev')
         try:
             self.startrev = int(self.startrev)
             if self.startrev < 0: