Mercurial 的推动和新思路
如果出现 abort: Push creates new Remote Heads!
错误,我想看看在推送期间到底会创建什么内容。我该如何检查?
更多细节:我从一个存储库(上游)拉取并推送到本地分支,该分支确实有其他分支,但已经包含所有上游分支。另外,我只推送一个上游分支。
当我查看 hg 传出
I'd like to see what exactly would be created during a push, if I get the abort: push creates new remote heads!
error. How can I check that?
Some more details: I'm pulling from one repository (upstream) and pushing to a local fork which does have additional branches, but already contains all upstream ones. Also, I'm only pushing one upstream branch.
When I look at hg outgoing <fork_repo>
, I see a stream of commits with a parent and then some commits without. I'm not sure how to understand that really.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的方法是运行
hg pull
。这样,您的本地存储库将包含推送后远程存储库将包含的内容。如果您不想拉动,则将
hgcoming
和hgoutgoing
结合起来通常会给您足够的信息来查看哪一个是两个头。The simplest way is to run
hg pull
. That way, your local repository will contain exactly what the remote repository will contain after the push.If you don't want to pull, combining
hg incoming
andhg outgoing
will usually give you enough information to see which are the two heads.