Amend fails with "Nothing changed" when trying to cancel change
Using TortoiseHg 6.5.1, if one accidentally includes changes to file x in a commit and tries using Amend to cancel changes to x, the commit keeps the unwanted changes. If the amendment only consists of such cancellations, the amendment attempt fails with a dialog titled "Nothing Committed" which contains:
Nothing changed.
To workaround, one can strip the incorrect commit using Strip's --keep
option and perform a new commit to replace it.
This is related to ticket #3251 .