[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: how to repeatedly checkout sparse directories in a cron job

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 21 Dec 2011 13:21:23 +0100

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
Received on 2011-12-21 13:22:03 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.