changeset 22536:8040a44aab1c

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)
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 17 Sep 2014 19:52:34 -0700
parents 44f471102f3a
children bbf4f3dfd700
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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])``