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?
If you cloned the repository from the one you want to pull changes from, you can simply do:
If you cloned the repository from another repository, you can:
You’ll then need to update your working copy:
That’s the basics, anyway. More details are available in the Mercurial: The Definitive Guide