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

RE: @REV vs -r REV

From: Giulio T <giulio.troccoli_at_uk.linedata.com>
Date: Wed, 22 Apr 2009 11:19:24 +0100

> Greetings, Giulio T!
>
> >> >> []$svn cat -r HEAD http://svn.darkdragon/repos/trunk/file1@22
> >> >> svn: Unable to find repository location for
> >> >> 'http://svn.darkdragon/repos/trunk/file1' in revision 25
>
> >> >> []$svn cat -r 23 http://svn.darkdragon/repos/trunk/file1@22
> >> >> svn: Unable to find repository location for
> >> >> 'http://svn.darkdragon/repos/trunk/file1' in revision 23
> >> >>
>
> > To me it seems obvious that svn can't find the file. You're
> asking for
> > a revision (with the -r option) that is past the peg revision
> > (specified by the @). It's like saying, what did you look like when
> > you were 20 if you consider yourself 15 now?
>
> Comparing SVN to yourself is not going to help well, unless
> you've been resurrected already :)
>
> > Or maybe I got the idea of operation and peg revisions
> completely wrong.
>
> If you take a closer look at the script attached to my
> previous post, you'll see that file1_at_1 and file1_at_2 is a two
> different files.
> Completely different.
>
> If you want translation of my construction to "normal
> english", it would read
> svn cat "Show me
> -r HEAD current content
> file://repos/file1_at_1 of the file that originating
> from /file1 in revision 1

I think this is where you get it wrong. I think a better "translation" would be

svn cat -> show me
-r HEAD -> current content
file//repos/file_at_1 -> of the file as it WAS in revision 1

But there isn't a "current content" (i.e. revision 25) in revision 1. It doesn't make sens. Well not to me at least.

It looks like the problem is becuase file1 in revision 22 is not the same as in HEAD (because of the delete and copy). If you look at the Subversion Book there is an explenation of the peg revision algorithm that explains very well why that command failed (I have the book for svn 1.4)

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1858250

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-22 12:20:22 CEST

This is an archived mail posted to the Subversion Users mailing list.