configitems: register the 'convert.hg.tagsbranch' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:35:38 +0200
changeset 34171 84044b904c6a
parent 34170 3a09e6cecff0
child 34172 c72af5a4f997
configitems: register the 'convert.hg.tagsbranch' config
hgext/convert/__init__.py
hgext/convert/hg.py
--- a/hgext/convert/__init__.py	Fri Jun 30 03:35:29 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:35:38 2017 +0200
@@ -85,6 +85,9 @@
 configitem('convert', 'hg.startrev',
     default=None,
 )
+configitem('convert', 'hg.tagsbranch',
+    default='default',
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/hg.py	Fri Jun 30 03:35:29 2017 +0200
+++ b/hgext/convert/hg.py	Fri Jun 30 03:35:38 2017 +0200
@@ -49,7 +49,7 @@
         common.converter_sink.__init__(self, ui, path)
         self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True)
         self.clonebranches = ui.configbool('convert', 'hg.clonebranches')
-        self.tagsbranch = ui.config('convert', 'hg.tagsbranch', 'default')
+        self.tagsbranch = ui.config('convert', 'hg.tagsbranch')
         self.lastbranch = None
         if os.path.isdir(path) and len(os.listdir(path)) > 0:
             try: