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

Re: Help with Hook Script: Can't lookup file property on the commit transaction

From: David Weintraub <qazwart_at_gmail.com>
Date: 2005-06-16 17:22:39 CEST

Another wasted day!

There was no problem with my hook script after all, or Subversion.

The problem laid with my control-file. The lines that were causing me
problems were:

prop: ^trunk/weintraub/hooks: snv:eol-style = "^LF$"
prop: ^trunk/weintraub/hooks: snv:keywords = "Id"

Of course, "snv:eol-style" should read "svn:eol-style" and
"snv:keywords" should be "svn:keywords". Yes, I had the "v" and "n"
mixed up in the control file, and that was causing the whole problem.

Six hours of debugging this stuff just to find out that there were no
errors. No wonder I gave up programming for SCM work.

On 6/16/05, David Weintraub <qazwart@gmail.com> wrote:
> On 6/16/05, Peter N. Lundblad <peter@famlundblad.se> wrote:
> > I tested this [getting the property via transaction number] and it
> > worked using FSFS. Does svnlook say anything on stderr?
>
> I modified my hook to place a debug statement to print out the value
> of "$cmd" right after line 557 in my hook script. I also removed the
> "2> /dev/null" to allow the STDERR to print out. I then modified line
> 558 to save the output of the SVNLOOK command before I compared it to
> "$propValue" and added another debug statement to print out the value.
>
> The "svnlook propget" command was the correct format, but it returned
> nothing, and STDERR printed out that the property on that particular
> file was not set.
>
> I am also using FSFS. What type of test did you run? When I run my
> script with a repository revision number instead of a transaction
> number, it looks like it works, but it doesn't seem to work in the
> middle of a transaction.
>
> --
> David Weintraub
> qazwart@gmail.com
>

-- 
--
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 16 17:25:17 2005

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