From: Joey Hess Date: Sun, 27 Jul 2008 05:50:43 +0000 (-0400) Subject: rcs hook setup for the two I know X-Git-Tag: 2.60~161 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3d139e43126f2bd18b28feb187425fb22a7dd929;p=ikiwiki.git rcs hook setup for the two I know --- 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;