aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/mercurial.mdwn
diff options
context:
space:
mode:
authorhttp://weakish.int.eu.org/ <http://weakish.int.eu.org/@web>2009-02-07 14:19:28 -0500
committerJoey Hess <joey@kitenet.net>2009-02-07 14:19:28 -0500
commit3aab99fae5f7681154a35a3e75d8e225424e2d8b (patch)
treefb8a73dabe89af4017b1267dabdde1f90c6e2815 /doc/todo/mercurial.mdwn
parentf8d24df4c40dc958649aafeb6646d876f290dbb7 (diff)
downloadikiwiki-3aab99fae5f7681154a35a3e75d8e225424e2d8b.tar
ikiwiki-3aab99fae5f7681154a35a3e75d8e225424e2d8b.tar.gz
--post-commit won't delete pages and --refresh seems no deadlock
Diffstat (limited to 'doc/todo/mercurial.mdwn')
-rw-r--r--doc/todo/mercurial.mdwn19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/todo/mercurial.mdwn b/doc/todo/mercurial.mdwn
index f0dbf9806..c0af10719 100644
--- a/doc/todo/mercurial.mdwn
+++ b/doc/todo/mercurial.mdwn
@@ -29,6 +29,25 @@ This should update the working directory and run ikiwiki every time a change is
> It can deadlock if the post-commit hook runs with --refresh in the
> former case. --[[Joey]]
+The problem with --post-commit is that if you delete some pages in $SRC, ikiwiki --setup setupfile --post-commit will not delete them in $DEST.
+
+I add the following to .hg/hgrc:
+
+ [hooks]
+ changegroup = hg update >&2 && ikiwiki --setup path.to.setup.file --refresh
+ post-commit = ikiwiki --setup path.to.setup.file --refresh
+
+I tried the follwing commands in $SRC:
+
+ touch deadlocktest.mdwn
+ hg add
+ hg ci
+
+No deadlock happens. (Also I push to the $SRC from another machine, again, no deadlock.)
+
+Of course these tests are too simple. The problem is I have no idea when the deadlock will happen. If someone is kind enough to point out, I will run more test.
+
+
***
I have a few notes on mercurial usage after trying it out for a while: