changeset 34165:5b8cb63c130c

configitems: register the 'convert.hg.clonebranches' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:34:45 +0200
parents edac06f3f46d
children 79c01348ef34
files hgext/convert/__init__.py hgext/convert/hg.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py	Fri Jun 30 03:34:32 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:34:45 2017 +0200
@@ -67,6 +67,9 @@
 configitem('convert', 'git.skipsubmodules',
     default=False,
 )
+configitem('convert', 'hg.clonebranches',
+    default=False,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/hg.py	Fri Jun 30 03:34:32 2017 +0200
+++ b/hgext/convert/hg.py	Fri Jun 30 03:34:45 2017 +0200
@@ -48,7 +48,7 @@
     def __init__(self, ui, path):
         common.converter_sink.__init__(self, ui, path)
         self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True)
-        self.clonebranches = ui.configbool('convert', 'hg.clonebranches', False)
+        self.clonebranches = ui.configbool('convert', 'hg.clonebranches')
         self.tagsbranch = ui.config('convert', 'hg.tagsbranch', 'default')
         self.lastbranch = None
         if os.path.isdir(path) and len(os.listdir(path)) > 0: