You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kai Blin <ka...@gmail.com> on 2008/10/10 10:25:35 UTC

svn info outout element "Path" differs

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.