diff mercurial/repoview.py @ 18248:378a025ff269

hidden: move computation in filter function There is not good reason for this computation to be handle in a different way from the other. We are moving the computation of hidden revs in the filter function. In later changesets, code that access to `repo.hiddenrevs` will be updated and the property dropped.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 08 Jan 2013 14:10:29 +0100
parents 58ca19edc043
children f54898526aad
line wrap: on
line diff
--- a/mercurial/repoview.py	Tue Jan 08 12:41:51 2013 +0100
+++ b/mercurial/repoview.py	Tue Jan 08 14:10:29 2013 +0100
@@ -17,7 +17,9 @@
     During most operation hidden should be filtered."""
     assert not repo.changelog.filteredrevs
     if repo.obsstore:
-        return frozenset(repo.revs('hidden()'))
+        ### hide extinct changeset that are not accessible by any mean
+        hiddenquery = 'extinct() - ::(. + bookmark())'
+        return frozenset(repo.revs(hiddenquery))
     return frozenset()
 
 def computeunserved(repo):