* monotone: Add code to default mergerc file to run

_MTN/ikiwiki-netsync-hook when a commit is merged in from the net.
master
Joey Hess 2008-02-14 16:10:33 -05:00
parent 8f7d7c1a00
commit 1c06aed378
3 changed files with 12 additions and 0 deletions

View File

@ -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 <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;
}
} #}}}

2
debian/changelog vendored
View File

@ -33,6 +33,8 @@ ikiwiki (2.40) UNRELEASED; urgency=low
* 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

View File

@ -90,6 +90,11 @@ use IkiWiki::Setup::Standard {
# 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?