--- 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)
--- a/tests/test-bookmarks Thu Jun 03 18:00:15 2010 -0500
+++ b/tests/test-bookmarks Thu Jun 03 20:32:41 2010 -0500
@@ -82,7 +82,7 @@
hg bookmarks
echo % look up stripped bookmark name
-hg log -r 'x y'
+hg log -r '"x y"'
echo % reject bookmark name with newline
hg bookmark '