[Bps-public-commit] r9051 - in SVN-Hook: .
clkao at bestpractical.com
clkao at bestpractical.com
Fri Sep 14 09:19:27 EDT 2007
Author: clkao
Date: Fri Sep 14 09:19:25 2007
New Revision: 9051
Modified:
SVN-Hook/CHANGES
SVN-Hook/lib/SVN/Hook.pm
Log:
Make it silent when hooks fail to load SVN::Hook so on nfs
mounts we don't die horribly.
Modified: SVN-Hook/CHANGES
==============================================================================
--- SVN-Hook/CHANGES (original)
+++ SVN-Hook/CHANGES Fri Sep 14 09:19:25 2007
@@ -1,3 +1,9 @@
+[Changes for 0.27 - 15 Sep, 2007]
+
+* Fix redispatch from hook script file itself.
+* Make it silent when we fail to load SVN::Hook::Redispatch
+ from the hook.
+
[Changes for 0.26 - 13 Sep, 2007]
* Initial CPAN release.
Modified: SVN-Hook/lib/SVN/Hook.pm
==============================================================================
--- SVN-Hook/lib/SVN/Hook.pm (original)
+++ SVN-Hook/lib/SVN/Hook.pm Fri Sep 14 09:19:25 2007
@@ -62,7 +62,10 @@
# Generated by svnhook version $VERSION.
# This $hook hook is managed by svnook.
-BEGIN { \$ENV{SVNLOOK} = "$svnlook" };
+BEGIN {
+ \$ENV{SVNLOOK} = "$svnlook";
+ eval 'require SVN::Hook::Redispatch; 1' or exit 0;
+}
use SVN::Hook::Redispatch {
'' => '',
# Add other dispatch mapping here:
More information about the Bps-public-commit
mailing list