mercurial/phases.py
changeset 15922 23921c17299a
parent 15902 4252d9f08d7e
child 15946 b9c7ac405757
--- a/mercurial/phases.py	Wed Jan 18 17:11:27 2012 +0100
+++ b/mercurial/phases.py	Wed Jan 18 17:23:54 2012 +0100
@@ -109,7 +109,6 @@
 def readroots(repo):
     """Read phase roots from disk"""
     roots = [set() for i in allphases]
-    roots[0].add(nullid)
     try:
         f = repo.sopener('phaseroots')
         try:
@@ -121,6 +120,8 @@
     except IOError, inst:
         if inst.errno != errno.ENOENT:
             raise
+        for f in repo._phasedefaults:
+            roots = f(repo, roots)
     return roots
 
 def writeroots(repo):