Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 17716:1adba7ff4d26
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.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Mon, 03 Sep 2012 14:35:31 +0200 |
parents | 21c503480986 |
children | e6067bec18da |
comparison
equal
deleted
inserted
replaced
17715:21c503480986 | 17716:1adba7ff4d26 |
---|---|
310 hidden changesets cannot have non-hidden descendants | 310 hidden changesets cannot have non-hidden descendants |
311 """ | 311 """ |
312 hidden = set() | 312 hidden = set() |
313 if self.obsstore: | 313 if self.obsstore: |
314 ### hide extinct changeset that are not accessible by any mean | 314 ### hide extinct changeset that are not accessible by any mean |
315 hiddenquery = 'extinct() - ::(. + bookmark() + tagged())' | 315 hiddenquery = 'extinct() - ::(. + bookmark())' |
316 hidden.update(self.revs(hiddenquery)) | 316 hidden.update(self.revs(hiddenquery)) |
317 return hidden | 317 return hidden |
318 | 318 |
319 @storecache('00changelog.i') | 319 @storecache('00changelog.i') |
320 def changelog(self): | 320 def changelog(self): |