Andreas Schweigstill píše v Pá 13. 04. 2007 v 13:01 +0200:
> Hello Jan!
>
> Jan Holec schrieb:
> >> There is no problem here. Check out the HEAD of the trunk (meaning:
> >> check out the trunk without the -r argument),
> > That's exactly what I intended to do, see above.
> > I expected svn to check out revision 131 - and from what I can tell
> > after inspecting the sources, it does - but then WHY is it telling me
> > it has checked out revision 146 ?!
>
> RTFM!
>
> It seems that you don't understand the concept of a global revision
> number.
That Subversion's revision numbers apply to entire trees and not
individual files,
and that a particular file may have not been changed between revisions.
Yes, but I think this is not the case...
> Nobody says that there has to be changed anything between
> R131 and R146.
>
...because those revisions are definitely not the same.
Compared R146 to R131, some files have been modified,
some have been added.
Just one example:
svn co file:///repository/xyz/trunk r131 -r131
svn co file:///repository/xyz/branches/3.02 r146 -r146
$ svn info r131/lib/lang.conf.core.php
Path: r131/lib/lang.conf.core.php
Name: lang.conf.core.php
URL: file:///repository/xyz/trunk/lib/lang.conf.core.php
Repository Root: file:///repository/xyz
Repository UUID: bd95e6c5-aa3e-aa4e-ad13-8e5ac59baacd
Revision: 131
Node Kind: file
Schedule: normal
Last Changed Author: JSo
Last Changed Rev: 120
Last Changed Date: 2007-04-02 13:49:15 +0200 (Po, 02 dub 2007)
Text Last Updated: 2007-04-13 13:42:12 +0200 (Pá, 13 dub 2007)
Checksum: d343a29fcc93574bed4f44d5f7fead7a
$ svn info r146/lib/lang.conf.core.php
Path: r146/lib/lang.conf.core.php
Name: lang.conf.core.php
URL: file:///repository/xyz/branches/3.02/lib/lang.conf.core.php
Repository Root: file:///repository/xyz
Repository UUID: bd95e6c5-aa3e-aa4e-ad13-8e5ac59baacd
Revision: 146
Node Kind: file
Schedule: normal
Last Changed Author: JSo
Last Changed Rev: 143
Last Changed Date: 2007-04-12 12:58:19 +0200 (Čt, 12 dub 2007)
Text Last Updated: 2007-04-13 13:42:54 +0200 (Pá, 13 dub 2007)
Checksum: a69975e2665e2809888bc6857723c93e
> Why don't you just look at the "Last Changed Rev:" field of "svn info"?
> Here is a real-life example from one of my projects which shows the
> difference:
>
> $ svn info .
> Path: .
> URL: svn://simpson/xxxxx/yyyy
> Repository Root: svn://simpson/yyyy
> Repository UUID: d467969e-7bf4-0310-9604-f1a2207742dd
> Revision: 1457
> Node Kind: directory
> Schedule: normal
> Last Changed Author: aschweig
> Last Changed Rev: 301
> Last Changed Date: 2005-12-05 17:02:02 +0100 (Mon, 05 Dec 2005)
>
> The information from "svn info" will only be accurate if the working
> copy contains a pure single revision. This can be checked with the
> "svnversion" command.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 13 14:21:31 2007