[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: Josh Blair <josh.blair_at_gmail.com>
Date: 2007-06-13 22:00:30 CEST

Ryan,

Thanks for your information. Very helpful. I will try writing a script of
my own and see how it goes.

Thanks again,

-- 
Josh Blair
Golden, CO
On 6/13/07, Ryan Schmidt <subversion-2007b@ryandesign.com> wrote:
>
> 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.
>
>
>
Received on Wed Jun 13 22:00:52 2007

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