]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/contrib/cvs/discussion.mdwn
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[ikiwiki.git] / doc / plugins / contrib / cvs / discussion.mdwn
1 I've started reviewing this, and the main thing I don't like is the
2 post-commit wrapper wrapper that ikiwiki-makerepo is patched to set up.
3 That just seems unnecessarily complicated. Why can't ikiwiki itself detect
4 the "cvs add <directory>" call and avoid doing anything in that case?
5 --[[Joey]] 
6
7 > The wrapper wrapper does three things:
8 >
9 > 7. It ignores `cvs add <directory>`, since this is a weird CVS
10 > behavior that ikiwiki gets confused by and doesn't need to act on.
11 > 7. It prevents `cvs` locking against itself: `cvs commit` takes a
12 > write lock and runs the post-commit hook, which runs `cvs update`,
13 > which wants a read lock and sleeps forever -- unless the post-commit
14 > hook runs in the background so the commit can "finish".
15 > 7. It fails silently if the ikiwiki post-commit hook is missing.
16 > CVS doesn't have any magic post-commit filenames, so hooks have to
17 > be configured explicitly. I don't think a commit will actually fail
18 > if a configured post-commit hook is missing (though I can't test
19 > this at the moment).
20 >
21 > Thing 1 can probably be handled within ikiwiki, if that seems less
22 > gross to you.
23 >
24 > Thing 2 I'm less sure of. (I'd like to see the web UI return
25 > immediately on save anyway, to a temporary "rebuilding, please wait
26 > if you feel like knowing when it's done" page, but this problem
27 > with CVS happens with any kind of commit, and could conceivably
28 > happen with some other VCS.)
29 >
30 > Thing 3 I think I did in order to squelch the error messages that
31 > were bollixing up the CGI. It was easy to do this in the wrapper
32 > wrapper, but if that's going away, it can be done just as easily
33 > with output redirection in `CVSROOT/loginfo`.
34 >
35 > --[[schmonz]]