Mercurial > hg
changeset 19055:0fc41f88f148
transplant: use set for prune lookup
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 16 Apr 2013 19:31:59 +0200 |
parents | d5f968f7716f |
children | ac41bb76c737 |
files | hgext/transplant.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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