I'm running SVN on a Windows server, and I'm using Perl scripts to implement some pre-commit hooks. I'm seeing the following error message from TortoiseSVN:
Error !!ScriptError!! Can't parse line: _U path/to/files/trunk
and this is the script:
foreach my $line (`$svnlook changed -t "$txn" "$repos"`)
{
chomp($line);
if ($line !~ /([AUD]).\s\s(.+)$/)
{
print STDERR "!!Script Error!! Can't parse line: $line\n";
exit(1);
}
else
{
# perform some actions
}
}
exit(0);
I tried replacing the regex with things like /_([AUD]).\s\s(.+)$/
with no sucess - I even tried /.*([AUD]).\s\s(.+)$/
.
Thoughts? Suggestions?