On Jun 13, 2007, at 14:22, Josh Blair wrote:
> I am just learning SVN and am testing the usage of hook scripts.
> I'm trying to get the pre-revprop-change.tmpl script working. I
> just renamed the pre-revprop-change.tmpl to pre-revprop-change.pl
> and tried running the svn command below on a sample repository.
>
> C:\work\sesame>svn propedit --revprop -r 39 svn:log svn://svn/repos/
> sesame/trunk/Numbers.txt
> svn: Authorization failed
>
> I get the Authorization failed error message. I'm not a PERL guy
> so one of my questions is: is that template adequate or do I need
> to adjust it in some way to get it working?
Two problems.
1. pre-revprop-change.tmpl is a bash script, not a perl script. Bash
exists on Unix-like operating systems but not on Windows (unless you
install cygwin) so you will have to write a script in a different
language. Perl would probably work fine, except
2. Subversion does not look for or execute a file called pre-revprop-
change.pl. It looks for a file with any of the following names:
pre-revprop-change.exe
pre-revprop-change.bat
pre-revprop-change.cmd
pre-revprop-change.vbs
pre-revprop-change.wsf
Possibly other extensions, but I don't think .pl is among them. So,
if you want to write your script in perl, then you have to write a
minimal batch file (or .exe file or whatever) that calls the perl
script with the appropriate arguments and reads back and propagates
the status code. I'm not a Windows programmer though so I can't show
you how to do that.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 13 21:40:17 2007