Mercurial > evolve
diff hgext/evolve.py @ 294:98c9c69c311d
evolve: use explicit phase constants
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Thu, 21 Jun 2012 16:23:42 +0200 |
parents | 88a851a54f26 |
children | a5894bb97909 |
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