# HG changeset patch # User Idan Kamara # Date 1304686848 -10800 # Node ID 8f551386abf036e22dc3f53108e82dd9fb4954f0 # Parent 68ade2a6b30a47020884d4446c561c08e518b6d2 transplant: remove unneeded loop over repo in revset diff -r 68ade2a6b30a -r 8f551386abf0 hgext/transplant.py --- a/hgext/transplant.py Fri May 06 16:07:35 2011 +0300 +++ b/hgext/transplant.py Fri May 06 16:00:48 2011 +0300 @@ -602,11 +602,7 @@ s = revset.getset(repo, subset, x) else: s = subset - cs = set() - for r in xrange(0, len(repo)): - if repo[r].extra().get('transplant_source'): - cs.add(r) - return [r for r in s if r in cs] + return [r for r in s if repo[r].extra().get('transplant_source')] def kwtransplanted(repo, ctx, **args): """:transplanted: String. The node identifier of the transplanted