##// END OF EJS Templates
transplant: remove unneeded loop over repo in revset
Idan Kamara -
r14212:8f551386 default
parent child Browse files
Show More
@@ -602,11 +602,7 b' def revsettransplanted(repo, subset, x):'
602 s = revset.getset(repo, subset, x)
602 s = revset.getset(repo, subset, x)
603 else:
603 else:
604 s = subset
604 s = subset
605 cs = set()
605 return [r for r in s if repo[r].extra().get('transplant_source')]
606 for r in xrange(0, len(repo)):
607 if repo[r].extra().get('transplant_source'):
608 cs.add(r)
609 return [r for r in s if r in cs]
610
606
611 def kwtransplanted(repo, ctx, **args):
607 def kwtransplanted(repo, ctx, **args):
612 """:transplanted: String. The node identifier of the transplanted
608 """:transplanted: String. The node identifier of the transplanted
General Comments 0
You need to be logged in to leave comments. Login now