# HG changeset patch # User Mads Kiilerich # Date 1366133519 -7200 # Node ID 0fc41f88f1482e24f4d74bc25670c03a6fc555fb # Parent d5f968f7716ff56b3bf9560c723cc50a79a928ec transplant: use set for prune lookup diff -r d5f968f7716f -r 0fc41f88f148 hgext/transplant.py --- a/hgext/transplant.py Wed Apr 17 11:47:49 2013 +0200 +++ b/hgext/transplant.py Tue Apr 16 19:31:59 2013 +0200 @@ -633,8 +633,8 @@ tf = tp.transplantfilter(repo, source, p1) if opts.get('prune'): - prune = [source.lookup(r) - for r in scmutil.revrange(source, opts.get('prune'))] + prune = set(source.lookup(r) + for r in scmutil.revrange(source, opts.get('prune'))) matchfn = lambda x: tf(x) and x not in prune else: matchfn = tf