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