Give a working example of hgrc and mention the need for --post-commit

master
http://www.zeitlins.org/id/VZ/ 2009-04-02 06:16:37 -04:00 committed by Joey Hess
parent 524827c3cf
commit 1b4e83941e
1 changed files with 3 additions and 3 deletions

View File

@ -10,9 +10,9 @@ commits edited pages, and uses the Mercurial history to generate the
Example for a `.hg/hgrc` file in `$SRCDIR`:
[hooks]
post-commit = /home/abe/bin/rebuildwiki
incoming = /home/abe/bin/rebuildwiki
post-commit = ikiwiki --setup /path/to/ikiwiki.setup --post-commit
incoming = ikiwiki --setup /path/to/ikiwiki.setup --post-commit
Do not use `commit` or `precommit` hooks or ikiwiki will run into a dead lock when committing in `$SRCDIR`
Do not use `commit` or `precommit` hooks or ikiwiki will run into a dead lock when committing in `$SRCDIR`. Also note that `--post-commit` and not `--refresh` must be used to avoid dead locking when editing the pages via CGI interface.
See also [[todo/mercurial|todo/mercurial]]