comparison mercurial/context.py @ 23563:114992041625

namespaces: add branches Note that the exception-catching from the previous branchtip check is moved up to catch exceptions from the try block surrounding the namespace lookup.
author Sean Farley <sean.michael.farley@gmail.com>
date Fri, 17 Oct 2014 15:27:12 -0700
parents 59e703aecaf6
children db03ed8cbfa3
comparison
equal deleted inserted replaced
23562:59e703aecaf6 23563:114992041625
412 self._node = repo.names.singlenode(repo, changeid) 412 self._node = repo.names.singlenode(repo, changeid)
413 self._rev = repo.changelog.rev(self._node) 413 self._rev = repo.changelog.rev(self._node)
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:
425 pass 420 pass
426 421