Rob Agar
Rob Agar

Reputation: 12459

Abandon Mercurial topic

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?

Upvotes: 4

Views: 556

Answers (1)

Anthony Williams
Anthony Williams

Reputation: 68641

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.

Upvotes: 5

Related Questions