hidden: remove tags use in hidden computation
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 03 Sep 2012 14:35:31 +0200
changeset 17716 1adba7ff4d26
parent 17715 21c503480986
child 17717 009db477c9fb
hidden: remove tags use in hidden computation Tags initially prevented revision to be hidden. It seemed a bad idea to have tags refer to revisions that one can't see. But proper filtering of hidden revisions excludes them from tag computation. Coming changelog filtering will do that. Anyway, tags that really matter will likely be public and therefore not hidden. The current working directory parent and bookmarked revision are still not hidden. Bookmarks were likely automatically moved at rewrite time, bookmarks that remain on obsolete revisions were probably moved there on purpose.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Sep 03 14:35:05 2012 +0200
+++ b/mercurial/localrepo.py	Mon Sep 03 14:35:31 2012 +0200
@@ -312,7 +312,7 @@
         hidden = set()
         if self.obsstore:
             ### hide extinct changeset that are not accessible by any mean
-            hiddenquery = 'extinct() - ::(. + bookmark() + tagged())'
+            hiddenquery = 'extinct() - ::(. + bookmark())'
             hidden.update(self.revs(hiddenquery))
         return hidden