Mercurial > hg
diff doc/hg.1.txt @ 487:2ad41189bee5
Add initial hook support
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Add initial hook support
This adds the basic hook code as well as pre and post-commit hooks.
Argument passing is by environment variable key/value pairs so that
extra data can be passed over time. File lists will generally not be
passed to hooks as these can be extremely long (>1M).
manifest hash: 45cf9bab432782c391bc9c1c048c84cc75d52740
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCwOukywK+sNU5EO8RAsVsAJ9QipR2aKRSSvoRNo+3If6JddUDkwCgkZrM
KEmZpUOxhNHqezFVrHDRTjE=
=aedm
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Mon, 27 Jun 2005 22:18:12 -0800 |
parents | c5705ab9cebd |
children | e94cebc60d96 |
line wrap: on
line diff
--- a/doc/hg.1.txt Mon Jun 27 10:01:46 2005 -0800 +++ b/doc/hg.1.txt Mon Jun 27 22:18:12 2005 -0800 @@ -328,30 +328,48 @@ NAMED REPOSITORIES ------------------ - To give symbolic names to a repository, create a section in .hgrc - or .hg/hgrc containing assignments of names to paths. +To give symbolic names to a repository, create a section in .hgrc +or .hg/hgrc containing assignments of names to paths. Example: - Example: - +----------------- [paths] hg = http://selenic.com/hg tah = http://hg.intevation.org/mercurial-tah/ +----------------- + + +HOOKS +----- + +Mercurial supports a set of 'hook', commands that get automatically +executed by various actions such as starting or finishing a commit. To +specify a hook, simply create an hgrc section like the following: + +----------------- +[hooks] +precommit = echo "this hook gets executed immediately before a commit" +commit = hg export $NODE | mail -s "new commit $NODE" commit-list +----------------- + NON_TRANSPARENT PROXY SUPPORT ----------------------------- - To access a Mercurial repository through a proxy, - create a file $HOME/.hgrc in the following format: +To access a Mercurial repository through a proxy, create a file +$HOME/.hgrc in the following format: +-------------- [http_proxy] host=myproxy:8080 user=<username> passwd=<password> no=<localhost1>,<localhost2>,<localhost3>,... +-------------- - "user","passwd" fields are used for authenticating proxies, - "no" is a comma-separated list of local host names - for which proxy must be bypassed. +"user","passwd" fields are used for authenticating proxies, "no" is a +comma-separated list of local host names for which proxy must be +bypassed. + BUGS ----