tortoisesvn - SVN: Sparse update to create only trunks -


i have looked around @ several solutions checking out svn trunks. following redbook have traditional svn set up, i.e.

/ |-- /branches |-- /tags `-- /trunk     |-- foo     `-- bar 

the thing have 100's of projects, maven modules. each project follows structure above.

i go root of our repo , check every project out such have structure similar to:

a/  `-- /trunk     |-- foo     `-- bar b/  `-- /trunk     |-- foo     `-- bar c/  `-- /trunk     |-- foo     `-- bar ... etc... 

i have achieved using tortoisesvn , using option update revision -> choose items , deselecting tags , branches.

this gives following style of output:

sparse update tags, depth 'exclude' c:\svnrepo\a\tags sparse update branches, depth 'exclude' c:\svnrepo\a\branches sparse update trunk, depth 'fully recursive' c:\svnrepo\a\trunk 

what not have click through these tags , branches checkboxes. tortoisesvn have way achieve this? have script can run on windows , run appropriate command line(s) exclude every tag , branch every project? have looked here not make sense:

http://svnbook.red-bean.com/en/1.5/svn.advanced.sparsedirs.html

okay, not having pc, windows bath script this:

svn co --depth=immediates %repo% projects cd projects /d %%d in (*) svn --set-depth=infinity %%d/trunk 

i don't have exact setup, can't whether work, or you'll have cd %%d first, svn --set-depth=infinity trunk , cd .. next project. however, give idea how combine windows batch scripting svn command line client things can't through gui client.

of course, question why want check out out each , every project (100s of them) unless you're working on hundreds of projects. take really, long time process. time particular project work, it'll out of date anyway.

you might better using sparse checkouts checkout each project (and maybe trunk) , when need work on project, `svn --set-depth=infinity on project's trunk directory. maybe might work better:

svn co --depth=immediates %repo% projects cd projects /d %%d in (*) svn --set-depth=empty %%d/trunk 

then, can svn update --set-depth=infinity when work on project.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -