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?
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