# HG changeset patch # User Pierre-Yves David # Date 1410976780 25200 # Node ID 5c53d7888aef31f7a5159b4fbcc1bbcbcf1ecbdd # Parent b6dc3b79bb2557f3588e7f74b2ba45cf4ea11d4d revset: use `subset &` in `outgoing` This should give us the same benefit as elsewhere. Result is simpler (and "faster"). Outgoing is dominated by the discovery so no benchmark is provided. diff -r b6dc3b79bb25 -r 5c53d7888aef mercurial/revset.py --- a/mercurial/revset.py Wed Apr 30 16:56:48 2014 -0700 +++ b/mercurial/revset.py Wed Sep 17 10:59:40 2014 -0700 @@ -1190,7 +1190,7 @@ repo.ui.popbuffer() cl = repo.changelog o = set([cl.rev(r) for r in outgoing.missing]) - return subset.filter(o.__contains__) + return subset & o def p1(repo, subset, x): """``p1([set])``