Commits

Pierre-Yves David  committed 5b23cdf

[evolution:amend] prevent amending immutable changeset.

  • Participants
  • Parent commits 5b8d08c

Comments (0)

Files changed (1)

File hgext/evolution.py

 
     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