[evolution:amend] prevent amending immutable changeset.
diff --git a/hgext/evolution.py b/hgext/evolution.py --- a/hgext/evolution.py +++ b/hgext/evolution.py @@ -246,6 +246,8 @@ def amend(ui, repo, *pats, **opts): wlock = repo.wlock() try: + if not old.state().mutable: + raise util.Abort(_("can not rewrite immutable changeset %s") % old) # commit current changes as update # code copied from commands.commit to avoid noisy messages