Mercurial > hg-git
changeset 1072:f7433379c04a
config: register git.findcopiesharder
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Tue, 24 Oct 2017 14:44:48 -0500 |
parents | 00baa6a2abc8 |
children | 03e7c9d1fbb6 |
files | hggit/compat.py hggit/git_handler.py |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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,
--- 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,