Patchwork [13,of,27] configitems: register the 'convert.hg.clonebranches' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <bb608ac7127a42869504.1505285963@FB>
Download mbox | patch
Permalink /patch/23845/
State Accepted
Headers show

Comments

Boris Feld - Sept. 13, 2017, 6:59 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498786485 -7200
#      ven. juin 30 03:34:45 2017 +0200
# Node ID bb608ac7127a42869504635109bc831fec38f7a0
# Parent  bf67fe8f61095494e07cc67369925273e9645354
# EXP-Topic config.register.convert
configitems: register the 'convert.hg.clonebranches' config

Patch

diff -r bf67fe8f6109 -r bb608ac7127a hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:34:32 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 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.
 
diff -r bf67fe8f6109 -r bb608ac7127a hgext/convert/hg.py
--- a/hgext/convert/hg.py	ven. juin 30 03:34:32 2017 +0200
+++ b/hgext/convert/hg.py	ven. juin 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: