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

Re: Replacing the Trunk with a Branch

From: Barry Gershenfeld <barry_g_at_zmicro.com>
Date: 2006-06-14 23:38:50 CEST

>All this "structure" in the repo is really just copies. So...
> - copy the trunk to a branch (or tag), assuming you want to remember
> where you ditched it.
> - make a new directory, say, 'new', so now you have trunk, tags,
> branches, and new.
> - svn delete trunk
> - svn rename 'new' to 'trunk'.

Correction! This leaves you with an empty trunk... You want your current
branch to appear as the new trunk, so, instead of creating the directory
'new' , copy the candidate branch to new.

  - svn copy the trunk to a branch (or tag), assuming you want to remember
where you ditched it.
  - svn copy the branch that is the current version, to a new directory,
say, 'new', so now you have trunk, tags, branches, and new.
  - svn delete trunk
  - svn rename 'new' to 'trunk'.

Commit after each step.

Barry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 14 23:41:48 2006

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.