Mercurial¶
There's also an extensive tutorial at http://hginit.com
1st checkout¶
anonymous HTTP¶
hg clone http://hg.openttdcoop.org/<project> [<alias>]
authenticated HTTPS¶
hg clone https://<user>:<password>@push.openttdcoop.org/<project> [<alias>]
or with hgrc:
hg clone https://push.openttdcoop.org/<project> [<alias>]
hgrc:
[auth] openttdcoop.prefix = push.openttdcoop.org openttdcoop.username = <username> openttdcoop.password = <password> openttdcoop.shemes = https
If you don't want to save passwords in plain text on your system, you might consider using extension keyring.
usecure authenticated HTTP
Please use this only, if you get troubles with HTTPS/SSH and report those immediately.
hg clone http://usecure-push.openttdcoop.org/<project> [<alias>]
authenticated SSH¶
hg clone ssh://hg@hg.openttdcoop.org/<project> [<alias>]
Fingerprint
update workcopy¶
hg update [<version>] (head if none)
synchronize Repository¶
from server¶
hg pull [-u] [<url>]
(the same url as for clone) Use option -u in order to update the repository at the same time.
to server¶
hg push [<url>] (url from .hg/hgrc)
(with https or ssh)
HTTPS push is allowed for project Managers and Developers
Mercurial references¶
http://hgbook.red-bean.com/ - The Definitive Guide
http://hginit.com/ - Hg Init: a Mercurial tutorial
https://developer.mozilla.org/en/Mercurial_FAQ
http://mercurial.aragost.com/kick-start/