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

Reply via email to