From patchwork Wed Sep 13 06:59:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [19,of,27] configitems: register the 'convert.hg.tagsbranch' config From: Boris Feld X-Patchwork-Id: 23851 Message-Id: <1a45a9526e570e7b55c8.1505285969@FB> To: mercurial-devel@mercurial-scm.org Cc: boris.feld@octobus.net Date: Wed, 13 Sep 2017 08:59:29 +0200 # HG changeset patch # User Boris Feld # Date 1498786538 -7200 # ven. juin 30 03:35:38 2017 +0200 # Node ID 1a45a9526e570e7b55c8d23470fa697f930e127c # Parent e3fca664768b13f2a0c5e105270e8470c4c33547 # EXP-Topic config.register.convert configitems: register the 'convert.hg.tagsbranch' config diff -r e3fca664768b -r 1a45a9526e57 hgext/convert/__init__.py --- a/hgext/convert/__init__.py ven. juin 30 03:35:29 2017 +0200 +++ b/hgext/convert/__init__.py ven. juin 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. diff -r e3fca664768b -r 1a45a9526e57 hgext/convert/hg.py --- a/hgext/convert/hg.py ven. juin 30 03:35:29 2017 +0200 +++ b/hgext/convert/hg.py ven. juin 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: