Patchwork [26,of,27] configitems: register the 'convert.svn.startrev' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <64be670052f552196c3a.1505285976@FB>
Download mbox | patch
Permalink /patch/23858/
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 1498786606 -7200
#      ven. juin 30 03:36:46 2017 +0200
# Node ID 64be670052f552196c3a5dfb029f12fd6e54271b
# Parent  1014bb15cf2ec7e66e31332167ce7cefe42dda71
# EXP-Topic config.register.convert
configitems: register the 'convert.svn.startrev' config

Patch

diff -r 1014bb15cf2e -r 64be670052f5 hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:36:36 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 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.
 
diff -r 1014bb15cf2e -r 64be670052f5 hgext/convert/subversion.py
--- a/hgext/convert/subversion.py	ven. juin 30 03:36:36 2017 +0200
+++ b/hgext/convert/subversion.py	ven. juin 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: