Subject: | svn-hooks.conf config file is not optional, causes DIE when non-existant |
The documentation says that the config file is only loaded if it exists,
so then one would expect run_hook not to DIE if its non-existent.
#Work around
#Add the following to your script using SVN::Hooks (very hackish)
@SVN::Hooks::Conf_Files = ();
Snippit from run_hook sub with fix in place
# Reload all configuration files
foreach my $conf (@Conf_Files) {
package main;
last unless ( -e "$Repo/$conf" ); ##### Check for existence
unless (my $return = do "$Repo/$conf") {
die "couldn't parse '$Repo/$conf': $@\n" if $@;
die "couldn't do '$Repo/$conf': $!\n" unless defined $return;
die "couldn't run '$Repo/$conf'\n" unless $return;
}
}