# HG changeset patch # User Pierre-Yves David # Date 1346675731 -7200 # Node ID 1adba7ff4d26e9f1ed3a977e3611bf8510020fb8 # Parent 21c5034809865e844e6905e5159ef1dc1da897c0 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. diff -r 21c503480986 -r 1adba7ff4d26 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