Mercurial > hg-git
changeset 1070:0b4144897f73
config: register git.similarity
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Tue, 24 Oct 2017 14:39:58 -0500 |
parents | 88db6948a5a8 |
children | 00baa6a2abc8 |
files | hggit/compat.py hggit/git_handler.py |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/compat.py Tue Oct 24 14:37:55 2017 -0500 +++ b/hggit/compat.py Tue Oct 24 14:39:58 2017 -0500 @@ -70,6 +70,7 @@ 'debugextrainmessage': False, # test only -- do not document this! 'intree': None, 'mindate': None, + 'similarity': 0, }, 'hggit': { 'mapsavefrequency': 0,
--- a/hggit/git_handler.py Tue Oct 24 14:37:55 2017 -0500 +++ b/hggit/git_handler.py Tue Oct 24 14:39:58 2017 -0500 @@ -1548,7 +1548,7 @@ @hgutil.propertycache def _rename_detector(self): # disabled by default to avoid surprises - similarity = self.ui.configint('git', 'similarity', default=0) + similarity = compat.config(self.ui, 'int', 'git', 'similarity') if similarity < 0 or similarity > 100: raise hgutil.Abort(_('git.similarity must be between 0 and 100')) if similarity == 0: