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

Re: Partial update possible?

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Thu, 5 Feb 2009 05:06:31 -0600

On Feb 5, 2009, at 04:05, Engebakken Geir wrote:

> Ryan Schmidt wrote:
>
>> On Feb 4, 2009, at 08:25, Geir Engebakken wrote:
>>
>>> I have a situation where I regularly want to update my WC of a
>>> project, but there are some Java packages that I dont want to
>>> have in
>>> my WC, so after I run svn update I need to physically remove the
>>> directories to get the product to compile. Is there any
>>> possibility in
>>> Svn to configure that some of the directories should be ignored when
>>> updating?
>>
>> If you want those directories to be empty, then you can "svn switch"
>> those directories to an empty directory you create in your
>> repository for just this purpose.
>>
>> svn mkdir $REPO/empty -m "making empty directory"
>> cd your-working-copy
>> svn switch some-dir $REPO/empty
>
>
> The problem with this solution is that this is a open souurce
> repository that i dont have commit access to. The source is a
> conversion program that converts from several SCM systems and some
> of them are irrelevant to us, and generates compile errors because
> we dont have the libs nescessary to compile. Removing these
> directories makes it all work, but we need to do that after everey
> update of the source.

You could use sparse directories to do a partial checkout of their
repository.

http://svnbook.red-bean.com/en/1.5/svn.advanced.sparsedirs.html

This requires Subversion 1.5 or greater. For earlier Subversion,
there was the -N (non-recursive) checkout option which works
differently and less well.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1106958

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-05 12:07:31 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.