subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Sperling <s...@elego.de>
Subject Re: Help needed with a unique type of branch creation
Date Wed, 04 Mar 2020 09:10:06 GMT
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

Mime
View raw message