changeset 25552:4644e991a12a

revset: mark the fact we should use '&' instead of 'filter' in 'head' I do not have time to fix all this now, let's mark it for later.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 11 Jun 2015 15:37:17 -0700
parents c1d163ce7394
children fa2e91d00e4c
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Thu Jun 11 15:36:03 2015 -0700
+++ b/mercurial/revset.py	Thu Jun 11 15:37:17 2015 -0700
@@ -1105,6 +1105,7 @@
     hs = set()
     for b, ls in repo.branchmap().iteritems():
         hs.update(repo[h].rev() for h in ls)
+    # XXX We should not be using '.filter' here, but combines subset with '&'
     # XXX We should combine with subset first: 'subset & baseset(...)'. This is
     # necessary to ensure we preserve the order in subset.
     return baseset(hs).filter(subset.__contains__)