> -----Original Message-----
> From: Stefan Sperling [mailto:stsp_at_elego.de]
> Sent: donderdag 26 april 2012 20:42
> To: frame
> Cc: users_at_subversion.apache.org
> Subject: Re: How to ignore a versioned subdirectory within the whole tree
during
> svn update?
>
> 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
Replace this 'checkout' with 'update', or you get just many separate working
copies. In this case you can also drop the '--set-depth infinity' as that is
the default for new nodes that come in from the repository this way.
Bert
Received on 2012-04-26 23:17:34 CEST