How can I get the changes from a "master" repository in mercurial for a project hosted on google code?
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 change开发者_开发知识库s and I want to pull them. How do I get my "server" clone updated with those changes?
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.
精彩评论