[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: Daniel Gehriger <daniel.gehriger_at_linkcad.com>
Date: 2006-10-09 14:50:32 CEST

Duncan Murdoch wrote:
> 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.

If I understand correctly, this means that, given the following repos:

r1: import of file-1.h, file-2.h
r2: rename "file-1.h" into "file-1a.h" => file-1a.h, file-2.h
r3: rename "file-2.h" into "file-1.h" => file-1a.h, file-1.h

then

[1] svn cat .../file-1.h --revision 1

returns file-2.h of rev 1 because the filename identifies "file-1.h of
the HEAD revision, and subversion returns rev 1 of that file, which was
named "file-2.h" in rev 1;

and

[2] svn cat .../file-1.h@1

return "file-1.h" of rev 1;

and finally:

[2] svn cat .../file-1.h@1 --revision 3

returns "file-1a.h" of rev 3.

Correct ?

- Daniel

---------------------------------------------------------------------
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:51:24 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.