changeset 294:98c9c69c311d

evolve: use explicit phase constants
author Patrick Mezard <patrick@mezard.eu>
date Thu, 21 Jun 2012 16:23:42 +0200
parents d508e5dd0a11
children a5894bb97909
files hgext/evolve.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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