# HG changeset patch # User Boris Feld # Date 2017-06-30 01:35:48 # Node ID c72af5a4f9972c85707cddfbbf7b17f89ee4cef9 # Parent 84044b904c6acc32c97f188049919c27c3189a6b configitems: register the 'convert.hg.usebranchnames' config diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py --- a/hgext/convert/__init__.py +++ b/hgext/convert/__init__.py @@ -88,6 +88,9 @@ configitem('convert', 'hg.startrev', configitem('convert', 'hg.tagsbranch', default='default', ) +configitem('convert', 'hg.usebranchnames', + default=True, +) # Commands definition was moved elsewhere to ease demandload job. diff --git a/hgext/convert/hg.py b/hgext/convert/hg.py --- a/hgext/convert/hg.py +++ b/hgext/convert/hg.py @@ -47,7 +47,7 @@ sha1re = re.compile(r'\b[0-9a-f]{12,40}\ class mercurial_sink(common.converter_sink): def __init__(self, ui, path): common.converter_sink.__init__(self, ui, path) - self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True) + self.branchnames = ui.configbool('convert', 'hg.usebranchnames') self.clonebranches = ui.configbool('convert', 'hg.clonebranches') self.tagsbranch = ui.config('convert', 'hg.tagsbranch') self.lastbranch = None