[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: Mojca Miklavec <mojca.miklavec.lists_at_gmail.com>
Date: Wed, 21 Dec 2011 20:47:32 +0100

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
Received on 2011-12-21 20:48:04 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.