Show More
@@ -1105,6 +1105,7 b' def head(repo, subset, x):' | |||||
1105 | hs = set() |
|
1105 | hs = set() | |
1106 | for b, ls in repo.branchmap().iteritems(): |
|
1106 | for b, ls in repo.branchmap().iteritems(): | |
1107 | hs.update(repo[h].rev() for h in ls) |
|
1107 | hs.update(repo[h].rev() for h in ls) | |
|
1108 | # XXX We should not be using '.filter' here, but combines subset with '&' | |||
1108 | # XXX We should combine with subset first: 'subset & baseset(...)'. This is |
|
1109 | # XXX We should combine with subset first: 'subset & baseset(...)'. This is | |
1109 | # necessary to ensure we preserve the order in subset. |
|
1110 | # necessary to ensure we preserve the order in subset. | |
1110 | return baseset(hs).filter(subset.__contains__) |
|
1111 | return baseset(hs).filter(subset.__contains__) |
General Comments 0
You need to be logged in to leave comments.
Login now