equal
deleted
inserted
replaced
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) |