Subject: | Failed test 'cry pre-unlock' on Windows |
Dear Maintainers,
I am trying to install SVN-Hooks-1.12 on Windows XP Pro SP3 with
Subversion server 1.7.3 and ActivePerl 5.8.8 build 822 (replica of
company server environment). Using CPAN (see attached cpan.log file),
the SVN-Hooks tests fail whilst trying to lock a file as a pre-cursor
to triggering the pre-unlock hook.
I think that this is because the Windows version of the hook cmd files
generated by test-functions.pl do not have the echo turned off and
therefore the "svn lock" commands misinterprets the command line echo
as a lock token (which according to the manual, the user is allowed to
provide on STDIN for this command). I've attached a patch file which
changes all the Windows hook cmd files to turn off the echo and then
the tests pass and the module will install (providing SVN-Look has been
patched and installed as per rt.cpan.org #75545 and rt.cpan.org
#75546).
Please could you take a look.
I would really like to take advantage of both SVN-Look and SVN-Hooks on
our company Subversion server.
Kind Regards,
Mike Brimer
Subject: | cpan.log |
Message body not shown because it is not plain text.
Subject: | test-functions.pl.patch |
--- test-functions.pl.orig Sun Feb 26 01:34:52 2012
+++ test-functions.pl Mon Mar 05 12:42:15 2012
@@ -146,6 +146,7 @@
$hookfile .= '.cmd';
open my $fd, '>', $hookfile
or die "Can't create $hookfile: $!";
+ print $fd "\@echo off\n";
print $fd "$^X $hookscript $hook %1 %2 %3 %4 %5\n";
close $fd;
chmod 0755 => $hookfile;