Mercurial > hg
diff mercurial/localrepo.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 | 97eff00046de |
children | 8018f2340807 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri Jul 13 14:38:49 2012 +0200 +++ b/mercurial/localrepo.py Mon Jul 16 17:44:46 2012 +0200 @@ -131,7 +131,12 @@ # Callback are in the form: func(repo, roots) --> processed root. # This list it to be filled by extension during repo setup self._phasedefaults = [] - + # hiddenrevs: revs that should be hidden by command and tools + # + # This set is carried on the repo to ease initialisation and lazy + # loading it'll probably move back to changelog for efficienty and + # consistency reason + self.hiddenrevs = set() try: self.ui.readconfig(self.join("hgrc"), self.root) extensions.loadall(self.ui)