]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Give a working example of hgrc and mention the need for --post-commit
authorhttp://www.zeitlins.org/id/VZ/ <http://www.zeitlins.org/id/VZ/@web>
Thu, 2 Apr 2009 10:16:37 +0000 (06:16 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 2 Apr 2009 10:16:37 +0000 (06:16 -0400)
doc/rcs/mercurial.mdwn

index b4baf07f4a32ba4af0bdfd40e3cd0d3f2657d80e..ebfc352025d6e4c46e1dc4020faf512be6b4ce27 100644 (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]]