Mercurial > hg
changeset 34172:c72af5a4f997
configitems: register the 'convert.hg.usebranchnames' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:35:48 +0200 |
parents | 84044b904c6a |
children | 7d83591831f0 |
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:35:38 2017 +0200 +++ b/hgext/convert/__init__.py Fri Jun 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.
--- a/hgext/convert/hg.py Fri Jun 30 03:35:38 2017 +0200 +++ b/hgext/convert/hg.py Fri Jun 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