Mercurial-如何从fork的父级获取最新更改? [英] Mercurial - how to fetch latest changes from parent of fork?

查看:56
本文介绍了Mercurial-如何从fork的父级获取最新更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经与Mercurial接触了片刻,现在我已经在BitBucket上建立了几个项目,一个从另一个项目中派生出来.

I've been dabbling with Mercurial for a short while now, and I've now set up several projects on BitBucket, one forking off of the other.

我已经能够毫无问题地对每个存储库进行更改,但是我不知道的一件事是如何通过父存储库中的更改使fork保持最新状态?

I've been able to make changes to each repo with no problem, but one thing I can't figure out, is how to keep the fork up-to-date with changes from the parent repo?

在我创建了一个仓库之后,我只看到了从仓库到X版本的提交,之后,我只看到了fork自己的提交,没有新的父提交.

After I've forked a repo, I only see the commits from that repo up to X revision, after which point I only see the fork's own commits, no new parent commits.

我可以肯定的是,在git涉猎期间,我能够恢复到最新的父修订版,但这已经有一段时间了,我宁愿不去猜测一下自己的坏习惯:-)

I'm pretty certain that during my dabbling with git, I was able to rebase to the latest parent revision, but that was awhile back and I'd rather not guess my way into bad habits :-)

推荐答案

只需使用源存储库作为参数执行pull.它将拉出上次拉出之后(或从您分叉项目时开始,如果未执行拉出)所做的所有更改.

Just perform the pull with the source repository as an argument. It will pull all the changes done after your previous pull (or from the time you forked the project, if no pulls were performed).

在那之后,您将有一些其他的负责人,您必须将其与您的负责人合并.

After that you will have some additional heads, which you have to merge with your ones.

这篇关于Mercurial-如何从fork的父级获取最新更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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