hgext/evolve.py
changeset 294 98c9c69c311d
parent 284 88a851a54f26
child 295 a5894bb97909
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)