changeset 1072:00baa6a2abc8

config: register git.renamelimit
author Kevin Bullock <kbullock@ringworld.org>
date Tue, 24 Oct 2017 14:42:07 -0500
parents 0b4144897f73
children f7433379c04a
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
+++ b/hggit/compat.py
@@ -70,6 +70,7 @@
         'debugextrainmessage': False,   # test only -- do not document this!
         'intree': None,
         'mindate': None,
+        'renamelimit': 400,
         'similarity': 0,
     },
     'hggit': {
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -1555,7 +1555,7 @@
             return None
 
         # default is borrowed from Git
-        max_files = self.ui.configint('git', 'renamelimit', default=400)
+        max_files = compat.config(self.ui, 'int', 'git', 'renamelimit')
         if max_files < 0:
             raise hgutil.Abort(_('git.renamelimit must be non-negative'))
         if max_files == 0: