Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 changes and I want to pull them. How do I get my "server" clone updated with those changes?

like image 764
OscarRyz Avatar asked Dec 06 '25 00:12

OscarRyz


1 Answers

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.

like image 56
Matthew Flaschen Avatar answered Dec 07 '25 15:12

Matthew Flaschen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!