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

Re: Repository reorg question

From: Wesley J. Landaker <wjl_at_icecavern.net>
Date: 2006-10-24 18:24:55 CEST

On Tuesday, 24 October 2006 09:45, THURMAN, LORENZO, SECR wrote:
> When our svn repository was setup, the admin did not use the recommended
> structure of trunk, tags and branches, but instead he just placed the
> code in the repository. Now we need to create branches and tags, so I'd
> like to redo the repository. What is the safest way to go about this?

One way that has the advantage of not loosing history would just be to make a
trunk directory at the top and move all the existing files and directories
into it, e.g. something like:

$ svn co <repos_url> top
$ cd top
$ svn mkdir trunk
$ for i in *; do svn mv "$i" trunk; done
$ svn mkdir tags branches
$ svn commit -m "Changing repos to trunk/tags/branches style"

There might be a more clever way to do this, but this is simple and easy.

-- 
Wesley J. Landaker <wjl@icecavern.net>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 24 18:26:18 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.