[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Authorization failed: attempting svn propedit --revprop

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-06-13 21:39:00 CEST

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:


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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.