]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/monotone.pm
add guard against enabling multiple rcs plugins
[ikiwiki.git] / IkiWiki / Plugin / monotone.pm
index 4b9be316a4e602f5aaa075c8c62f2e8ade8e3ed2..a591ecec56e3f099e6bf2cff5bc4a565f753a71f 100644 (file)
@@ -11,6 +11,9 @@ use Date::Format qw(time2str);
 my $sha1_pattern = qr/[0-9a-fA-F]{40}/; # pattern to validate sha1sums
 
 sub import { #{{{
+       if (exists $IkiWiki::hooks{rcs}) {
+               error(gettext("cannot use multiple rcs plugins"));
+       }
        hook(type => "checkconfig", id => "monotone", call => \&checkconfig);
        hook(type => "getsetup", id => "monotone", call => \&getsetup);
        hook(type => "rcs", id => "rcs_update", call => \&rcs_update);