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

Re: Help needed with a unique type of branch creation

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 4 Mar 2020 10:10:06 +0100

On Wed, Mar 04, 2020 at 04:45:45AM +0000, Mun Johl wrote:
> Hi all,
>
> Off of trunk in our repo are various directories. I am trying to branch a specific revision of two of the directories and am not being successful ... the branch is always off of the HEAD revision. Here's one attempt:
>
> $ svn mkdir ^/branches/temp
> $ svn copy -r 10000 svn://domain.com/trunk/dir-x svn://domain.com/branches/temp
> $ svn copy -r 10000 svn://domain.com/trunk/dir-y svn://domain.com/branches/temp

> I'd rather not branch the entire trunk due to it's size and mostly unneeded files.

What you are trying to do may look like a benefit in the short term. But once
you run sync merges from trunk, or merge your changes back to trunk, it will
work a lot better if SVN sees your branch as a full copy of trunk.

So I would recommend to always branch the entire trunk.

On the server this does not use any additional space.

On the client you can make your working copy "shallow" (also called "sparse")
to avoid the space issues and unneeded files.
See http://svnbook.red-bean.com/nightly/en/svn.advanced.sparsedirs.html

Regards,
Stefan
Received on 2020-03-04 10:10:28 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.