Submitter | phabricator |
---|---|
Date | April 11, 2018, 12:32 p.m. |
Message ID | <4e462c72ff83c648cf28243f83998592@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/30690/ |
State | Not Applicable |
Headers | show |
Comments
Patch
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: