##// END OF EJS Templates
revset: fix up tests
Matt Mackall -
r11282:e581f3ac default
parent child Browse files
Show More
@@ -116,6 +116,8 b' def negate(repo, subset, x):'
116
116
117 def stringset(repo, subset, x):
117 def stringset(repo, subset, x):
118 x = repo[x].rev()
118 x = repo[x].rev()
119 if x == -1 and len(subset) == len(repo):
120 return [-1]
119 if x in subset:
121 if x in subset:
120 return [x]
122 return [x]
121 return []
123 return []
@@ -517,9 +519,6 b' def optimize(x, small):'
517 return o[0], (op, o[1])
519 return o[0], (op, o[1])
518 elif op == 'group':
520 elif op == 'group':
519 return optimize(x[1], small)
521 return optimize(x[1], small)
520 elif op in 'rangepre rangepost dagrangepre dagrangepost':
521 wa, ta = optimize(x[1], small)
522 return wa + 1, (op, ta)
523 elif op in 'range list':
522 elif op in 'range list':
524 wa, ta = optimize(x[1], small)
523 wa, ta = optimize(x[1], small)
525 wb, tb = optimize(x[2], small)
524 wb, tb = optimize(x[2], small)
@@ -82,7 +82,7 b' echo % list bookmarks'
82 hg bookmarks
82 hg bookmarks
83
83
84 echo % look up stripped bookmark name
84 echo % look up stripped bookmark name
85 hg log -r 'x y'
85 hg log -r '"x y"'
86
86
87 echo % reject bookmark name with newline
87 echo % reject bookmark name with newline
88 hg bookmark '
88 hg bookmark '
General Comments 0
You need to be logged in to leave comments. Login now