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

Re: Exclude a directory from a copy.

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Thu, 23 Jun 2011 11:48:46 +0400

2011/6/23 Gavin Baumanis <gavinb_at_thespidernet.com>:
> Hi there everyone,
>
> I am just wondering if there is a short-hand way of excluding a directory from a copy?
>
> I am wanting to create a branch from the trunk - but omit a specific directory from the copy as it contains about 1GB of binary data that are not required for the work that will be occurring in the branch.
>
> I can manually do it, by doing a WC->WC copy and then simply deleting the sub-directory that I don't need, prior to committing the branch.
> But I thought I would ask if there was a smarter and more efficient way to do it first.

Copying 1 GB takes time...

You can
1) create URL -> URL copy,
then do "svn delete URL" as a separate commit
2) do not delete the unneeded subdirectory, but either do "svn switch"
(should preserve unmodified data in place), or a sparse checkout

I think that both action in 1) should be possible to do in one commit
using svnmucc program - but I have never used it.

Best regards,
Konstantin Kolinko
Received on 2011-06-23 09:49:29 CEST

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