##// END OF EJS Templates
revset: added lazyset implementation to matching revset...
Lucas Moscovicz -
r20459:51890507 default
parent child Browse files
Show More
@@ -1365,18 +1365,18 b' def matching(repo, subset, x):'
1365 1365 # is only one field to match)
1366 1366 getinfo = lambda r: [f(r) for f in getfieldfuncs]
1367 1367
1368 matches = set()
1368 def matches(x):
1369 1369 for rev in revs:
1370 1370 target = getinfo(rev)
1371 for r in subset:
1372 1371 match = True
1373 1372 for n, f in enumerate(getfieldfuncs):
1374 if target[n] != f(r):
1373 if target[n] != f(x):
1375 1374 match = False
1376 break
1377 1375 if match:
1378 matches.add(r)
1379 return baseset([r for r in subset if r in matches])
1376 return True
1377 return False
1378
1379 return lazyset(subset, matches)
1380 1380
1381 1381 def reverse(repo, subset, x):
1382 1382 """``reverse(set)``
General Comments 0
You need to be logged in to leave comments. Login now