Patchwork [12,of,27] configitems: register the 'convert.git.skipsubmodules' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <bf67fe8f61095494e07c.1505285962@FB>
Download mbox | patch
Permalink /patch/23842/
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 1498786472 -7200
#      ven. juin 30 03:34:32 2017 +0200
# Node ID bf67fe8f61095494e07cc67369925273e9645354
# Parent  d9edf9dd29eaf07f75165e28fdbf13702d29ee55
# EXP-Topic config.register.convert
configitems: register the 'convert.git.skipsubmodules' config

Patch

diff -r d9edf9dd29ea -r bf67fe8f6109 hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:34:23 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 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.
 
diff -r d9edf9dd29ea -r bf67fe8f6109 hgext/convert/git.py
--- a/hgext/convert/git.py	ven. juin 30 03:34:23 2017 +0200
+++ b/hgext/convert/git.py	ven. juin 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]