comparison mercurial/localrepo.py @ 15456:abcaaf51d568

phases: handle unknown nodes in boundary We filter unknown node out of the boundary. No data is lost. A filtering is explicitly done after strip too
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 07 Nov 2011 13:20:22 +0100
parents c6f87bdab2a1
children 9ae766f2f452
comparison
equal deleted inserted replaced
15455:c6f87bdab2a1 15456:abcaaf51d568
172 bookmarks.write(self) 172 bookmarks.write(self)
173 173
174 @filecache('phaseroots') 174 @filecache('phaseroots')
175 def _phaseroots(self): 175 def _phaseroots(self):
176 self._dirtyphases = False 176 self._dirtyphases = False
177 return phases.readroots(self) 177 phaseroots = phases.readroots(self)
178 phases.filterunknown(self, phaseroots)
179 return phaseroots
178 180
179 @propertycache 181 @propertycache
180 def _phaserev(self): 182 def _phaserev(self):
181 cache = [0] * len(self) 183 cache = [0] * len(self)
182 for phase in phases.trackedphases: 184 for phase in phases.trackedphases: