summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpesco <pesco@web>2008-09-14 14:09:57 -0400
committerJoey Hess <joey@kitenet.net>2008-09-14 14:09:57 -0400
commit974a8d0dffa77e71e55f2b5c91ad6e2f208e987a (patch)
treeb185379565fff0dd7fa243f78b43fb91682bf8fb
parent0d6746a29ff3ddd8d7821b5464a23839c8786184 (diff)
add combined/extended darcs plugin
-rw-r--r--doc/todo/darcs.mdwn22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/todo/darcs.mdwn b/doc/todo/darcs.mdwn
index e757867d2..512a7ba0a 100644
--- a/doc/todo/darcs.mdwn
+++ b/doc/todo/darcs.mdwn
@@ -484,4 +484,26 @@ I have addressed the recentchanges bit, you can find my hacked up darcs.pm at <h
It's got couple of FIXMEs, and a very site-specific filter for recentchanges. Not sure how to do that better though. I will eventually add web commits, probably of my own (and mention it here).
+---
+
+And here's yet another one. :)
+
+<http://khjk.org/~pesco/ikiwiki-darcs/>
+
+I've taken all the good stuff from the above and added the missing hooks. Some of them I haven't had a chance to test, namely `rcs_rename`, `rcs_remove`, `rcs_commit_staged`, and `rcs_diff`. Also, I'm not experienced with perl and don't know where I should have used the function `possibly_foolish_untaint`.
+
+Regarding the repository layout: There are two darcs repositories. One is the `srcdir`, the other we'll call `master`.
+
+ * HTML is generated from `srcdir`.
+ * CGI edits happen in `srcdir`.
+ * The backend pulls updates from `master` into `srcdir`, i.e. darcs commits should happen to `master`.
+ * `master` calls ikiwiki (through a wrapper) in its apply posthook, i.e. `master/_darcs/prefs/defaults` should look like this:
+
+ apply posthook ikiwrap
+ apply run-posthook
+
+ (I'm not sure, should/could it be `ikiwrap --refresh` above?)
+ * The backend pushes CGI edits from `srcdir` back into `master` (triggering the apply hook).
+ * The working copies in `srcdir` and `master` should *not* be touched by the user, only by the CGI or darcs, respectively.
+
[[!tag patch]]