# HG changeset patch # User Pierre-Yves David # Date 1411008754 25200 # Node ID 8040a44aab1cecec36a3fb33a3a21871a98fc47f # Parent 44f471102f3a357b2e7fda4f91c571b29bc50b42 revset: use `subset &` in `origin` This takes advantage of the `fullreposet` smartness. revset #0: origin(tip) 0) wall 0.005353 comb 0.000000 user 0.000000 sys 0.000000 (best of 354) 1) wall 0.003080 comb 0.000000 user 0.000000 sys 0.000000 (best of 446) diff -r 44f471102f3a -r 8040a44aab1c mercurial/revset.py --- a/mercurial/revset.py Wed Sep 17 10:59:16 2014 -0700 +++ b/mercurial/revset.py Wed Sep 17 19:52:34 2014 -0700 @@ -1167,7 +1167,7 @@ o = set([_firstsrc(r) for r in args]) o -= set([None]) - return subset.filter(o.__contains__) + return subset & o def outgoing(repo, subset, x): """``outgoing([path])``