Friday, 27 September 2013

Small Mercurial how-to

How to create/override the "release" branch

hg update defaulthg branch -f releasehg push -f

How to see all branches

hg branches

How to jump to the "default" branch

hg update default

How to see the last push info

hg tip

How to save your password

The insecure way

Edit your ".hg/hgrc" file and write in:

[paths]
project1 = http://hg.my-own-domain.com/hg/PROJECT_1
project2 = http://hg.my-own-domain.com/hg/PROJECT_2
...


[auth]
project1.schemes = http https
project1.prefix = hg.my-own-domain.com/hg
project1.username = MY_USER_NAME
project1.password = MY_PASSWORD
...

The secure way


http://mercurial.selenic.com/wiki/KeyringExtension

No comments:

Post a Comment