Patchwork [20,of,27] configitems: register the 'convert.hg.usebranchnames' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <ca528d5a3dd22f4ed658.1505285970@FB>
Download mbox | patch
Permalink /patch/23853/
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 1498786548 -7200
#      ven. juin 30 03:35:48 2017 +0200
# Node ID ca528d5a3dd22f4ed658d1fa269cbcc1526d196d
# Parent  1a45a9526e570e7b55c8d23470fa697f930e127c
# EXP-Topic config.register.convert
configitems: register the 'convert.hg.usebranchnames' config

Patch

diff -r 1a45a9526e57 -r ca528d5a3dd2 hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:35:38 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 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.
 
diff -r 1a45a9526e57 -r ca528d5a3dd2 hgext/convert/hg.py
--- a/hgext/convert/hg.py	ven. juin 30 03:35:38 2017 +0200
+++ b/hgext/convert/hg.py	ven. juin 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