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

RE: Chkeckout only a portion of a repoistory

From: Bert Huijben <bert_at_qqmail.nl>
Date: Wed, 11 May 2011 03:38:00 +0200

> -----Original Message-----
> From: Gavin "Beau" Baumanis [mailto:gavin.baumanis_at_palcare.com.au]
> Sent: woensdag 11 mei 2011 3:22
> To: Subversion Users
> Subject: Chkeckout only a portion of a repoistory
>
> Hi there,
>
> We have a web application that uses Jenkins CI for keeping our staging
server
> up to date via svn update.
>
> Due to not thinking abut it properly in the beginning,
> The staging site is actually a working copy of the entire repo (branches
and
> tags included)
>
> We however, only require the trunk.
>
> Is there a way, so that I can remove the branches and tags from a working
> copy, leaving the trunk in place AND
> not have any subsequent updates replace the now missing directories and
> still have a clean WC?

If you call
svn up --set-depth exclude PATH

on your tags and branches folder, they should be completely removed from
your working copy, leaving a marker that they shouldn't be updated. (You can
bring them back by --set-depth infinity on a parent or an explicit update of
PATH itself).

This option is available for directories since Subversion 1.6. (In 1.7 you
can also use it to exclude a specific file)

        Bert
Received on 2011-05-11 03:38:32 CEST

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.