comparison 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
comparison
equal deleted inserted replaced
291:d508e5dd0a11 294:98c9c69c311d
431 431
432 lock = repo.lock() 432 lock = repo.lock()
433 try: 433 try:
434 wlock = repo.wlock() 434 wlock = repo.wlock()
435 try: 435 try:
436 if not old.phase(): 436 if old.phase() == phases.public:
437 raise util.Abort(_("can not rewrite immutable changeset %s") % old) 437 raise util.Abort(_("can not rewrite immutable changeset %s") % old)
438 oldphase = old.phase() 438 oldphase = old.phase()
439 # commit current changes as update 439 # commit current changes as update
440 # code copied from commands.commit to avoid noisy messages 440 # code copied from commands.commit to avoid noisy messages
441 ciopts = dict(opts) 441 ciopts = dict(opts)