mercurial/localrepo.py
changeset 42079 fcd7a91dec23
parent 42062 8de1b5a009ee
child 42105 e0357a46c39d
equal deleted inserted replaced
42078:50b69c08651b 42079:fcd7a91dec23
  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