You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kevin Strickland <ke...@msdc.com> on 2008/04/15 16:14:59 UTC

svn checkout reports incorrect version numbers

I am running svn version 1.4.0 (r21228) on SUSE Linux 10.2 for the 
client and server.
Below is a diagram of my project:

Path                       Version
----------------------------
project/trunk               1
project/trunk               2
project/trunk               3

project/branches/1.0    4
project/branches/1.0    5

project/trunk                6

Check out the trunk and the branch using the following commands.  Both 
report that the checked out version is 6.  When the branch version is 
really version 5.

svn checkout file:///usr/svn/repos/project/trunk dir1
svn checkout file:///usr/svn/repos/project/branches/1.0 dir2

Is this the correct behavior?  This is confusing to users when they 
checkout the branch and see the wrong version reported by the checkout 
command.

Thanks for any help,
Kevin
kevin@msdc.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: svn checkout reports incorrect version numbers

Posted by "Bicking, David (HHoldings, IT)" <Da...@thehartford.com>.
> -----Original Message-----
> From: Kevin Strickland [mailto:kevin@msdc.com] 
> Sent: Tuesday, April 15, 2008 12:15 PM

-- snip --
> Check out the trunk and the branch using the following 
> commands.  Both report that the checked out version is 6.  
> When the branch version is really version 5.

-- snip --
 
> Is this the correct behavior?  This is confusing to users 
> when they checkout the branch and see the wrong version 
> reported by the checkout command.
> 
> Thanks for any help,
> Kevin
> kevin@msdc.com
> 

Yes, it is correct.  The revision is unique for the whole repository.
When listing the repository contents, you may see the most recent
revision number that was created in those paths, but the highest
revision number is the current one, regardless of where you go in the
repository.  The subversion guide explains this nicely
(http://svnbook.red-bean.com/en/1.4/svn.basic.in-action.html#svn.basic.i
n-action.revs).

--
David


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


RE: svn checkout reports incorrect version numbers

Posted by "Reedick, Andrew" <jr...@ATT.COM>.

> -----Original Message-----
> From: Kevin Strickland [mailto:kevin@msdc.com]
> Sent: Tuesday, April 15, 2008 12:15 PM
> To: users@subversion.tigris.org
> Subject: svn checkout reports incorrect version numbers
> 
> I am running svn version 1.4.0 (r21228) on SUSE Linux 10.2 for the
> client and server.
> Below is a diagram of my project:
> 
> Path                       Version
> ----------------------------
> project/trunk               1
> project/trunk               2
> project/trunk               3
> 
> project/branches/1.0    4
> project/branches/1.0    5
> 
> project/trunk                6
> 
> Check out the trunk and the branch using the following commands.  Both
> report that the checked out version is 6.  When the branch version is
> really version 5.
> 
> svn checkout file:///usr/svn/repos/project/trunk dir1
> svn checkout file:///usr/svn/repos/project/branches/1.0 dir2
> 
> Is this the correct behavior?  This is confusing to users when they
> checkout the branch and see the wrong version reported by the checkout
> command.
> 

Correct behavior.  You're probably expecting 'Last Change Rev'.

If you do an 'svn info' on the url or in the workspace for a file or
dir, you'll see:
	Revision: 6  
	Last Changed Rev: 5

Revision is the Repository revision at the time of the check-out.  Last
Changed Rev can be different for every file in the sub-tree that you
checked out (and will be less than or equal to the Repository revision
number.)



*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA625



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org