It look like My1 is a merge but your diagram does not highlight that at all. Can you check the state of your repo with:
hg log --graph
If My1 is a merge (and you expected it to be merge). Mercurial 2.6 should be able to edit a merge changeset. So if you upgrade to Mercurial 2.6.1 or above your original command will work.
hg commit --amend File1.java