Show More
@@ -407,10 +407,14 b' class changectx(basectx):' | |||||
407 | except (TypeError, LookupError): |
|
407 | except (TypeError, LookupError): | |
408 | pass |
|
408 | pass | |
409 |
|
409 | |||
410 | if changeid in repo._bookmarks: |
|
410 | # lookup bookmarks through the name interface | |
411 | self._node = repo._bookmarks[changeid] |
|
411 | try: | |
|
412 | self._node = repo.names.singlenode(changeid) | |||
412 | self._rev = repo.changelog.rev(self._node) |
|
413 | self._rev = repo.changelog.rev(self._node) | |
413 | return |
|
414 | return | |
|
415 | except KeyError: | |||
|
416 | pass | |||
|
417 | ||||
414 | if changeid in repo._tagscache.tags: |
|
418 | if changeid in repo._tagscache.tags: | |
415 | self._node = repo._tagscache.tags[changeid] |
|
419 | self._node = repo._tagscache.tags[changeid] | |
416 | self._rev = repo.changelog.rev(self._node) |
|
420 | self._rev = repo.changelog.rev(self._node) |
General Comments 0
You need to be logged in to leave comments.
Login now