Mercurial > hg-stable
changeset 11282:e581f3acc338
revset: fix up tests
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 03 Jun 2010 20:32:41 -0500 |
parents | b724b8467b82 |
children | a6356b2695a3 |
files | mercurial/revset.py tests/test-bookmarks |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Thu Jun 03 18:00:15 2010 -0500 +++ b/mercurial/revset.py Thu Jun 03 20:32:41 2010 -0500 @@ -116,6 +116,8 @@ def stringset(repo, subset, x): x = repo[x].rev() + if x == -1 and len(subset) == len(repo): + return [-1] if x in subset: return [x] return [] @@ -517,9 +519,6 @@ return o[0], (op, o[1]) elif op == 'group': return optimize(x[1], small) - elif op in 'rangepre rangepost dagrangepre dagrangepost': - wa, ta = optimize(x[1], small) - return wa + 1, (op, ta) elif op in 'range list': wa, ta = optimize(x[1], small) wb, tb = optimize(x[2], small)