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

svn info outout element "Path" differs

From: Kai Blin <kai.blin_at_gmail.com>
Date: Fri, 10 Oct 2008 12:25:35 +0200

Hi folks,

I've stumbled over a peculiar behaviour of svn info. On an up-to-date
repository, the output of svn info differs depending on if I run it against
the working copy or the repository.

While I understand the differences for the parts concerning the working copy,
I'm surprised by the differences of the "path". I first noticed this in --xml
mode, but it's the same for the text mode.

See attached recipe to reproduce this. In a nutshell, svn info path/to/file
will print "Path: path/to/file", while svn info -r HEAD path/to/file will
print "Path: file". Works the same for other revisions, provided the file did
exist at the revision you try.

Is this intentional? I just wasted a couple of hours trying to figure out why
my tool parsing the output of svn info was choking on updates. I can't find
any documentation on this, and it's present at least on 1.4.6 and 1.5.1.
Feature? Bug? Accidental feature?

Cheers,
Kai

PS: I'm not subscribed to this list, so CC me, please.

-- 
Kai Blin
WorldForge developer  http://www.worldforge.org/
Wine developer        http://wiki.winehq.org/KaiBlin
Samba team member     http://www.samba.org/samba/team/
--
Will code for cotton.

Received on 2008-10-10 18:30:06 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.