英文:
Abandon Mercurial topic
问题
什么是放弃已经推送且不能简单剥离的不需要的 Mercurial 主题 更改集的最佳方法?
换句话说,是否可以在不发布主题的情况下从 hg topics
输出中移除它?
英文:
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
得分: 4
hg prune -r "topic(some-topic-name)"
将会在本地将所有标记为主题 some-topic-name
的修订版本标记为过时。
然后,hg push --hidden
应该在远程仓库中标记它们为过时。不一定始终需要使用 --hidden
。
英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论