Update to Revision >> Choose items? How to do this by script?

7 views
Skip to first unread message

John King

unread,
May 28, 2025, 12:49:49 AMMay 28
to TortoiseSVN
Hello,

I'd like to be able to exclude certain subfolders when I do checkouts.  Normally I do this by >> Chose items... >> & uncheck the subfolder or file I don't want on my computer.

Anyone know how to do this by script?  Batch?  Python?


Regards...

Daniel Sahlberg

unread,
May 28, 2025, 2:26:10 AMMay 28
to TortoiseSVN
This question probably fit better within the us...@subversion.apache.org list since it concerns the command line tools (you can select to include them when you install TortoiseSVN). But I'll give you a pointer where to start looking.

The svn checkout command supports --depth and --set-depth arguments that will allow  you to fine tune exactly what is checked out. See the examples toward the end of the Sparse Directories chapter of the SVN Book: https://svnbook.red-bean.com/en/1.7/svn.advanced.sparsedirs.html

Hope this helps!

Kind regards,
Daniel

Reply all
Reply to author
Forward
0 new messages