I keep a Mercurial repository on my server so that I can easily keep track of changes to my files and have them readily accessible for any computer. Many of my favorite applications also use Mercurial as a distribution method and for managing source code. Even though my heart belongs to the command-line, my new tablet laptop demands more from the graphical interface. So here is a quick tip to get started working with Mercurial graphically.
[IMG]http://img144.imageshack.us/img144/7714/screenshotqn0.png[/IMG] The Nautilus extension is not included in the Ubuntu repositories but there is a Personal Package Archive (PPA) available that does have it [1]. In order to access the PPA start the Synaptic Package Manager from the System->Administration menu on the panel. From inside Synaptic select Settings->Repositories on the menu bar. In the new window change to the Third-Party Software tab and click the add button. Finally, copy/paste this into the newest window
deb [http://ppa.launchpad.net/gpoo/ubuntu](http://ppa.launchpad.net/gpoo/ubuntu) hardy main
The deb source can be added as well
deb-src [http://ppa.launchpad.net/gpoo/ubuntu](http://ppa.launchpad.net/gpoo/ubuntu) hardy main
Once the PPA is added just reload Synaptic and install
nautilus-mercurial-tortoisehg mercurial-tortoisehg mercurial mercurial-common
Restart Nautilus using this command from the terminal
nautilus -q
Now the right click menu has a new menu called Mercurial. No more typing
hg clone http://code.suckless.org/hg/dwm :)
In order to clone a remote repository just right click in the desired folder and select Mercurial->Create Clone from the menu. The mercurial-tortoisehg window has many advance options but to clone a remote repository simply add the remote's url to the Source Path input box and click the clone button.
[IMG]http://img292.imageshack.us/img292/2895/screenshothgclonehomecabh1.png[/IMG]
Now it is easy to create, synchronize, merge, and commit files to Mercurial repositories. All from a right click menu :)