Mercurial > public > mercurial-scm > hg
diff hgext/convert/git.py @ 22471:cc5f94db672b
convert: add support to find git copies from all files in the working copy
I couldn't think of a better name for this option, so I stole the Git one in
the hope that anyone converting a Git repo knows what it means.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Fri, 12 Sep 2014 12:28:30 -0700 |
parents | 8e0c4df28eec |
children | b1ec65b3ba31 |
line wrap: on
line diff
--- a/hgext/convert/git.py Fri Sep 12 11:23:26 2014 -0700 +++ b/hgext/convert/git.py Fri Sep 12 12:28:30 2014 -0700 @@ -102,6 +102,10 @@ raise util.Abort(_('similarity must be between 0 and 100')) if similarity > 0: self.simopt = '--find-copies=%d%%' % similarity + findcopiesharder = ui.configbool('convert', 'git.findcopiesharder', + False) + if findcopiesharder: + self.simopt += ' --find-copies-harder' else: self.simopt = ''