equal
deleted
inserted
replaced
1562 raise error.RepoLookupError(_("unknown branch '%s'") % branch) |
1562 raise error.RepoLookupError(_("unknown branch '%s'") % branch) |
1563 else: |
1563 else: |
1564 pass |
1564 pass |
1565 |
1565 |
1566 def lookup(self, key): |
1566 def lookup(self, key): |
1567 return scmutil.revsymbol(self, key).node() |
1567 node = scmutil.revsymbol(self, key).node() |
|
1568 if node is None: |
|
1569 raise error.RepoLookupError(_("unknown revision '%s'") % key) |
|
1570 return node |
1568 |
1571 |
1569 def lookupbranch(self, key): |
1572 def lookupbranch(self, key): |
1570 if self.branchmap().hasbranch(key): |
1573 if self.branchmap().hasbranch(key): |
1571 return key |
1574 return key |
1572 |
1575 |