This revision was automatically updated to reflect the committed changes. Closed by commit rHG45667439439e: context: handle namespaces in revsymbol() (authored by martinvonz, committed by ).
REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3194?vs=7886&id=7975 REVISION DETAIL https://phab.mercurial-scm.org/D3194 AFFECTED FILES mercurial/scmutil.py CHANGE DETAILS diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -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: To: martinvonz, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel