Show More
@@ -996,7 +996,7 def matching(repo, subset, x): | |||||
996 | # is only one field to match) |
|
996 | # is only one field to match) | |
997 | getinfo = lambda r: [f(r) for f in getfieldfuncs] |
|
997 | getinfo = lambda r: [f(r) for f in getfieldfuncs] | |
998 |
|
998 | |||
999 |
matches = |
|
999 | matches = set() | |
1000 | for rev in revs: |
|
1000 | for rev in revs: | |
1001 | target = getinfo(rev) |
|
1001 | target = getinfo(rev) | |
1002 | for r in subset: |
|
1002 | for r in subset: | |
@@ -1006,10 +1006,8 def matching(repo, subset, x): | |||||
1006 | match = False |
|
1006 | match = False | |
1007 | break |
|
1007 | break | |
1008 | if match: |
|
1008 | if match: | |
1009 |
matches.a |
|
1009 | matches.add(r) | |
1010 | if len(revs) > 1: |
|
1010 | return [r for r in subset if r in matches] | |
1011 | matches = sorted(set(matches)) |
|
|||
1012 | return matches |
|
|||
1013 |
|
1011 | |||
1014 | def reverse(repo, subset, x): |
|
1012 | def reverse(repo, subset, x): | |
1015 | """``reverse(set)`` |
|
1013 | """``reverse(set)`` |
General Comments 0
You need to be logged in to leave comments.
Login now