configitems: register the 'convert.svn.startrev' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:36:46 +0200
changeset 34178 0cfa7d9b889c
parent 34177 b88878720526
child 34179 036d47d7cf39
configitems: register the 'convert.svn.startrev' config
hgext/convert/__init__.py
hgext/convert/subversion.py
--- 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: