Commit message stale after amend and MQ
Created originally on Bitbucket by MarkJeronimus (Mark Jeronimus)
After these steps, the commit message is not of the last commit but of the commit that was amended before.
Requirements: MQ
Steps to reproduce:
- Start with repository with 2 or more commits (obviously with different commit messages),
- Import one or more commits into MQ,
- Unapply all those patches,
- Make some local changes,
- Click working directory,
- Switch to Amend,
- Click amend,
- Apply the patch,
- Finish Patch,
- Click working directory,
- Switch to Amend,
This is a 'data loss' issue as often I don't expect the amend message to be different and the I amend to fast, losing the message. If this is noticed too late, the two commits may be accidentally pushed, making them permanent.