Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 18252:3f1552c6bf71
context: retrieve hidden from filteredrevs
This prepare the dropping of the repo.hiddenrevs property
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Thu, 03 Jan 2013 18:51:16 +0100 |
parents | 518c1403838f |
children | 6252b4f1c4b4 |
line wrap: on
line diff
--- a/mercurial/context.py Thu Jan 03 18:48:14 2013 +0100 +++ b/mercurial/context.py Thu Jan 03 18:51:16 2013 +0100 @@ -12,6 +12,7 @@ import match as matchmod import os, errno, stat import obsolete as obsmod +import repoview propertycache = util.propertycache @@ -211,7 +212,7 @@ def mutable(self): return self.phase() > phases.public def hidden(self): - return self._rev in self._repo.hiddenrevs + return self._rev in repoview.filteredrevs(self._repo, 'hidden') def parents(self): """return contexts for each parent changeset"""