You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Modha Khammammettu <MK...@calcas.com> on 2011/01/18 17:25:30 UTC

Repairing a repository

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/-



  ________________________________
******* Email Confidentiality *******

"The information contained in this message may be privileged and confidential and protected from disclosure. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that it is strictly prohibited (a) to disseminate, distribute or copy this communication or any of the information contained in it, or (b) to take any action based on the information in it. If you have received this communication in error, please notify the sender immediately by replying to the message, and delete it from your computer."

RE: Repairing a repository

Posted by "Cooke, Mark" <ma...@siemens.com>.
[Please note: the convention on this list is to reply in line so you can
read top-to-bottom] 

> From: Modha Khammammettu [mailto:MKhammammettu@calcas.com] 
> Sent: Tuesday, January 18, 2011 9:26 AM
> To: 'users@subversion.apache.org'
> Subject: Repairing a repository
> 
> 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/-
>  
> -----Original Message-----
> From: Modha Khammammettu [mailto:MKhammammettu@calcas.com] 
> Sent: 18 January 2011 17:04
> To: 'users@subversion.apache.org'
> Subject: RE: Repairing a repository
> 
> Can I create trunk, branches and main directories and move 
> the existing structure under trunk, after shutting down the service.

You do not say what platform you use.  On windows I would use
TortoiseSVN's RepoBrowser to create the trunk/tags/branches folders and
move the existing data under trunk.  You will need the server running to
be able to do this (if you access through e.g. https:// instead of
file://)!  This can be achieved using the command line "svn mv URL URL"
command...

This will cause problems for any working copies ~ lookup the "svn
switch" command, I think that will work but you may be better off doing
a fresh checkout anyway.

~ mark c

RE: Repairing a repository

Posted by Modha Khammammettu <MK...@calcas.com>.
Can I create trunk, branches and main directories and move the existing structure under trunk, after shutting down the service.

________________________________
From: Modha Khammammettu [mailto:MKhammammettu@calcas.com]
Sent: Tuesday, January 18, 2011 9:26 AM
To: 'users@subversion.apache.org'
Subject: Repairing a repository

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/-


  ________________________________
******* Email Confidentiality *******

"The information contained in this message may be privileged and confidential and protected from disclosure. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that it is strictly prohibited (a) to disseminate, distribute or copy this communication or any of the information contained in it, or (b) to take any action based on the information in it. If you have received this communication in error, please notify the sender immediately by replying to the message, and delete it from your computer."

Re: Repairing a repository

Posted by Iliyan Osenski <io...@axway.com>.
На 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.


Re: Repairing a repository

Posted by Campbell Allan <ca...@sword-ciboodle.com>.
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.
__________________________________________________________________________________