# HG changeset patch # User Augie Fackler # Date 2017-10-18 22:11:50 # Node ID effae88bccdb53eefeec97899aef5e63bc5aa846 # Parent 554885e108684df699971095ede8ff660f0e0972 convert: register missed subversion config items Should fix the build failures on the Solaris builders. Differential Revision: https://phab.mercurial-scm.org/D1180 diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py --- a/hgext/convert/__init__.py +++ b/hgext/convert/__init__.py @@ -112,6 +112,15 @@ configitem('convert', 'skiptags', configitem('convert', 'svn.debugsvnlog', default=True, ) +configitem('convert', 'svn.trunk', + default=None, +) +configitem('convert', 'svn.tags', + default=None, +) +configitem('convert', 'svn.branches', + default=None, +) configitem('convert', 'svn.startrev', default=0, ) diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py --- a/hgext/convert/subversion.py +++ b/hgext/convert/subversion.py @@ -352,8 +352,10 @@ class svn_source(converter_source): raise error.Abort(_('svn: revision %s is not an integer') % revs[0]) - self.trunkname = self.ui.config('convert', 'svn.trunk', - 'trunk').strip('/') + trunkcfg = self.ui.config('convert', 'svn.trunk') + if trunkcfg is None: + trunkcfg = 'trunk' + self.trunkname = trunkcfg.strip('/') self.startrev = self.ui.config('convert', 'svn.startrev') try: self.startrev = int(self.startrev)