tags:

views:

144

answers:

2

I've forked a Mercurial repository, and now I want to pull the changes from the main repository into my fork. If this were git, I would do something like...

git remote add upstream <url>
git pull upstream master

How do I do this sort of thing in Mercurial?

+2  A: 

Have you tried the pull command?

hg pull http://master.com/master

If that does not work, please elaborate.

Thilo
+2  A: 

If you cloned the repository from the one you want to pull changes from, you can simply do:

hg pull

If you cloned the repository from another repository, you can:

hg pull <location of repository to pull from>

You'll then need to update your working copy:

hg update

That's the basics, anyway. More details are available in the Mercurial: The Definitive Guide

Jim Hurne