comparison mercurial/localrepo.py @ 16626:503e674fb545

phases: stop modifying localrepo in writeroots() Also pass the phaseroots being written for clarity. repo._dirtyphases was already reset to False at call site.
author Patrick Mezard <patrick@mezard.eu>
date Thu, 10 May 2012 18:52:07 +0200
parents df9df747070d
children 3c738cb162bf
comparison
equal deleted inserted replaced
16625:df9df747070d 16626:503e674fb545
930 return l 930 return l
931 931
932 def unlock(): 932 def unlock():
933 self.store.write() 933 self.store.write()
934 if self._dirtyphases: 934 if self._dirtyphases:
935 phases.writeroots(self) 935 phases.writeroots(self, self._phaseroots)
936 self._dirtyphases = False 936 self._dirtyphases = False
937 for k, ce in self._filecache.items(): 937 for k, ce in self._filecache.items():
938 if k == 'dirstate': 938 if k == 'dirstate':
939 continue 939 continue
940 ce.refresh() 940 ce.refresh()