[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: Peter McNab <mcnab_p_at_melbpc.org.au>
Date: 2006-12-22 19:41:31 CET

Sven wrote:
> Peter McNab wrote:
>> 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
>>
>
> When you say "Then open a second explorer view...." do you mean
> Windows File Explorer or the repo browser or...?
> Ed
>
Windows explorer.
I just find it easier to have two explorers open. I also suggest you set
the two explorer instances (i.e. no directory structure on the left) to
only show the single pane view to be sure you don't suffer from faulty
M$ notification issues back to TSVNCache. (yep, on all accounts Windows
has a fault)
I have used the steps outlined above many times, always successfully
with recent versions of TSVN (ie 1.4).

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 19:41:40 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.