How can I get the changes from a “master” repository in mercurial for a project hosted on google code?

∥☆過路亽.° 提交于 2019-12-06 06:36:54

问题


I create a "server" clone from a project hosted at code.google.com. I create a clone from that repository in my machine and push some changes; everything goes well.

Now the master repository has some changes and I want to pull them. How do I get my "server" clone updated with those changes?


回答1:


hg pull -u google_code_url

The -u means automatically update your working copy. You can set (if it's not already there) a default URL in the .hg/hgrc file:

[paths]
default = pull_url
default-push = push_url

Then, you can just do:

hg push
hg pull -u

Of course, you can still specify a different location manually.



来源:https://stackoverflow.com/questions/3200250/how-can-i-get-the-changes-from-a-master-repository-in-mercurial-for-a-project

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