# HG changeset patch # User Pierre-Yves David # Date 1410976677 25200 # Node ID 0cf46b8298feff1531b788bfbcdc323372cd604d # Parent 22ba2c0825daa168823fe356e4afc30389a6a384 revset: use `subset &` in `bisect` This takes advantage of the `fullreposet` smartness. revset #0: bisect(range) 0) wall 0.014007 comb 0.010000 user 0.010000 sys 0.000000 (best of 115) 1) wall 0.005556 comb 0.010000 user 0.010000 sys 0.000000 (best of 235) diff -r 22ba2c0825da -r 0cf46b8298fe mercurial/revset.py --- a/mercurial/revset.py Wed Sep 17 10:57:47 2014 -0700 +++ b/mercurial/revset.py Wed Sep 17 10:57:57 2014 -0700 @@ -426,7 +426,7 @@ # i18n: "bisect" is a keyword status = getstring(x, _("bisect requires a string")).lower() state = set(hbisect.get(repo, status)) - return subset.filter(state.__contains__) + return subset & state # Backward-compatibility # - no help entry so that we do not advertise it any more