diff 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
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu May 10 18:21:15 2012 +0200
+++ b/mercurial/localrepo.py	Thu May 10 18:52:04 2012 +0200
@@ -183,8 +183,8 @@
 
     @storecache('phaseroots')
     def _phaseroots(self):
-        self._dirtyphases = False
-        phaseroots = phases.readroots(self)
+        phaseroots, self._dirtyphases = phases.readroots(
+            self, self._phasedefaults)
         return phaseroots
 
     @propertycache