如何删除hg中的分支? [英] How to delete a branch in hg?

查看:278
本文介绍了如何删除hg中的分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近正在学习git,发现人们可以删除短分支,但是在Hg中,将分支合并为默认分支后,如何删除它?

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?

推荐答案

您不能.您可以关闭该分支以将其从活动分支列表中隐藏,但是您无法将其完全删除.

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

之所以会这样,是因为在水银和git中,分支"一词的含义不同.

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

从商业角度来说,它是一组变更集.

In mercurial - it is a set of changesets.

在git中-它是指向特定变更集的指针.

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

这篇关于如何删除hg中的分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆