On Wed, Dec 21, 2011 at 13:21, Stefan Sperling wrote: > On Wed, Dec 21, 2011 at 06:07:05AM -0600, Ryan Schmidt wrote: >> On Dec 20, 2011, at 06:08, Mojca Miklavec wrote: >> > Is there any way to prevent >> > deleting existing contents within the scope of command line arguments? >> > A workaround is to use something like >> > if [ ! -d "project" ]; then >> > svn co --depth=empty $URL >> > fi >> > but I would be really happy if there was some command like: >> > >> > "please checkout $URL, but no need to fetch any files yet, in >> > particular don't fetch 'branches'; on the other hand please don't >> > delete 'trunk' and 'tags' if already present" >> >> I don't think that exists as a built-in command as such. But probably >> playing with the depth settings you can get what you want. I am not very >> familiar with these settings however so I cannot advise. >> > > svn-viewspec.py might help: > https://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/svn-viewspec.py
Thank you very much for pointing out this script. I think that it will perfectly suit the need. Mojca