changeset 9830:ab1625ccf3a9

hgrc.5: oft-requested "hg update" hook example
author Martin Geisler <mg@lazybytes.net>
date Wed, 11 Nov 2009 20:08:26 +0100
parents 1b2516a547d4
children 9ebad1b93456
files doc/hgrc.5.txt
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/hgrc.5.txt	Wed Nov 11 19:45:00 2009 +0100
+++ b/doc/hgrc.5.txt	Wed Nov 11 20:08:26 2009 +0100
@@ -482,6 +482,8 @@
 Example ``.hg/hgrc``::
 
   [hooks]
+  # update working directory after adding changesets
+  changegroup.update = hg update
   # do not use the site-wide hook
   incoming =
   incoming.email = /my/email/hook