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/mercurial.pm | |
parent | 12c5786df4e74c143f24398b8d0028000b61daba (diff) |
add guard against enabling multiple rcs plugins
Diffstat (limited to 'IkiWiki/Plugin/mercurial.pm')
-rw-r--r-- | IkiWiki/Plugin/mercurial.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/mercurial.pm b/IkiWiki/Plugin/mercurial.pm index d2c34fa6a..b05c954dc 100644 --- a/IkiWiki/Plugin/mercurial.pm +++ b/IkiWiki/Plugin/mercurial.pm @@ -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); |