Mercurial > hg
comparison mercurial/revset.py @ 26538:5c9ec1cc671a
revset: strip off "literal:" prefix from bookmark not found error
This is what branch() and tag() do.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 07 Oct 2015 23:04:31 +0900 |
parents | 832feae7c986 |
children | 2aeeef1dc9a5 |
comparison
equal
deleted
inserted
replaced
26537:832feae7c986 | 26538:5c9ec1cc671a |
---|---|
694 bms = set() | 694 bms = set() |
695 if kind == 'literal': | 695 if kind == 'literal': |
696 bmrev = repo._bookmarks.get(pattern, None) | 696 bmrev = repo._bookmarks.get(pattern, None) |
697 if not bmrev: | 697 if not bmrev: |
698 raise error.RepoLookupError(_("bookmark '%s' does not exist") | 698 raise error.RepoLookupError(_("bookmark '%s' does not exist") |
699 % bm) | 699 % pattern) |
700 bms.add(repo[bmrev].rev()) | 700 bms.add(repo[bmrev].rev()) |
701 else: | 701 else: |
702 matchrevs = set() | 702 matchrevs = set() |
703 for name, bmrev in repo._bookmarks.iteritems(): | 703 for name, bmrev in repo._bookmarks.iteritems(): |
704 if matcher(name): | 704 if matcher(name): |