I'd like to amend my last commit, but running
hg commit --amend
gives me
abort: cannot amend public changesets
even though I know that it's safe to edit the changeset. How can I change the phase of my last commit and/or tell Mercurial that it's safe to amend?