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

Re: Repairing a repository

From: Iliyan Osenski <iosenski_at_axway.com>
Date: Tue, 18 Jan 2011 22:33:07 +0200

На 18.01.2011 19:12, Campbell Allan написа:
> On Tuesday 18 Jan 2011, Modha Khammammettu wrote:
>> Hi
>> I have one repository, which do not have tags, branches and trunks to start
>> with. Code was checked in like that.
>>
>> Now I want to create a branch for the code checked in and I cannot since
>> the structure is not there.
>>
>> How I can fix my problem?
>>
>> Please let me know.
>>
>> Thanks
>> Modha/-
>>
>>
>>
> This shouldn't be a problem. The easiest way to do this would be with a
> checkout of the existing code. Create a directory called trunk. Then svn move
> all the other files and directories into trunk. Then create branches and tags
> directory and commit all those changes. By using svn move you retain the
> history of the files and directories.
>
> You shouldn't need to shut down anything either. I've done this before but not
> with other working copies with modifications so I'm not sure if there will be
> issues with merge problems.

Hello,
Please read
http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.move.html
svn have very good documentation about this kind of operations.

--
Iliyan.
Received on 2011-01-18 21:33:59 CET

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.