##// END OF EJS Templates
changectx: use names api to simplify and extend node lookup...
Sean Farley -
r23560:aead6370 default
parent child Browse files
Show More
@@ -407,10 +407,14 b' class changectx(basectx):'
407 407 except (TypeError, LookupError):
408 408 pass
409 409
410 if changeid in repo._bookmarks:
411 self._node = repo._bookmarks[changeid]
410 # lookup bookmarks through the name interface
411 try:
412 self._node = repo.names.singlenode(changeid)
412 413 self._rev = repo.changelog.rev(self._node)
413 414 return
415 except KeyError:
416 pass
417
414 418 if changeid in repo._tagscache.tags:
415 419 self._node = repo._tagscache.tags[changeid]
416 420 self._rev = repo.changelog.rev(self._node)
General Comments 0
You need to be logged in to leave comments. Login now