Mercurial > public > mercurial-scm > hg
changeset 34164:edac06f3f46d
configitems: register the 'convert.git.skipsubmodules' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:34:32 +0200 |
parents | ed3ff1df715f |
children | 5b8cb63c130c |
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: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]