evolve: use explicit phase constants
authorPatrick Mezard <patrick@mezard.eu>
Thu, 21 Jun 2012 16:23:42 +0200
changeset 294 98c9c69c311d
parent 291 d508e5dd0a11
child 295 a5894bb97909
evolve: use explicit phase constants
hgext/evolve.py
--- 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