Commits

Patrick Mézard committed 98c9c69

evolve: use explicit phase constants

Comments (0)

Files changed (1)

     try:
         wlock = repo.wlock()
         try:
-            if not old.phase():
+            if old.phase() == phases.public:
                 raise util.Abort(_("can not rewrite immutable changeset %s") % old)
             oldphase = old.phase()
             # commit current changes as update