]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - IkiWiki/Plugin/mercurial.pm
Merge branch 'master' into autoconfig
[www/ikiwiki.git] / IkiWiki / Plugin / mercurial.pm
index d2c34fa6a5810c43ac999fb23184a08dab1abc76..b05c954dc5565433add20738f8020bd83fe4b8f9 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 => "mercurial", call => \&checkconfig);
        hook(type => "getsetup", id => "mercurial", call => \&getsetup);
        hook(type => "rcs", id => "rcs_update", call => \&rcs_update);