mercurial/revlog.py
changeset 42629 24111fb9a725
parent 42567 4eaf7197a740
child 42688 716d575df275
--- a/mercurial/revlog.py	Thu Jul 18 14:23:21 2019 -0400
+++ b/mercurial/revlog.py	Fri Jul 19 09:43:50 2019 -0700
@@ -1355,13 +1355,13 @@
         """Find the shortest unambiguous prefix that matches node."""
         def isvalid(prefix):
             try:
-                node = self._partialmatch(prefix)
+                matchednode = self._partialmatch(prefix)
             except error.AmbiguousPrefixLookupError:
                 return False
             except error.WdirUnsupported:
                 # single 'ff...' match
                 return True
-            if node is None:
+            if matchednode is None:
                 raise error.LookupError(node, self.indexfile, _('no node'))
             return True