# HG changeset patch # User Boris Feld # Date 2017-06-30 01:36:46 # Node ID 0cfa7d9b889cf62889cf7eadd2eab77b3e533ef3 # Parent b888787205269c1a18e85b198ff4616e5d3ae6ce configitems: register the 'convert.svn.startrev' config diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py --- a/hgext/convert/__init__.py +++ b/hgext/convert/__init__.py @@ -106,6 +106,9 @@ configitem('convert', 'skiptags', configitem('convert', 'svn.debugsvnlog', default=True, ) +configitem('convert', 'svn.startrev', + default=0, +) # Commands definition was moved elsewhere to ease demandload job. diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py --- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -354,7 +354,7 @@ class svn_source(converter_source): 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: