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