Hello, I apologize for delay with the answer - we had mailing list issues and it looked like replies were sent while they were not :(
With doCheckout/doUpdate methods you will need multiple calls to check out a working copy. 1. check out ../crmi_22_0/DEV with SVNDepth.EMPTY from the corresponding URL. 2. update ../crmi_22_0/DEV/Sources/ with SVNDepth.EMPTY 3. update ../crmi_22_0/DEV/Sources/BPEL with SVNDepth.EMPTY 4. update ../crmi_22_0/DEV/Sources/BPEL/Services with SVNDepth.FILES 5. update ../crmi_22_0/DEV/Sources/BPEL/Services/Service_A with SVNDepth.INFINITY 6. update ../crmi_22_0/DEV/Sources/BPEL/Processes with SVNDepth.EMPTY and 7. update ../crmi_22_0/DEV/Sources/BPEL/Processes/Process_Z with SVNDepth.INFINITY 8. update ../crmi_22_0/DEV/Install with SVNDepth.INFINITY When updating with "doUpdate(...)" call pass 'true' for 'depthIsSticky' parameter. When all these updates are done you may use the working copy and update it from the root passing SVNDepth.UNKNOWN and 'false' for 'depthIsSticky' parameter. Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! http://hg4j.com/ - Java Mercurial Library! http://sqljet.com/ - Java SQLite Library! On 2 September 2011 07:50, Peter van Nes <[email protected]> wrote: > 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 ) ; > >
