Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 17207:62c56c94c77e
hidden: move hiddenrevs set on the repository
This set is always accessed through the repo for now. Having this set
carried by the changelog make it complicated to:
- initialize it, computing hidden set may involve revset call
- lazy compute it, (1) only the changelog can detect someone access it,
(2) only the repo have enought knowledge to compute it.
In later version I expect he changelog to apply filtering itself and the set to
be carried by changelog again.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 16 Jul 2012 17:44:46 +0200 |
parents | c621f84dbb35 |
children | 32e9d63d9ba6 |
line wrap: on
line diff
--- a/mercurial/context.py Fri Jul 13 14:38:49 2012 +0200 +++ b/mercurial/context.py Mon Jul 16 17:44:46 2012 +0200 @@ -203,7 +203,7 @@ def mutable(self): return self.phase() > phases.public def hidden(self): - return self._rev in self._repo.changelog.hiddenrevs + return self._rev in self._repo.hiddenrevs def parents(self): """return contexts for each parent changeset"""