[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: Campbell Allan <campbell.allan_at_sword-ciboodle.com>
Date: Tue, 18 Jan 2011 17:12:30 +0000

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.

-- 
__________________________________________________________________________________
Sword Ciboodle is the trading name of ciboodle Limited (a company 
registered in Scotland with registered number SC143434 and whose 
registered office is at India of Inchinnan, Renfrewshire, UK, 
PA4 9LH) which is part of the Sword Group of companies.
This email (and any attachments) is intended for the named
recipient(s) and is private and confidential. If it is not for you, 
please inform us and then delete it. If you are not the intended 
recipient(s), the use, disclosure, copying or distribution of any 
information contained within this email is prohibited. Messages to 
and from us may be monitored. If the content is not about the 
business of the Sword Group then the message is neither from nor 
sanctioned by us.
Internet communications are not secure. You should scan this
message and any attachments for viruses. Under no circumstances
do we accept liability for any loss or damage which may result from
your receipt of this email or any attachment.
__________________________________________________________________________________
Received on 2011-01-18 18:13:45 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.