diff --git a/hgext/convert/__init__.py b/hgext/convert/__init__.py --- a/hgext/convert/__init__.py +++ b/hgext/convert/__init__.py @@ -49,6 +49,9 @@ configitem('convert', 'git.committeracti configitem('convert', 'git.extrakeys', default=list, ) +configitem('convert', 'git.findcopiesharder', + default=False, +) # Commands definition was moved elsewhere to ease demandload job. diff --git a/hgext/convert/git.py b/hgext/convert/git.py --- a/hgext/convert/git.py +++ b/hgext/convert/git.py @@ -86,8 +86,7 @@ class convert_git(common.converter_sourc 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')