Hi,
I am new to SVNKit and currently examining some possibilities using SVNKit in a
project. Because the branches in SVN are getting extremely large i want to only
checkout certain parts of the repository, i.e. a sparse checkout. When the
structure of the repository for example is like this;
../crmi_22_0/DEV/Documentation
../crmi_22_0/DEV/Install
../crmi_22_0/DEV/Sources
../crmi_22_0/DEV/Sources/BPEL
../crmi_22_0/DEV/Sources/BPEL/Processes
../crmi_22_0/DEV/Sources/BPEL/Processes/Process_A
...
../crmi_22_0/DEV/Sources/BPEL/Processes/Process_Z
../crmi_22_0/DEV/Sources/BPEL/Services
../crmi_22_0/DEV/Sources/BPEL/Services/Service_A
...
../crmi_22_0/DEV/Sources/BPEL/Services/Service_Z
../crmi_22_0/DEV/Sources/Java
I want to check out ../crmi_22_0/DEV/Sources/BPEL/Services with files,
../crmi_22_0/DEV/Sources/BPEL/Services/Service_A full recursive,
../crmi_22_0/DEV/Sources/BPEL/Processes/Process_Z full recursive,
../crmi_22_0/DEV/Install full recursive.
Is it possibile with SVNKit to make a sparse checkout to realize the checkout
above or do i need to do multiple checkouts like the example code below;
svnUrl = SVNURL.parseURIDecoded("svn://" + svnHost + ":" + svnHostPort
+ svnBaseUrl + "code/Branches/crmi_22_0_0_0_0/") ;
revnr = updateClient.doCheckout(svnUrl, destPath, SVNRevision.HEAD,
SVNRevision.HEAD, SVNDepth.IMMEDIATES, true);
System.out.println ("local copy updated to revision " + revnr ) ;
svnUrl = SVNURL.parseURIDecoded("svn://" + svnHost + ":" + svnHostPort
+ svnBaseUrl + "code/Branches/crmi_22_0_0_0_0/BPEL/Services") ;
destPath = new File("/Users/petervannes/Desktop/CRMi/BPEL/Services") ;
revnr = updateClient.doCheckout(svnUrl, destPath, SVNRevision.HEAD,
SVNRevision.HEAD, SVNDepth.FILES, true);
System.out.println ("local copy updated to revision " + revnr ) ;
svnUrl = SVNURL.parseURIDecoded("svn://" + svnHost + ":" + svnHostPort
+ svnBaseUrl + "code/Branches/crmi_22_0_0_0_0/BPEL/Processes") ;
destPath = new File("/Users/petervannes/Desktop/CRMi/BPEL/Processes") ;
revnr = updateClient.doCheckout(svnUrl, destPath, SVNRevision.HEAD,
SVNRevision.HEAD, SVNDepth.FILES, true);
System.out.println ("local copy updated to revision " + revnr ) ;
svnUrl = SVNURL.parseURIDecoded("svn://" + svnHost + ":" + svnHostPort
+ svnBaseUrl + "code/Branches/crmi_22_0_0_0_0/BPEL/Processes/Process_A") ;
destPath = new
File("/Users/petervannes/Desktop/CRMi/BPEL/Processes/Proces_A") ;
revnr = updateClient.doCheckout(svnUrl, destPath, SVNRevision.HEAD,
SVNRevision.HEAD, SVNDepth.INFINITY, true);
System.out.println ("local copy updated to revision " + revnr ) ;