How to manage code with Mercurial

The Mercurial project offers excellent resources for those who are new to using it and/or any other distributed source control management tool.

For quick instructions on how to jump right in and begin using Mercurial, take a look at their QuickStart guide. If that's too fast, then the tutorial would be a good choice. Finally, a detailed walkthrough of using Mercurial can be found in the online book Mercurial: The Definitive Guide.

Common Operations

Peer Sync Operations

One of the strengths of Mercurial is the ability to do peer sync. This means that you can sync changes with your peer instead of with the server. In other words, it doesn't require a server which means you don't need Internet connectivity that is often not available in competition. Everybody has a complete copy of the repository. This is especially useful during competition where team members may make changes after each match and wish to revert to a previous version if the change doesn't work. It is also useful to share the changes with other team members. One way to make peer sync operations simple is to create a repository on a USB flash drive and treat it as your server. Then you can push changes to the USB flash drive repository and pass it around to other members who can pull changes from it. Here are the steps to create and use a USB flash drive repository.

UsingMercurial (last edited 2012-01-11 02:55:26 by MikeTsang)