Show More
@@ -671,9 +671,10 b' class localrepository(object):' | |||||
671 |
|
671 | |||
672 | def branchtip(self, branch): |
|
672 | def branchtip(self, branch): | |
673 | '''return the tip node for a given branch''' |
|
673 | '''return the tip node for a given branch''' | |
674 | if branch not in self.branchmap(): |
|
674 | try: | |
|
675 | return self.branchmap().branchtip(branch) | |||
|
676 | except KeyError: | |||
675 | raise error.RepoLookupError(_("unknown branch '%s'") % branch) |
|
677 | raise error.RepoLookupError(_("unknown branch '%s'") % branch) | |
676 | return self._branchtip(self.branchmap()[branch]) |
|
|||
677 |
|
678 | |||
678 | def branchtags(self): |
|
679 | def branchtags(self): | |
679 | '''return a dict where branch names map to the tipmost head of |
|
680 | '''return a dict where branch names map to the tipmost head of |
General Comments 0
You need to be logged in to leave comments.
Login now