Patchwork [09,of,27] configitems: register the 'convert.git.renamelimit' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <1f322f5d18d0e2febbec.1505285959@FB>
Download mbox | patch
Permalink /patch/23841/
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 1498786446 -7200
#      ven. juin 30 03:34:06 2017 +0200
# Node ID 1f322f5d18d0e2febbeca6479112cb8c6f30f64a
# Parent  fb705634d0c19d20a5fbc12f26b1bfb6178f429e
# EXP-Topic config.register.convert
configitems: register the 'convert.git.renamelimit' config

Patch

diff -r fb705634d0c1 -r 1f322f5d18d0 hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:34:00 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 30 03:34:06 2017 +0200
@@ -55,6 +55,9 @@ 
 configitem('convert', 'git.remoteprefix',
     default='remote',
 )
+configitem('convert', 'git.renamelimit',
+    default=400,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
diff -r fb705634d0c1 -r 1f322f5d18d0 hgext/convert/git.py
--- a/hgext/convert/git.py	ven. juin 30 03:34:00 2017 +0200
+++ b/hgext/convert/git.py	ven. juin 30 03:34:06 2017 +0200
@@ -90,8 +90,7 @@ 
             if findcopiesharder:
                 self.simopt.append('--find-copies-harder')
 
-            renamelimit = ui.configint('convert', 'git.renamelimit',
-                                       default=400)
+            renamelimit = ui.configint('convert', 'git.renamelimit')
             self.simopt.append('-l%d' % renamelimit)
         else:
             self.simopt = []