[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 23 Jun 2011 15:48:06 +0300

Konstantin Kolinko wrote on Thu, Jun 23, 2011 at 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.
>

svnmucc -m logmsg cp HEAD $U/trunk $U/branches/foo rm $U/branches/foo/subdir

But actually I suggest to do it as you suggested, with 'svn rm URL' as
a separate commit, which is then 'merge --record-only'ed to trunk.
(assuming it's a branch intended for reintegration)

> Best regards,
> Konstantin Kolinko
Received on 2011-06-23 14:49:04 CEST

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.