Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
17206:70ebb4bd8083 | 17207:62c56c94c77e |
---|---|
129 self.ui = baseui.copy() | 129 self.ui = baseui.copy() |
130 # A list of callback to shape the phase if no data were found. | 130 # A list of callback to shape the phase if no data were found. |
131 # Callback are in the form: func(repo, roots) --> processed root. | 131 # Callback are in the form: func(repo, roots) --> processed root. |
132 # This list it to be filled by extension during repo setup | 132 # This list it to be filled by extension during repo setup |
133 self._phasedefaults = [] | 133 self._phasedefaults = [] |
134 | 134 # hiddenrevs: revs that should be hidden by command and tools |
135 # | |
136 # This set is carried on the repo to ease initialisation and lazy | |
137 # loading it'll probably move back to changelog for efficienty and | |
138 # consistency reason | |
139 self.hiddenrevs = set() | |
135 try: | 140 try: |
136 self.ui.readconfig(self.join("hgrc"), self.root) | 141 self.ui.readconfig(self.join("hgrc"), self.root) |
137 extensions.loadall(self.ui) | 142 extensions.loadall(self.ui) |
138 except IOError: | 143 except IOError: |
139 pass | 144 pass |