##// END OF EJS Templates
lookup: don't use "00changelog.i@None" when lookup of prefix fails...
Martin von Zweigbergk -
r42852:24111fb9 default
parent child Browse files
Show More
@@ -1355,13 +1355,13 b' class revlog(object):'
1355 """Find the shortest unambiguous prefix that matches node."""
1355 """Find the shortest unambiguous prefix that matches node."""
1356 def isvalid(prefix):
1356 def isvalid(prefix):
1357 try:
1357 try:
1358 node = self._partialmatch(prefix)
1358 matchednode = self._partialmatch(prefix)
1359 except error.AmbiguousPrefixLookupError:
1359 except error.AmbiguousPrefixLookupError:
1360 return False
1360 return False
1361 except error.WdirUnsupported:
1361 except error.WdirUnsupported:
1362 # single 'ff...' match
1362 # single 'ff...' match
1363 return True
1363 return True
1364 if node is None:
1364 if matchednode is None:
1365 raise error.LookupError(node, self.indexfile, _('no node'))
1365 raise error.LookupError(node, self.indexfile, _('no node'))
1366 return True
1366 return True
1367
1367
General Comments 0
You need to be logged in to leave comments. Login now