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

Re: How to ignore a versioned subdirectory within the whole tree during svn update?

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 26 Apr 2012 20:41:55 +0200

On Thu, Apr 26, 2012 at 11:15:12AM -0700, frame wrote:
> Hi,
>
> Our team's whole repository tree is like:
>
> build.xml
> 1.txt
> 2.txt
> dir_a/
> dir_big_and_un_related_to_me/
> ..
> dir_h/
>
> The dir_big_and_un_related_to_me/ is very, very big and it is not relevant
> to my own work. Every time, when I run "svn update" at the top, I hope that
> directory is ignored. But I don't know how to do it. I am wondering if svn
> has a feature for this purpose.

Use the 'sparse checkout' feature.

svn update --set-depth exclude dir_big_and_un_related_to_me

> The whole tree has been checked out to my local area.

When getting a fresh checkout you might want to something like this:

svn checkout --depth empty URL
svn ls (view items that could be here)
for each item of interest:
  svn checkout --set-depth infinity item_of_interest

For more information, see:
http://svnbook.red-bean.com/en/1.7/svn.advanced.sparsedirs.html
Received on 2012-04-26 20:42:30 CEST

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