##// END OF EJS Templates
revsets: preserve ordering with the or operator...
Augie Fackler -
r13932:34f57700 default
parent child Browse files
Show More
@@ -156,9 +156,10 b' def andset(repo, subset, x, y):'
156 return getset(repo, getset(repo, subset, x), y)
156 return getset(repo, getset(repo, subset, x), y)
157
157
158 def orset(repo, subset, x, y):
158 def orset(repo, subset, x, y):
159 s = set(getset(repo, subset, x))
159 xl = getset(repo, subset, x)
160 s |= set(getset(repo, [r for r in subset if r not in s], y))
160 s = set(xl)
161 return [r for r in subset if r in s]
161 yl = getset(repo, [r for r in subset if r not in s], y)
162 return xl + yl
162
163
163 def notset(repo, subset, x):
164 def notset(repo, subset, x):
164 s = set(getset(repo, subset, x))
165 s = set(getset(repo, subset, x))
@@ -369,3 +369,8 b' issue2654: report a parse error if the r'
369 hg: parse error at 2: invalid token
369 hg: parse error at 2: invalid token
370 [255]
370 [255]
371
371
372 or operator should preserve ordering:
373 $ log 'reverse(2::4) or tip'
374 4
375 2
376 9
General Comments 0
You need to be logged in to leave comments. Login now