Mercurial

From SVG

Configuring Mercurial

Before you even install Mercurial, create your configuration file. Mercurial looks for per-user configuration in the file $HOME/.hgrc (Mac/Linux) or %USERPROFILE%\.hgrc (Windows). (A file called Mercurial.ini can also be used instead .hgrc on all platforms.)

Your configuration file should contain AT LEAST:

[ui]

# ---- !!!! ---- CHANGE THE NEXT LINE ---- !!!! ----
username = name <email>
merge = internal:merge

# Configuring and turning on the eol extension is vital for SVG WG repositories
[eol]

only-consistent = False

[extensions]

hgext.eol =
children =
fetch =
rebase =
hgext.mq =
hgext.graphlog =
hgext.rebase =
hgext.extdiff =

[diff]

git = True
showfunc = True
unified = 8

[defaults]

diff = -p -U 8
qnew = -U
qdiff = -p -U 8

The parts marked in red are absolutely essential, or you're going to get bitten. The eol parts are to enable the eol extension and make it do the right thing.

Mercurial documentation

See the Mercurial Guide, Mercurial wiki or the Mercurial man page for general documentation.