Topic change does not clean-up the old topic
Summary
When changing the topic on one commit (and this commit is the only one with this topic) and after a push, the old topic is still shown by heptapod showing the old commit (different content and message).
Steps to reproduce
- Create project https://dev.heptapod.net/lothiraldan/test-topic-bug
- Clone it
- Add a ROOT public commit:
touch ROOT && hg add ROOT && hg commit -m "Add ROOT" && hg push --publish
1, Create a commit on a topic:hg topic "my-first-topic" && touch A && hg add A && hg commit -m "My draft commit" && hg push
- So far the two branches (branch/default and topic/default/my-first-topic) are correctly shown.
- Rewrite the commit and change its topic:
hg topic -r . "my-second-topic" && hg amend -e -m "My rewritten draft commit" && hg push
Now the interface show the old topic with the old commit message:
Example Project
https://dev.heptapod.net/lothiraldan/test-topic-bug/branches
What is the current bug behavior?
The old topic is still visible even if it's empty on hg side.
What is the expected correct behavior?
The old topic is not visible anymore.