Abandon Mercurial topic

503 Views Asked by At

What is the best way to abandon unwanted changesets currently in a Mercurial topic, which have already been pushed and cannot just be stripped?

To put the question another way, is is possible to remove a topic from the hg topics output without publishing it?

1

There are 1 best solutions below

5
On BEST ANSWER

hg prune -r "topic(some-topic-name)" will mark all revisions marked with the topic some-topic-name as obsolete locally

hg push --hidden should then mark them as such in the remote repository. --hidden is not always required.