changeset 34173:d54ebe5bb411

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