diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-30 14:32:48 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-30 14:32:48 -0400 |
commit | 6c8a8dd13b96f2990f58596c7ec5e7c497b39cbe (patch) | |
tree | 4cdb03750aa6178cd43ca744106c69987ceef2eb /IkiWiki/Plugin/monotone.pm | |
parent | 12c5786df4e74c143f24398b8d0028000b61daba (diff) | |
download | ikiwiki-6c8a8dd13b96f2990f58596c7ec5e7c497b39cbe.tar ikiwiki-6c8a8dd13b96f2990f58596c7ec5e7c497b39cbe.tar.gz |
add guard against enabling multiple rcs plugins
Diffstat (limited to 'IkiWiki/Plugin/monotone.pm')
-rw-r--r-- | IkiWiki/Plugin/monotone.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/monotone.pm b/IkiWiki/Plugin/monotone.pm index 4b9be316a..a591ecec5 100644 --- a/IkiWiki/Plugin/monotone.pm +++ b/IkiWiki/Plugin/monotone.pm @@ -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); |