放弃 Mercurial 主题

huangapple go评论134阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年1月6日 18:58:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/59610868.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定