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

Re: Setting Revprops before Revision is Created

From: David Weintraub <qazwart_at_gmail.com>
Date: Thu, 24 Jun 2010 12:52:08 -0400

> David Weintraub wrote on Tue, 22 Jun 2010 at 14:40 -0000:
>> Thanks!
>>
>> That's all I have to know. It is possible to set revprops when doing a
>> commit, so I should have a mechanism to check for those when doing a
>> commit too.

On Tue, Jun 22, 2010 at 10:38 AM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> You're welcome.
>
> (The mechanism ought to be 'svnlook -t' from the pre-commit hook.)

Yes, you can set the revprops on a commit, but apparently you cannot
do a "svnlook -t $TX proplist --revprop $REPO".

I keep getting the error "svnlook: Invalid revision number '-1'".

The funny thing is I'm writing in Perl, and I have a check on my
"open" statement to fail if "svnlook -t$TX proplist -revprop $REPO"
fails during the open.

However, the open statement doesn't fail. Instead, the failure comes
when I first attempt to read from that pipe.

I'll take out the whole revprop check mechanism and just have it for
the "svnlook log". I can check the svn:log for issues.

Maybe the next revision will allow svnlook to check if a revprop is
going to be set on the incoming transaction.

-- 
David Weintraub
qazwart_at_gmail.com
Received on 2010-06-24 18:52:47 CEST

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.