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

Re: Reorganizing project within SVN....

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-12-21 23:27:11 CET

On Dec 21, 2006, at 16:08, Sven wrote:

> I have a project which has the following strcture in svn:
>
> project_A
>
> \---project_A
> \---testProgram
>
> All the source files, header files, make files etc. are all under
> the root directory for this project: project_A. similarly all the
> source, make etc. files for the test program for the project are
> under project_A/testProgram.
>
> I want to change the structure to something like:
>
> \---project_A
> +---build
> | +---common
> | +---linux
> | +---win32
> | \---mingw
> +---data
> +---doc
> +---examples
> | |---testProgram
> \---src
>
> Actually I guess I should make that
>
> \---project_A
> +---branches
> +---tags
> +---trunk
> |---build
> | +---common
> | +---linux
> | +---win32
> | \---mingw
> +---data
> +---doc
> +---examples
> +---testProgram
> \---src
>
> How do I restructure project_A's structure within the pepository
> without losing all the history of the file changes etc., all the
> revisions and such. In VSS (sorry), I can go to the VSS Browser
> and say move projectA to location B and it's done. Is it that easy
> in SVN?

Sure. Just get a working copy and move stuff.

svn checkout $REPO/project_A
cd project_a
svn mkdir trunk branches tags
for each $ITEM in the current directory other than trunk branches
tags testProgram
        svn mv $ITEM trunk
end for each
svn mkdir trunk/examples
svn mv testProgram trunk/examples
* in one of your examples you showed testProgram should be under
examples
svn commit -m "reorganizing project"

Anyone who has existing working copies of project_A will probably
want to "svn switch" these to project_A/trunk.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 21 23:28:50 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.