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

Re: Difference between "--revision xyz" and "@xyz" ?

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: 2006-10-09 14:36:00 CEST

On 10/9/2006 5:08 AM, Daniel Gehriger wrote:
> Hi,
>
> What is the difference between
>
> [1] svn cat http://myserver/dev/trunk/test.h@1234
>
> and
>
> [2] svn cat http://myserver/dev/trunk/test.h@1234 --revision 1234
>
> and
>
> [3] http://myserver/dev/trunk/test.h@1234 --revision 1234
>
> ?

The @ identifies the name of a file, the --revision identifies which
revision to look at. There may be multiple unrelated files in your
repository named test.h (e.g. if you delete it, and later add a new one
with the same name). The @ says you want the file that was called
test.h in revision 1234. Then the --revision says you want a particular
revision of that file, not necessarily the same one.

>
> I found that if the file "test.h" has been renamed to "test2.h" in
> revision 1235, only [2] and [3] will work, while [1] returns an error.

That's because test.h@1234 was deleted, and no longer exists in the HEAD
revision, the default revision to look at. svn doesn't understand that
your rename means test2.h is a descendant of test.h, all it sees is the
deletion of test.h, because it currently implements renames as "copy +
delete original".

Duncan Murdoch
>
> Regards,
>
> Daniel
>
> [I'm using SVN 1.4.0 on the client and server]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 9 14:36:50 2006

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.