Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 16625:df9df747070d
phases: stop modifying localrepo in readroots()
phasedefaults is also passed explicitely to help the casual reader
understand where it is used without grepping all the sources.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Thu, 10 May 2012 18:52:04 +0200 |
parents | 3f85cef66dcc |
children | 503e674fb545 |
comparison
equal
deleted
inserted
replaced
16624:3f85cef66dcc | 16625:df9df747070d |
---|---|
181 def _writebookmarks(self, marks): | 181 def _writebookmarks(self, marks): |
182 bookmarks.write(self) | 182 bookmarks.write(self) |
183 | 183 |
184 @storecache('phaseroots') | 184 @storecache('phaseroots') |
185 def _phaseroots(self): | 185 def _phaseroots(self): |
186 self._dirtyphases = False | 186 phaseroots, self._dirtyphases = phases.readroots( |
187 phaseroots = phases.readroots(self) | 187 self, self._phasedefaults) |
188 return phaseroots | 188 return phaseroots |
189 | 189 |
190 @propertycache | 190 @propertycache |
191 def _phaserev(self): | 191 def _phaserev(self): |
192 cache = [phases.public] * len(self) | 192 cache = [phases.public] * len(self) |