# HG changeset patch # User Kevin Bullock # Date 1508874288 18000 # Node ID f7433379c04ad1a2d8c01b0655886dc50083700b # Parent 00baa6a2abc856aa2852403147cf8d5ec2ebb24a config: register git.findcopiesharder diff -r 00baa6a2abc8 -r f7433379c04a hggit/compat.py --- a/hggit/compat.py Tue Oct 24 14:42:07 2017 -0500 +++ b/hggit/compat.py Tue Oct 24 14:44:48 2017 -0500 @@ -68,6 +68,7 @@ 'blockdotgit': True, 'branch_bookmark_suffix': None, 'debugextrainmessage': False, # test only -- do not document this! + 'findcopiesharder': False, 'intree': None, 'mindate': None, 'renamelimit': 400, diff -r 00baa6a2abc8 -r f7433379c04a hggit/git_handler.py --- a/hggit/git_handler.py Tue Oct 24 14:42:07 2017 -0500 +++ b/hggit/git_handler.py Tue Oct 24 14:44:48 2017 -0500 @@ -1561,8 +1561,8 @@ if max_files == 0: max_files = None - find_copies_harder = self.ui.configbool('git', 'findcopiesharder', - default=False) + find_copies_harder = compat.config(self.ui, 'bool', 'git', + 'findcopiesharder') return diff_tree.RenameDetector(self.git.object_store, rename_threshold=similarity, max_files=max_files,