comparison mercurial/revset.py @ 25129:40a2cf1c765b

revset: drop redundant filteredset from right-hand side set of "or" operation Since 5548f558db3d, it should no longer be necessary because the addset can remove duplicates correctly.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 30 Mar 2015 20:56:37 +0900
parents 5548f558db3d
children a94ef7f517e0
comparison
equal deleted inserted replaced
25128:631766d1f57a 25129:40a2cf1c765b
358 def andset(repo, subset, x, y): 358 def andset(repo, subset, x, y):
359 return getset(repo, getset(repo, subset, x), y) 359 return getset(repo, getset(repo, subset, x), y)
360 360
361 def orset(repo, subset, x, y): 361 def orset(repo, subset, x, y):
362 xl = getset(repo, subset, x) 362 xl = getset(repo, subset, x)
363 yl = getset(repo, subset - xl, y) 363 yl = getset(repo, subset, y)
364 return xl + yl 364 return xl + yl
365 365
366 def notset(repo, subset, x): 366 def notset(repo, subset, x):
367 return subset - getset(repo, subset, x) 367 return subset - getset(repo, subset, x)
368 368