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', '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 @@ 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)