关闭汞分支机构
当使用hg分支FeatureBranchName
并将其发布到开发人员之间共享的中央存储库时,有没有办法在其开发正式与开发人员合并时最终关闭FeatureBranchName
默认分支?
如果执行 hg Branches
命令时 FeatureBranchName
不可见,这也会很有帮助。
When using hg branch FeatureBranchName
and publishing it to a central repo that is shared amongst developers, is there a way to eventually close the FeatureBranchName
when its development has officially been merged with the default branch?
It would also be helpful if the FeatureBranchName
was not visible when performing a hg branches
command.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
应该足以标记分支关闭。 (请参阅
hg 提交
)另请参阅此帖子:
注意:“关闭分支”业务是 Git 中缺失的一个方面。 ,与 Mercurial 相比:
should be enough to mark a branch close. (see
hg commit
)See also this thread:
Note: that "closing branch" business is one aspect seen as missing in Git, when compared to Mercurial:
我编写了一个简单的脚本来完成分支关闭,命令位于 PruningDeadBranches。
## 脚本 ##
如何
移动到存储库的本地副本,并通过给出参数来运行此脚本。例如:
它做什么
这会执行以下操作:
错误消息。
I wrote a simple script that completes the branch close, commands found at PruningDeadBranches.
## Script ##
How to
Move to the local copy of the repository, and run this script by giving an argument. For example:
What does it do
This does the following:
an error message.