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

SVN.EXE cannot checkout old revision after server side copy

From: Tarkan Taralp <tarkan.taralp_at_bte.mam.gov.tr>
Date: 2007-10-08 15:26:31 CEST

I am running SVN version 1.4.4 on WIN32. The svn -r nnnn checkout
command failed for some paths where nnnn < HEAD. I thought that the
large size of the repository (over 30GB!) was the cause of the problem
but as the following BAT script output LOG shows it has nothing to do
with size. It seems to have something to do with creating a branch using
svn copy. The script and the output of the script is as follows.

I will try to also reproduce the problem on a linux platform in the near
future.

OLDREVPROB.LOG

> C:\>RMDIR /S/Q C:\REPO C:\WORKDIR C:\TRUNKWC C:\TRUNK1WC 2>NUL
>
> C:\>SVN --version
> svn, version 1.4.4 (r25188)
> compiled Jun 8 2007, 18:49:42
>
> Copyright (C) 2000-2006 CollabNet.
> Subversion is open source software, see http://subversion.tigris.org/
> This product includes software developed by CollabNet (http://www.Collab.Net/).
>
> The following repository access (RA) modules are available:
>
> * ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
> - handles 'http' scheme
> - handles 'https' scheme
> * ra_svn : Module for accessing a repository using the svn network protocol.
> - handles 'svn' scheme
> * ra_local : Module for accessing a repository on local disk.
> - handles 'file' scheme
>
>
> C:\>SVNADMIN create C:\REPO
>
> C:\>SVN checkout file://localhost/C:/REPO C:\WORKDIR
> Checked out revision 0.
>
> C:\>MKDIR C:\WORKDIR\trunk
>
> C:\>MKDIR C:\WORKDIR\tags
>
> C:\>MKDIR C:\WORKDIR\branches
>
> C:\>SVN add C:\WORKDIR\trunk
> A C:\WORKDIR\trunk
>
> C:\>SVN add C:\WORKDIR\tags
> A C:\WORKDIR\tags
>
> C:\>SVN add C:\WORKDIR\branches
> A C:\WORKDIR\branches
>
> C:\>SVN commit -m "Added main directories" C:\WORKDIR
> Adding WORKDIR\branches
> Adding WORKDIR\tags
> Adding WORKDIR\trunk
>
> Committed revision 1.
>
> C:\>MKDIR C:\WORKDIR\branches\branch1
>
> C:\>SVN add C:\WORKDIR\branches\branch1
> A C:\WORKDIR\branches\branch1
>
> C:\>ECHO BLAHBLAH 1>C:\WORKDIR\branches\branch1\file.1
>
> C:\>SVN add C:\WORKDIR\branches\branch1\file.1
> A C:\WORKDIR\branches\branch1\file.1
>
> C:\>ECHO BLAHBLAH 1>C:\WORKDIR\branches\branch1\file.2
>
> C:\>SVN add C:\WORKDIR\branches\branch1\file.2
> A C:\WORKDIR\branches\branch1\file.2
>
> C:\>SVN commit -m "Added directory under branches and some files" C:\WORKDIR
> Adding WORKDIR\branches\branch1
> Adding WORKDIR\branches\branch1\file.1
> Adding WORKDIR\branches\branch1\file.2
> Transmitting file data ..
> Committed revision 2.
>
> C:\>SVN copy -m "COPY BRANCH" file://localhost/C:/REPO/branches/branch1 file://localhost/C:/REPO/trunk/trunk1
>
> Committed revision 3.
>
> C:\>ECHO BLAHBLAH 1>C:\WORKDIR\branches\branch1\file.3
>
> C:\>SVN add C:\WORKDIR\branches\branch1\file.3
> A C:\WORKDIR\branches\branch1\file.3
>
> C:\>SVN commit -m "Did some meaningless commits" C:\WORKDIR
> Adding WORKDIR\branches\branch1\file.3
> Transmitting file data .
> Committed revision 4.
>
> C:\>SVN update C:\WORKDIR
> A C:\WORKDIR\trunk\trunk1
> A C:\WORKDIR\trunk\trunk1\file.2
> A C:\WORKDIR\trunk\trunk1\file.1
> Updated to revision 4.
>
> C:\>SVN remove C:\WORKDIR\trunk\trunk1
> D C:\WORKDIR\trunk\trunk1\file.2
> D C:\WORKDIR\trunk\trunk1\file.1
> D C:\WORKDIR\trunk\trunk1
>
> C:\>SVN commit -m "Deleted the branch I created with COPY" C:\WORKDIR
> Deleting WORKDIR\trunk\trunk1
>
> Committed revision 5.
>
> C:\>ECHO BLAHBLAH 1>C:\WORKDIR\branches\branch1\file.4
>
> C:\>SVN add C:\WORKDIR\branches\branch1\file.4
> A C:\WORKDIR\branches\branch1\file.4
>
> C:\>SVN commit -m "Did some meaningless commits" C:\WORKDIR
> Adding WORKDIR\branches\branch1\file.4
> Transmitting file data .
> Committed revision 6.
>
> C:\>SVN -r 4 checkout file://localhost/C:/REPO/trunk C:\TRUNKWC
> A C:\TRUNKWC\trunk1
> A C:\TRUNKWC\trunk1\file.2
> A C:\TRUNKWC\trunk1\file.1
> Checked out revision 4.
>
> C:\>SVN -r 4 checkout file://localhost/C:/REPO/trunk/trunk1 C:\TRUNK1WC
> svn: File not found: revision 6, path '/trunk/trunk1'

OLDREVPROB.BAT

> RMDIR /S/Q C:\REPO C:\WORKDIR C:\TRUNKWC C:\TRUNK1WC 2>NUL
>
> SVN --version
>
> SVNADMIN create C:\REPO
>
> SVN checkout file://localhost/C:/REPO C:\WORKDIR
> MKDIR C:\WORKDIR\trunk
> MKDIR C:\WORKDIR\tags
> MKDIR C:\WORKDIR\branches
> SVN add C:\WORKDIR\trunk
> SVN add C:\WORKDIR\tags
> SVN add C:\WORKDIR\branches
> SVN commit -m "Added main directories" C:\WORKDIR
>
> MKDIR C:\WORKDIR\branches\branch1
> SVN add C:\WORKDIR\branches\branch1
> ECHO BLAHBLAH > C:\WORKDIR\branches\branch1\file.1
> SVN add C:\WORKDIR\branches\branch1\file.1
> ECHO BLAHBLAH > C:\WORKDIR\branches\branch1\file.2
> SVN add C:\WORKDIR\branches\branch1\file.2
> SVN commit -m "Added directory under branches and some files" C:\WORKDIR
>
> SVN copy -m "COPY BRANCH" file://localhost/C:/REPO/branches/branch1 file://localhost/C:/REPO/trunk/trunk1
>
> ECHO BLAHBLAH > C:\WORKDIR\branches\branch1\file.3
> SVN add C:\WORKDIR\branches\branch1\file.3
> SVN commit -m "Did some meaningless commits" C:\WORKDIR
> SVN update C:\WORKDIR
>
> SVN remove C:\WORKDIR\trunk\trunk1
> SVN commit -m "Deleted the branch I created with COPY" C:\WORKDIR
>
> ECHO BLAHBLAH > C:\WORKDIR\branches\branch1\file.4
> SVN add C:\WORKDIR\branches\branch1\file.4
> SVN commit -m "Did some meaningless commits" C:\WORKDIR
>
> SVN -r 4 checkout file://localhost/C:/REPO/trunk C:\TRUNKWC
>
> SVN -r 4 checkout file://localhost/C:/REPO/trunk/trunk1 C:\TRUNK1WC

-- 
| Tarkan Taralp
| TÜBİTAK MAM BTE, PK. 21, Anibal Caddesi, Gebze, Kocaeli 41470
| Elm: tarkan.taralp@bte.mam.gov.tr
| Tel: 90 262 6772606  Faks: 90 262 6463187
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 8 15:39:41 2007

This is an archived mail posted to the Subversion Users mailing list.