# HG changeset patch # User Thomas Arendsen Hein # Date 1415262999 -3600 # Node ID a7f25a31e02188e0c5193cbafb1902d9d53cb987 # Parent c35ffa4249cab47a1e089a30bc16fc65a0727f48 convert: use git diff-tree -Cn% instead of --find-copies=n% for older git The option --find-copies was added in a later git version than the one included in Debian squeeze-lts (1.7.2.5), probably around 1.7.4. diff -r c35ffa4249ca -r a7f25a31e021 hgext/convert/git.py --- a/hgext/convert/git.py Wed Nov 05 17:25:00 2014 +0000 +++ b/hgext/convert/git.py Thu Nov 06 09:36:39 2014 +0100 @@ -99,7 +99,7 @@ if similarity < 0 or similarity > 100: raise util.Abort(_('similarity must be between 0 and 100')) if similarity > 0: - self.simopt = '--find-copies=%d%%' % similarity + self.simopt = '-C%d%%' % similarity findcopiesharder = ui.configbool('convert', 'git.findcopiesharder', False) if findcopiesharder: