# HG changeset patch # User Martin von Zweigbergk # Date 1523083577 25200 # Node ID 45667439439ec4a9cd4811cd2b649b0e80b5a696 # Parent d2b484eed1ecc06117dfaf46725701e80318f894 context: handle namespaces in revsymbol() Similar reasoning as previous patches. Differential Revision: https://phab.mercurial-scm.org/D3194 diff -r d2b484eed1ec -r 45667439439e mercurial/scmutil.py --- a/mercurial/scmutil.py Fri Apr 06 23:43:52 2018 -0700 +++ b/mercurial/scmutil.py Fri Apr 06 23:46:17 2018 -0700 @@ -490,6 +490,14 @@ except (TypeError, LookupError): pass + # look up bookmarks through the name interface + try: + node = repo.names.singlenode(repo, symbol) + rev = repo.changelog.rev(node) + return repo[rev] + except KeyError: + pass + return repo[symbol] except error.WdirUnsupported: