From 3d139e43126f2bd18b28feb187425fb22a7dd929 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 27 Jul 2008 01:50:43 -0400 Subject: [PATCH] rcs hook setup for the two I know --- IkiWiki/Setup/Automator.pm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/IkiWiki/Setup/Automator.pm b/IkiWiki/Setup/Automator.pm index 8cf158db2..060a8be56 100644 --- a/IkiWiki/Setup/Automator.pm +++ b/IkiWiki/Setup/Automator.pm @@ -56,7 +56,23 @@ sub import (@) { #{{{ "--url", $setup{url}, "--cgiurl", $setup{cgiurl} ); - push @params, "--rcs", $setup{rcs} if $setup{rcs}; + if ($setup{rcs}) { + push @params, "--rcs", $setup{rcs}; + if ($setup{rcs} eq 'git') { + push @params, "--set", "git_wrapper=". + $setup{repository}."/hooks/post-update"; + } + elsif ($setup{rcs} eq 'svn') { + push @params, "--set", "svn_wrapper=". + $setup{repository}."/hooks/post-commit"; + } + elsif ($setup{rcs} eq 'bzr') { + # TODO + } + elsif ($setup{rcs} eq 'mercurial') { + # TODO + } + } if (exists $setup{add_plugins}) { foreach my $plugin (@{$setup{add_plugins}}) { push @params, "--plugin", $plugin; -- 2.26.2