[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: Bert Huijben <rhuijben_at_sharpsvn.net>
Date: Mon, 20 Apr 2009 11:23:47 +0200

> -----Original Message-----
> From: Victoria Muntean [mailto:vikimun_at_gmail.com]
> Sent: maandag 20 april 2009 10:48
> To: users_at_subversion.tigris.org
> Subject: @REV vs -r REV
>
> 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.
>
> What is the explanation of their differences ?
> Do they behave differently in other svn commands, or only in 'svn cat' ?

The command
svn cat http://server/url/file@123 -r 64

looks at the url http://server/url/file as it was in revision 123, and then
looks at the history of the specified file to retrieve revision 64 of that
file. (That file could be copied between r64 and r123)

svn cat http://server/url/file -r 64

looks at the url http://server/url/file in the latest revision (HEAD), and
then looks at this file.. and traces the file back to r64.

svn cat http://server/url/file@64
is actually svn cat http://server/url/file@64 -r 64, as the -r command
defaults to the operational revision specified with the @64 syntax.

This behavior is (or at least should be) the same for all commands that
operate on urls. (The @ syntax on local paths is translated to the url of
the path)

        Bert

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-20 11:24:56 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.