##// END OF EJS Templates
revsets: use '&' instead of '.filter' in head...
Pierre-Yves David -
r25634:1ddefcfc default
parent child Browse files
Show More
@@ -1113,10 +1113,9 b' def head(repo, subset, x):'
1113 hs.update(cl.rev(h) for h in ls)
1113 hs.update(cl.rev(h) for h in ls)
1114 # XXX using a set to feed the baseset is wrong. Sets are not ordered.
1114 # XXX using a set to feed the baseset is wrong. Sets are not ordered.
1115 # This does not break because of other fullreposet misbehavior.
1115 # This does not break because of other fullreposet misbehavior.
1116 # XXX We should not be using '.filter' here, but combines subset with '&'
1117 # XXX We should combine with subset first: 'subset & baseset(...)'. This is
1116 # XXX We should combine with subset first: 'subset & baseset(...)'. This is
1118 # necessary to ensure we preserve the order in subset.
1117 # necessary to ensure we preserve the order in subset.
1119 return baseset(hs).filter(subset.__contains__)
1118 return baseset(hs) & subset
1120
1119
1121 def heads(repo, subset, x):
1120 def heads(repo, subset, x):
1122 """``heads(set)``
1121 """``heads(set)``
General Comments 0
You need to be logged in to leave comments. Login now