]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/bzr.pm
add guard against enabling multiple rcs plugins
[ikiwiki.git] / IkiWiki / Plugin / bzr.pm
index 99025a973db235605cf64448e9ccdd04e1fc687b..e7b22f3c5c5ffb24e8c1379b4dc4399cfaf2e6f8 100644 (file)
@@ -8,6 +8,9 @@ use Encode;
 use open qw{:utf8 :std};
 
 sub import { #{{{
+       if (exists $IkiWiki::hooks{rcs}) {
+               error(gettext("cannot use multiple rcs plugins"));
+       }
        hook(type => "checkconfig", id => "bzr", call => \&checkconfig);
        hook(type => "getsetup", id => "bzr", call => \&getsetup);
        hook(type => "rcs", id => "rcs_update", call => \&rcs_update);