How to delete a branch in hg?

梦想的初衷 提交于 2019-12-31 03:03:07

问题


I am recently learning git, and found people can delete short branches, but in Hg, after merging the branch to default, how could I delete it?


回答1:


You cannot. You can close the branch to hide it from the list of active branches, but you cannot completely delete it.

This happens because in mercurial and in git the "branch" term means different things.

In mercurial - it is a set of changesets.

And in git - it is a pointer to a particular changeset.



来源:https://stackoverflow.com/questions/11681218/how-to-delete-a-branch-in-hg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!