# HG changeset patch # User Patrick Mezard # Date 1340288622 -7200 # Node ID 98c9c69c311d4ae5f8cd898a4489b93b45704daa # Parent d508e5dd0a11352d88786d04f01b6055e9ed8620 evolve: use explicit phase constants diff -r d508e5dd0a11 -r 98c9c69c311d 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