configitems: register the 'convert.git.remoteprefix' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:34:00 +0200
changeset 34172 f74edb48c574
parent 34171 3e3327ced4ed
child 34173 d54ebe5bb411
configitems: register the 'convert.git.remoteprefix' config
hgext/convert/__init__.py
hgext/convert/git.py
--- a/hgext/convert/__init__.py	Fri Jun 30 03:33:51 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:34:00 2017 +0200
@@ -52,6 +52,9 @@
 configitem('convert', 'git.findcopiesharder',
     default=False,
 )
+configitem('convert', 'git.remoteprefix',
+    default='remote',
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/git.py	Fri Jun 30 03:33:51 2017 +0200
+++ b/hgext/convert/git.py	Fri Jun 30 03:34:00 2017 +0200
@@ -446,7 +446,7 @@
         bookmarks = {}
 
         # Handle local and remote branches
-        remoteprefix = self.ui.config('convert', 'git.remoteprefix', 'remote')
+        remoteprefix = self.ui.config('convert', 'git.remoteprefix')
         reftypes = [
             # (git prefix, hg prefix)
             ('refs/remotes/origin/', remoteprefix + '/'),