hgext/evolve.py
changeset 294 98c9c69c311d
parent 284 88a851a54f26
child 295 a5894bb97909
--- a/hgext/evolve.py	Wed Jun 20 16:07:20 2012 +0200
+++ b/hgext/evolve.py	Thu Jun 21 16:23:42 2012 +0200
@@ -433,7 +433,7 @@
     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