Patchwork [23,of,27] configitems: register the 'convert.p4.startrev' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <1acea52756eaf12d0bbf.1505285973@FB>
Download mbox | patch
Permalink /patch/23855/
State Accepted
Headers show

Comments

Boris Feld - Sept. 13, 2017, 6:59 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498786580 -7200
#      ven. juin 30 03:36:20 2017 +0200
# Node ID 1acea52756eaf12d0bbff6d3fa93c0c89f51c907
# Parent  b36390e8baa1d2336b270f588724c6cb764ea9f7
# EXP-Topic config.register.convert
configitems: register the 'convert.p4.startrev' config

Patch

diff -r b36390e8baa1 -r 1acea52756ea hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:36:00 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 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.
 
diff -r b36390e8baa1 -r 1acea52756ea hgext/convert/p4.py
--- a/hgext/convert/p4.py	ven. juin 30 03:36:00 2017 +0200
+++ b/hgext/convert/p4.py	ven. juin 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'))