configitems: register the 'convert.git.renamelimit' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:34:06 +0200
changeset 34161 d54ebe5bb411
parent 34160 f74edb48c574
child 34162 15794577bcf3
configitems: register the 'convert.git.renamelimit' config
hgext/convert/__init__.py
hgext/convert/git.py
--- a/hgext/convert/__init__.py	Fri Jun 30 03:34:00 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 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.
 
--- a/hgext/convert/git.py	Fri Jun 30 03:34:00 2017 +0200
+++ b/hgext/convert/git.py	Fri Jun 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 = []