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

Re: svn cat broken by folder rename in repository

From: Jim Correia <jim.correia_at_pobox.com>
Date: 2004-08-27 17:34:21 CEST

On Aug 27, 2004, at 11:23 AM, Ben Collins-Sussman wrote:

> On Fri, 2004-08-27 at 05:35, Ulrich Eckhardt wrote:
>> Simon Large wrote:
>>> If I rename a folder in the repository, svn cat seems unable to
>>> traverse
>>> the rename to get old revisions. This shows up in TortoiseSVN (where
>>> I
>>> originally reported the problem) when I try to do a visual diff, for
>>> which
>>> TSVN needs access to both revisions.
>>
>> If you rename from 'Foo' to 'Bar' at revision X, revisions < X don't
>> contain a
>> 'Bar', which is why you can't 'svn cat' it.
>
> Actually, this is one of the new features in svn 1.1. If you run 'svn
> cat -r X-1 Bar', then the client should be able to trace the rename,
> and
> discover the older name (Foo) in revision X, and cat that instead. It
> certainly works in the commandline client.

I can reproduce the problem with the command line client when using
URLs and files (I think this was previously mentioned in the thread.)
I'm not sure if following a file by URL after a rename is intended to
work?

For example:

touch foobar
svn add foobar
svn ci -m ""

svn mv foobar foobar2
svn ci =m ""

svn cat foobar2 - works as expected
svn cat -r 15 foobar2 - works as expected

svn cat [REPOS_URL]/trunk/foobar2 - works
svn cat -r 15 [REPOS_URL]/trunk/foobar2

svn: File not found: revision 15, path '/trunk/foobar2'

(In revision 15, the file was named "foobar")

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 27 17:34:41 2004

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.