Patchwork [08,of,27] configitems: register the 'convert.git.remoteprefix' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <fb705634d0c19d20a5fb.1505285958@FB>
Download mbox | patch
Permalink /patch/23839/
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 1498786440 -7200
#      ven. juin 30 03:34:00 2017 +0200
# Node ID fb705634d0c19d20a5fbc12f26b1bfb6178f429e
# Parent  b3e4b98ffae06431ccf5d22e186f5eff955576c0
# EXP-Topic config.register.convert
configitems: register the 'convert.git.remoteprefix' config

Patch

diff -r b3e4b98ffae0 -r fb705634d0c1 hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:33:51 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 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.
 
diff -r b3e4b98ffae0 -r fb705634d0c1 hgext/convert/git.py
--- a/hgext/convert/git.py	ven. juin 30 03:33:51 2017 +0200
+++ b/hgext/convert/git.py	ven. juin 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 + '/'),