changeset 34159:3e3327ced4ed

configitems: register the 'convert.git.findcopiesharder' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:33:51 +0200
parents 89e666798111
children f74edb48c574
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:33:41 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:33:51 2017 +0200
@@ -49,6 +49,9 @@
 configitem('convert', 'git.extrakeys',
     default=list,
 )
+configitem('convert', 'git.findcopiesharder',
+    default=False,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/git.py	Fri Jun 30 03:33:41 2017 +0200
+++ b/hgext/convert/git.py	Fri Jun 30 03:33:51 2017 +0200
@@ -86,8 +86,7 @@
             raise error.Abort(_('similarity must be between 0 and 100'))
         if similarity > 0:
             self.simopt = ['-C%d%%' % similarity]
-            findcopiesharder = ui.configbool('convert', 'git.findcopiesharder',
-                                             False)
+            findcopiesharder = ui.configbool('convert', 'git.findcopiesharder')
             if findcopiesharder:
                 self.simopt.append('--find-copies-harder')