[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: <joseph.h.dayney_at_rrd.com>
Date: 2006-12-22 20:59:25 CET

Hi Peter,

Along the same lines,

If I "MOVE" TAG structures to the BRANCH High Level ... will I lose
History ? I copied them up and it appears I do lose history. Is there a
way to do this and NOT lose History ?

Joe

Peter McNab <mcnab_p@melbpc.org.au>
12/22/2006 08:08 AM
Please respond to users
 
        To: users@tortoisesvn.tigris.org
        cc:
        Subject: Re: Reorganizing project within SVN....

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
> +---testProgram
> \---src
>
> How do I restructure project_A's structure within the repository
> 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
> TortoiseSVN? Can I do this in the RepoBrowser?
>
> Ed
>
You can create the new structure in your existing up todate WC,
initially leaving the existing file set where it currently is.
Commit the new structure from the root folder.
Update just to be sure.
Then open a second explorer view and browse you old file set , select
files and drag (svn Move) to them to the required new structure.
Finally when you have everything in place and have double checked its as
you desire then commit from the root folder
Bingo all done. The file history will be preserved (assuming you are
using a recent version of TortoiseSVN i.e. within the last 12 months or
so.

Peter

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Dec 22 21:08:07 2006

This is an archived mail posted to the TortoiseSVN Users mailing list.