Show More
@@ -414,11 +414,6 b' class changectx(basectx):' | |||||
414 | return |
|
414 | return | |
415 | except KeyError: |
|
415 | except KeyError: | |
416 | pass |
|
416 | pass | |
417 |
|
||||
418 | try: |
|
|||
419 | self._node = repo.branchtip(changeid) |
|
|||
420 | self._rev = repo.changelog.rev(self._node) |
|
|||
421 | return |
|
|||
422 | except error.FilteredRepoLookupError: |
|
417 | except error.FilteredRepoLookupError: | |
423 | raise |
|
418 | raise | |
424 | except error.RepoLookupError: |
|
419 | except error.RepoLookupError: |
@@ -44,6 +44,9 b' class namespaces(object):' | |||||
44 | addns("tags", |
|
44 | addns("tags", | |
45 | lambda repo, name: tolist(repo._tagscache.tags.get(name))) |
|
45 | lambda repo, name: tolist(repo._tagscache.tags.get(name))) | |
46 |
|
46 | |||
|
47 | addns("branches", | |||
|
48 | lambda repo, name: tolist(repo.branchtip(name))) | |||
|
49 | ||||
47 | def addnamespace(self, namespace, namemap, order=None): |
|
50 | def addnamespace(self, namespace, namemap, order=None): | |
48 | """ |
|
51 | """ | |
49 | register a namespace |
|
52 | register a namespace |
General Comments 0
You need to be logged in to leave comments.
Login now