diff hggit/git_handler.py @ 1059:0a4b119fb2b4

renames: fix range check for renamelimit
author Kevin Bullock <kbullock@ringworld.org>
date Tue, 24 Oct 2017 15:21:55 -0500
parents 20b6df4e9434
children d37336a87b70
line wrap: on
line diff
--- a/hggit/git_handler.py	Tue Oct 24 15:20:03 2017 -0500
+++ b/hggit/git_handler.py	Tue Oct 24 15:21:55 2017 -0500
@@ -1553,8 +1553,8 @@
 
         # default is borrowed from Git
         max_files = self.ui.configint('git', 'renamelimit', default=400)
-        if similarity < 0:
-            raise util.Abort(_('git.renamelimit must be non-negative'))
+        if max_files < 0:
+            raise hgutil.Abort(_('git.renamelimit must be non-negative'))
         if max_files == 0:
             max_files = None