[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: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Tue, 21 Apr 2009 03:26:29 +0400

Greetings, Victoria Muntean!

> I discovered that @REV and -r REV, when used in 'svn cat', produce
> different results.
> I admit I thought that @REV is synonym of '-r REV' were the same
> thing, just different syntax.

Not always synonym. In most basic operations it is, but imagine situation

Rev 1: add file1
Rev 2: remove file1, add file1
Rev 3: remove file1, copy file1_at_1
Rev 4: rename file1 file2, copy file1_at_2 file1

A bit messy operations, you see.
We have two files in @HEAD, and if you trace them back in time, you'll see
that:

file1, despite being in repository at every point, in fact originating
from @2, was killed in @3 and resurrected in @4.

The file2 was first known as file1_at_1, killed in @2, resurrected in @3, again
killed in @4 but before the kill it was copied as file2.

> What is the explanation of their differences ?
> Do they behave differently in other svn commands, or only in 'svn cat' ?

The @PEG syntax is, basically, points to the object ancestry. It's that
dimension, which differentiate SVN filesystem from regular filesystem.

However, I just found an issue...

[]$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

I know it's there...

I've copied it myself... by my own hands.

[]$svn cat -r 24 http://svn.darkdragon/repos/trunk/file1@22
sdkjsgkjahj

[]$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

[]$svn cat -r 22 http://svn.darkdragon/repos/trunk/file1@22 (initial import)
sdkjsgkjahj

And

[]$svn cat -r 22 http://svn.darkdragon/repos/trunk/file2@25
sdkjsgkjahj

Why SVN can't see it in @25? And how can I discover, what's happened to it?

--
WBR,
 Andrey Repin (anrdaemon_at_freemail.ru) 21.04.2009, <2:25>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1832317
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-21 01:31:08 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.