From 1c06aed378e579b7396937fdff4e38ea0482ff5b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 14 Feb 2008 16:10:33 -0500 Subject: * monotone: Add code to default mergerc file to run _MTN/ikiwiki-netsync-hook when a commit is merged in from the net. --- IkiWiki/Rcs/monotone.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'IkiWiki/Rcs') diff --git a/IkiWiki/Rcs/monotone.pm b/IkiWiki/Rcs/monotone.pm index c4a6d9864..6a156892a 100644 --- a/IkiWiki/Rcs/monotone.pm +++ b/IkiWiki/Rcs/monotone.pm @@ -136,6 +136,11 @@ sub check_mergerc () { #{{{ debug("$mergerc doesn't exist. Creating file with default mergers."); open (my $out, ">", $mergerc) or error("can't open $mergerc: $!"); print $out ; + print $out <<"EOF"; + function note_netsync_revision_received(new_id, revision, certs, session_id) + execute("$config{mtnrootdir}/_MTN/ikiwiki-netsync-hook", new_id) + end +EOF close $out; } } #}}} -- cgit v1.2.3