Thursday, December 17, 2009

SVN/CVS Update Like Command in Mercurial

Took me way too long to find this.

To update your sources, you can use:
$ cd main $ hg pull -u

This will pull other people's changes from the server into your repository. It will also update your working copy to the latest version.

If you have made your own changes in this repository (even in a completely unrelated directory), you will need to merge your changes with other people's changes. This requires running hg merge.

1 comment:

BrandonLeiran said...

Before your tip I'd just pull then update - thanks! If I want to pull/update/merge I use the fetch extension (built-in, but disabled by default): http://mercurial.selenic.com/wiki/FetchExtension