An Introduction to Mercurial using EasyMercurial (easyHg)¶
Mercurial is a distributed revision control tool. It is written in Python.
Running for the first time¶
When you run easyHg for the first time you'll be prompted for a username and email address. These are the details that will be used to identify all your changes pushed to the repositories. They can be changed later in the preferences menu.
The User Interface¶
EasyMercurial is an interface for Mercurial, simplifying its usage and making it usable by common users.
My Work Tab¶
Graph of changes. The user can right click on any version and act on it (update to it, revert, )
These are the commands you'll find in the easyMercurial interface:
add add the specified files on the next commit
commit commit the specified files or all outstanding changes
diff diff repository (or selected files)
incoming show new changesets found in source (in the easyMercurial interface this command is called Preview)
merge merge working directory with another revision
pull pull changes from the specified source
push push changes to the specified destination
revert restore individual files or directories to an earlier state
update update working directory (or switch revisions)
Creating or Opening a Repository¶
Allows you to open a local repository.
Allows you to initialize a local folder as a Mercurial repository.
If you have a remote repository URL and want to clone (make a copy of an existing repository) it to your local filesystem.
Updating local repository from remote:
Updating remote repository from local:
A window will pop-up asking you to write a message to describe your changes. This message is very important because it will tell you and the other developers in the project the reason why you are pushing the changes to the repository.
- For a simple tutorial on Mercurial (command line), please go to http://hginit.com/
- Mercurial: The Definitive Guide by Bryan O'Sullivan is a reference book on Mercurial. You can read it for free here: http://hgbook.red-bean.com/
- Simple and starightforward mercurial tutorial http://wiki.alliedmods.net/Mercurial_Tutorial