comparison mercurial/changelog.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 bc84a1aeaf5a
children e7cfe3587ea4
comparison
equal deleted inserted replaced
17206:70ebb4bd8083 17207:62c56c94c77e
118 self.version &= ~revlog.REVLOGGENERALDELTA 118 self.version &= ~revlog.REVLOGGENERALDELTA
119 self._generaldelta = False 119 self._generaldelta = False
120 self._realopener = opener 120 self._realopener = opener
121 self._delayed = False 121 self._delayed = False
122 self._divert = False 122 self._divert = False
123 # hiddenrevs: revs that should be hidden by command and tools
124 self.hiddenrevs = set()
125 123
126 def delayupdate(self): 124 def delayupdate(self):
127 "delay visibility of index updates to other readers" 125 "delay visibility of index updates to other readers"
128 self._delayed = True 126 self._delayed = True
129 self._divert = (len(self) == 0) 127 self._divert = (len(self) == 0)