comparison 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
comparison
equal deleted inserted replaced
486:098d1f039c18 487:2ad41189bee5
326 override those in .hgrc. 326 override those in .hgrc.
327 327
328 NAMED REPOSITORIES 328 NAMED REPOSITORIES
329 ------------------ 329 ------------------
330 330
331 To give symbolic names to a repository, create a section in .hgrc 331 To give symbolic names to a repository, create a section in .hgrc
332 or .hg/hgrc containing assignments of names to paths. 332 or .hg/hgrc containing assignments of names to paths. Example:
333 333
334 Example: 334 -----------------
335
336 [paths] 335 [paths]
337 hg = http://selenic.com/hg 336 hg = http://selenic.com/hg
338 tah = http://hg.intevation.org/mercurial-tah/ 337 tah = http://hg.intevation.org/mercurial-tah/
338 -----------------
339
340
341 HOOKS
342 -----
343
344 Mercurial supports a set of 'hook', commands that get automatically
345 executed by various actions such as starting or finishing a commit. To
346 specify a hook, simply create an hgrc section like the following:
347
348 -----------------
349 [hooks]
350 precommit = echo "this hook gets executed immediately before a commit"
351 commit = hg export $NODE | mail -s "new commit $NODE" commit-list
352 -----------------
353
339 354
340 NON_TRANSPARENT PROXY SUPPORT 355 NON_TRANSPARENT PROXY SUPPORT
341 ----------------------------- 356 -----------------------------
342 357
343 To access a Mercurial repository through a proxy, 358 To access a Mercurial repository through a proxy, create a file
344 create a file $HOME/.hgrc in the following format: 359 $HOME/.hgrc in the following format:
345 360
361 --------------
346 [http_proxy] 362 [http_proxy]
347 host=myproxy:8080 363 host=myproxy:8080
348 user=<username> 364 user=<username>
349 passwd=<password> 365 passwd=<password>
350 no=<localhost1>,<localhost2>,<localhost3>,... 366 no=<localhost1>,<localhost2>,<localhost3>,...
351 367 --------------
352 "user","passwd" fields are used for authenticating proxies, 368
353 "no" is a comma-separated list of local host names 369 "user","passwd" fields are used for authenticating proxies, "no" is a
354 for which proxy must be bypassed. 370 comma-separated list of local host names for which proxy must be
371 bypassed.
372
355 373
356 BUGS 374 BUGS
357 ---- 375 ----
358 Probably lots, please post them to the mailing list (See Resources below) 376 Probably lots, please post them to the mailing list (See Resources below)
359 when you find them. 377 when you find them.