_MTN/ikiwiki-netsync-hook when a commit is merged in from the net.
debug("$mergerc doesn't exist. Creating file with default mergers.");
open (my $out, ">", $mergerc) or error("can't open $mergerc: $!");
print $out <DATA>;
+ 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;
}
} #}}}
* Fix a bug where user A created a page concurrently with user B, and
when B previewed it would redirect B to A's new page, losing B's work.
Instead, don't redirect and let conflict handling resolve it.
+ * monotone: Add code to default mergerc file to run
+ _MTN/ikiwiki-netsync-hook when a commit is merged in from the net.
-- Josh Triplett <josh@freedesktop.org> Sun, 10 Feb 2008 13:18:58 -0800
# wrapper => "/git/wiki.git/hooks/post-update",
# wrappermode => "06755",
#},
+ #{
+ # # The monotone netsync hook.
+ # wrapper => "path/to/root/of/workspace/_MTN/ikiwiki-netsync-hook",
+ # wrappermode => "06755",
+ #},
],
# Default to generating rss feeds for blogs?