Patchwork [19,of,27] configitems: register the 'convert.hg.tagsbranch' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <1a45a9526e570e7b55c8.1505285969@FB>
Download mbox | patch
Permalink /patch/23851/
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 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

Patch

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: