configitems: register the 'convert.git.skipsubmodules' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:34:32 +0200
changeset 34164 edac06f3f46d
parent 34163 ed3ff1df715f
child 34165 5b8cb63c130c
configitems: register the 'convert.git.skipsubmodules' config
hgext/convert/__init__.py
hgext/convert/git.py
--- a/hgext/convert/__init__.py	Fri Jun 30 03:34:23 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:34:32 2017 +0200
@@ -64,6 +64,9 @@
 configitem('convert', 'git.similarity',
     default=50,
 )
+configitem('convert', 'git.skipsubmodules',
+    default=False,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/git.py	Fri Jun 30 03:34:23 2017 +0200
+++ b/hgext/convert/git.py	Fri Jun 30 03:34:32 2017 +0200
@@ -261,8 +261,7 @@
         lcount = len(difftree)
         i = 0
 
-        skipsubmodules = self.ui.configbool('convert', 'git.skipsubmodules',
-                                            False)
+        skipsubmodules = self.ui.configbool('convert', 'git.skipsubmodules')
         def add(entry, f, isdest):
             seen.add(f)
             h = entry[3]