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

Re: "svnlook pl --revprop" does not work on transactions?

From: Ryan Schmidt <subversion-2010a_at_ryandesign.com>
Date: Mon, 1 Mar 2010 12:17:42 -0600

On Mar 1, 2010, at 11:53, C. Michael Pilato wrote:
> Ryan Schmidt wrote:
>> So you're saying "svnlook pl --revprop -t" is not meant to work? If that's correct, how are we meant to know this from the output of "svnlook help pl" (which I'll show again) which clearly states that "--revprop" may be used with either "-r" or "-t"?
>
> No, I'm saying that 'svnlook pl --revprop -t TXN_NAME' is expected to work
> only if TXN_NAME is the name of an uncommitted transaction.

Well naturally. :)

> Did I miss something in the original problem description? Is that precisely
> what is being attempted here and yet it's not working?

That is my understanding:

On Fri, 2010-02-26 at 22:15 -0800, Alexey Neyman wrote:
> It seems that I encountered a bug in 'svnlook pl --revprop': it fails with
> the following message:
>
> $ svnlook pl --revprop -t 10547-86b /svn/test-svn
> svnlook: Invalid revision number '-1'

I can replicate this error message with svn 1.6.9 on Mac OS X. "svnlook pl -t" works fine, but "svnlook pl --revprop -t" complains that revision number '-1' is invalid, though I specified a correct in-progress transaction number.

This pre-commit hook demonstrates the problem:

#!/bin/sh

REPO="$1"
TXN="$2"

SVNLOOK=/opt/local/bin/svnlook

$SVNLOOK pl --revprop -t "$TXN" "$REPO" 1>&2

exit 1
Received on 2010-03-01 19:18:24 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.