See also Mercurial graphical user interfaces.
- EasyMercurial — Simple user interface for the Mercurial distributed version control system.
- https://easyhg.org/ || AUR
- hgk — Tcl/Tk based tool to browse the history of a repository in a graphical way.
- hgtui — Textual user interface frontend for DSCM mercurial.
- hgview — Qt4 and text based Mercurial log navigator.
- TortoiseHg — Set of graphical tools and a Nautilus extension for the Mercurial distributed revision control system.
At the minimum you should configure your username or mercurial will most likely give you an error when trying to commit. Do this by editing
~/.hgrc and adding the following:
[ui] username = John Smith <firstname.lastname@example.org>
To use the graphical browser hgk aka. hg view, add the following to
~/.hgrc (see forum thread):
You will need to installbefore running hg view to avoid the rather cryptic error message:
/usr/bin/env: wish: No such file or directory
[web] cacerts = /etc/ssl/certs/ca-certificates.crt
If you are going to be working with large repositories, you may want to enable the progress extension by adding it to your
[extensions] progress =
This will show progress bars on longer operations after 3 seconds. If you would like the progress bar to show sooner, you can append the following to your configuration file:
[progress] delay = 1.5
All mercurial commands are initiated with the hg prefix. To see a list of some of the common commands, run
$ hg help
You can either work with a pre-existing repository (collection of code or files), or create your own to share.
To work with a pre-existing repository, you must clone it to a directory of your choice:
$ mkdir mercurial $ cd mercurial $ hg clone http://hg.serpentine.com/tutorial/[dead link 2020-03-30 ⓘ]
To create you own, change to the directory you wish to share and initiate a mercurial project
$ cd myfiles $ hg init myfiles
If you intend on creating a repo of all your
~/. files, you simply initiate the project in your home folder:
$ hg init
It is then just a case of adding the specific files you wish to track:
$ hg add |file1 file2 file3
You can then create a
~/.hgignore to ensure that only the files you wish to include in the repository are tracked by mercurial.
.hgignorefile, you can easily exclude groups of files from your repository.