changeset 39303 | 1eb370761fa0 |
parent 39274 | 31c0ee6eb0ac |
child 39832 | 85a474adaf26 |
--- a/mercurial/revset.py Sat Aug 25 15:33:15 2018 +0900 +++ b/mercurial/revset.py Sat Aug 25 20:16:28 2018 +0900 @@ -454,6 +454,8 @@ kind, pattern, matcher = stringutil.stringmatcher(bm) bms = set() if kind == 'literal': + if bm == pattern: + pattern = repo._bookmarks.expandname(pattern) bmrev = repo._bookmarks.get(pattern, None) if not bmrev: raise error.RepoLookupError(_("bookmark '%s' does not exist")