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

Re: unable edit existing log message

From: Charan <charan314_at_gmail.com>
Date: Mon, 1 Mar 2010 13:33:52 -0800

Thanks to all. It worked without .sh

On Mon, Mar 1, 2010 at 12:58 PM, C. Michael Pilato <cmpilato_at_collab.net>wrote:

> Subversion is going to try to execute the script as "pre-revprop-change".
> Unlike on Windows where file extensions carry such valuable information as
> "This can be executed" (.EXE, .COM) and "What kind of program or script is
> this" (.BAT versus .EXE), to a Unix-y shell interpreter file extensions
> mean
> nothing. So it's safe (required, even, in Subversion's eyes) to name your
> script "pre-revprop-change" -- with no extension -- and include a hint to
> the shell interpreter as to which program to use to parse that sucker in
> the
> shebang line (the first line of the script):
>
> #!/bin/sh
> # Here's my pre-revprop-change hook script blah blah
> # blah...
> ...
>
> Charan wrote:
> > I renamed .tmpl to.sh and also checked the execute permissions but still
> > I get the same error.
> >
> > Thanks
> >
> > On Mon, Mar 1, 2010 at 12:20 PM, Tyler Roscoe <tyler_at_cryptio.net
> > <mailto:tyler_at_cryptio.net>> wrote:
> >
> > On Mon, Mar 01, 2010 at 12:15:16PM -0800, Charan wrote:
> > > I have been trying to edit the already existing log message using
> > > TortoiseSVN tool but it is giving me the following error. I can
> > see that the
> > > file pre-revprop-change hook exists in hook scripts folder with
> .tmpl
> > > extension and it is executable.
> >
> > Subversion won't exexcute hooks called *.tmpl. Rename the hook script
> to
> > not have that extension and your Subversion server should start using
> > it.
> >
> > tyler
> >
> >
> >
> >
> > --
> > Thanks,
> > Charan
>
>
> --
> C. Michael Pilato <cmpilato_at_collab.net>
> CollabNet <> www.collab.net <> Distributed Development On Demand
>
>

-- 
Thanks,
Charan
Received on 2010-03-01 22:34:52 CET

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.