Amend can not forget files
Created originally on Bitbucket by psuter (Peter Suter)
Steps to reproduce:
hg init
echo foo > foo.txt
echo bar > bar.txt
hg add foo.txt
hg add bar.txt
hg commit -m "Added foo and bar"
hg rm bar.txt
echo (but not bar) >> foo.txt
thg
Now in TortoiseHG switch to "Amend" mode, modify the commit message and click the Amend button.
Expected behavior: The changeset should not contain bar.txt
anymore.
Actual (wrong?) behavior: The changeset still contains bar.txt
.
A similar problem is adding a file, commit, renaming it, amend. It does not seem possible to amend the changeset in such a way that only the renamed file is added.