# HG changeset patch # User Pierre-Yves David # Date 2014-09-17 17:58:50 # Node ID 6261b9c549a24a84c00c608d7732fa1d9ea676de # Parent 5b65429721d5baf51f57d7c681eb3b4e00c7aebf revset: use `subset &` in `filelog` This takes advantage of the `fullreposet` smartness. revset #0: file(COPYING) 0) wall 3.179066 comb 3.180000 user 3.140000 sys 0.040000 (best of 3) 1) wall 2.723699 comb 2.730000 user 2.690000 sys 0.040000 (best of 4) diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -811,7 +811,7 @@ def filelog(repo, subset, x): for fr in fl: s.add(fl.linkrev(fr)) - return subset.filter(s.__contains__) + return subset & s def first(repo, subset, x): """``first(set, [n])``