Mercurial > hg
changeset 18779:9e39a717a23e
revset: don't abort when regex to tag() matches nothing (issue3850)
This makes the tag("re:...") revset consistent with branch("re:...").
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Mon, 18 Mar 2013 16:04:10 -0500 |
parents | 1ef89df2c248 |
children | 0705ad73e878 |
files | mercurial/revset.py tests/test-revset.t |
diffstat | 2 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Fri Mar 15 11:23:29 2013 -0700 +++ b/mercurial/revset.py Mon Mar 18 16:04:10 2013 -0500 @@ -1496,8 +1496,6 @@ s = set([repo[tn].rev()]) else: s = set([cl.rev(n) for t, n in repo.tagslist() if matcher(t)]) - if not s: - raise util.Abort(_("no tags exist that match '%s'") % pattern) else: s = set([cl.rev(n) for t, n in repo.tagslist() if t != 'tip']) return [r for r in subset if r in s]