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

Re: Fixing a suboptimal repository setup

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-08-16 01:34:56 CEST

On Aug 15, 2006, at 23:28, Garrett Fitzgerald wrote:

> When I set up my first repository (and second), I didn't follow the
> recommended trunk/tags/branches structure - I just put everything in
> the main directory. What's the best way to fix this? Follow the
> instructions for migrating a repository at
> http://svnbook.red-bean.com/en/1.0/ch05s03.html#svn-ch-5-sect-3.5, but
> do it to the same directory after fixing the structure?

No need to migrate anything. Just take a working copy of the project,
make the trunk, branches and tags directories, move everything else
into trunk, and commit. Forgive my pseudocode for-loop:

svn co $REPO/myProject workingcopy
cd workingcopy
svn mkdir trunk branches tags
for each $ITEM other than (trunk branches tags) begin
        svn mv $ITEM trunk
svn ci -m "Moving entire project into trunk directory"

> After that, I'll want to point TortoiseSVN from myProject to
> myProject/trunk, correct?

Yes, you'll want to have everybody with a working copy do a switch to
the new location:

cd workingcopy
svn switch $REPO/myProject/trunk

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 16 01:36:21 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.