clfilter: unfilter computation of obsolescence related computation
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Mon, 08 Oct 2012 16:55:00 +0200
changeset 18001 e02feadd15ea
parent 18000 f9459bcd25fc
child 18002 9bc5873e52af
clfilter: unfilter computation of obsolescence related computation All obsolescence related sets need to be computed on the full unfiltered version of the repository, in particular because several of them (obsolete, extinct) are used to compute the hidden revisions. On a filtered repo, revset predicates related to these sets will be properly filtered because of revset's own pre-filtering.
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Mon Nov 26 19:24:11 2012 +0100
+++ b/mercurial/obsolete.py	Mon Oct 08 16:55:00 2012 +0200
@@ -426,6 +426,7 @@
     """Return the set of revision that belong to the <name> set
 
     Such access may compute the set and cache it for future use"""
+    repo = repo.unfiltered()
     if not repo.obsstore:
         return ()
     if name not in repo.obsstore.caches: