changeset 34160:f74edb48c574

configitems: register the 'convert.git.remoteprefix' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:34:00 +0200
parents 3e3327ced4ed
children d54ebe5bb411
files hgext/convert/__init__.py hgext/convert/git.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 + '/'),