You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Josh Blair <jo...@gmail.com> on 2007/06/13 19:22:33 UTC

Authorization failed: attempting svn propedit --revprop

Hi,

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?

I am running Windows XP, SP2 +  svn 1.4.3, and have Perl from ActiveState:

====================
C:\work\sesame>svn --version
svn, version 1.4.3 (r23084)
   compiled Jan 18 2007, 07:47:40

Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (
http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

====================
C:\work\sesame>perl -V
Summary of my perl5 (revision 5 version 8 subversion 7)...

Thanks,
-- 
Josh Blair
Golden, CO

Re: Authorization failed: attempting svn propedit --revprop

Posted by Josh Blair <jo...@gmail.com>.
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 <su...@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.
>
>
>

Re: Authorization failed: attempting svn propedit --revprop

Posted by Ryan Schmidt <su...@ryandesign.com>.
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