configitems: register the 'convert.hg.usebranchnames' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:35:48 +0200
changeset 34172 c72af5a4f997
parent 34171 84044b904c6a
child 34173 7d83591831f0
configitems: register the 'convert.hg.usebranchnames' config
hgext/convert/__init__.py
hgext/convert/hg.py
--- a/hgext/convert/__init__.py	Fri Jun 30 03:35:38 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:35:48 2017 +0200
@@ -88,6 +88,9 @@
 configitem('convert', 'hg.tagsbranch',
     default='default',
 )
+configitem('convert', 'hg.usebranchnames',
+    default=True,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/hg.py	Fri Jun 30 03:35:38 2017 +0200
+++ b/hgext/convert/hg.py	Fri Jun 30 03:35:48 2017 +0200
@@ -47,7 +47,7 @@
 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