2006-09-06 22:31:55 +02:00
[Mercurial](http://selenic.com/mercurial) is a distributed revison control
system developed by Matt Mackall. Ikiwiki supports storing a wiki in a
mercurial repository.
2008-07-14 22:05:10 +02:00
Ikiwiki can run as a `post-commit` and/or `incoming` hook to update a wiki whenever commits or remote pushes
2006-09-06 22:31:55 +02:00
come in. When running as a [[cgi]] with Mercurial, ikiwiki automatically
commits edited pages, and uses the Mercurial history to generate the
2016-08-22 20:11:49 +02:00
[[RecentChanges]] page.
2008-07-14 21:57:11 +02:00
2008-07-14 22:05:10 +02:00
Example for a `.hg/hgrc` file in `$SRCDIR`:
[hooks]
2009-04-02 12:16:37 +02:00
post-commit = ikiwiki --setup /path/to/ikiwiki.setup --post-commit
incoming = ikiwiki --setup /path/to/ikiwiki.setup --post-commit
2008-07-14 22:05:10 +02:00
2009-04-02 12:16:37 +02:00
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.
2008-07-14 22:05:10 +02:00
2008-07-14 21:57:11 +02:00
See also [[todo/mercurial|todo/mercurial]]