configitems: register the 'convert.p4.startrev' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:36:20 +0200
changeset 34187 b1d94bc61c79
parent 34186 2b7f5d38e59e
child 34188 52cbbd28cb2a
configitems: register the 'convert.p4.startrev' config
hgext/convert/__init__.py
hgext/convert/p4.py
--- a/hgext/convert/__init__.py	Fri Jun 30 03:36:00 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:36:20 2017 +0200
@@ -97,6 +97,9 @@
 configitem('convert', 'localtimezone',
     default=False,
 )
+configitem('convert', 'p4.startrev',
+    default=0,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/p4.py	Fri Jun 30 03:36:00 2017 +0200
+++ b/hgext/convert/p4.py	Fri Jun 30 03:36:20 2017 +0200
@@ -138,7 +138,7 @@
         vieworder.sort(key=len, reverse=True)
 
         # handle revision limiting
-        startrev = self.ui.config('convert', 'p4.startrev', default=0)
+        startrev = self.ui.config('convert', 'p4.startrev')
 
         # now read the full changelists to get the list of file revisions
         ui.status(_('collecting p4 changelists\n'))