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

Re: How to move existing files (with revisions) into another folder ?

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Tue, 24 Mar 2009 16:41:38 +0300

Greetings, Pascal Maugeri!

PM> I made this stupid mistake: we started to work on the project and committed
PM> many files from the root folder of the repository.

PM> But now I read that the preferred layout is having a folder "trunk" then
PM> "tags" and then "branches".

PM> How could I move the existing source files and all the related revisions
PM> into the "trunk" folder ? Of course, without loosing all the history ?

If I'm reading the book right, you have at least two options.
1. Create trunk folder, add it to repos and move all folders in your project
to it. (svn move, of course)
2. Dump your SVN repository (svnadmin dump) and import back under proper path.

Which is better for you, you are to figure it yourself.
Moving folders around will be left in history as it was moving.
Dump/restore would take your SVN out of business for some time, until you
finish it all, and break clients' working copies, force them to use some svn
magic on their local copies, if they want to avoid full checkout.

--
WBR, Andrey Repin (anrdaemon_at_freemail.ru) 24.03.2009, <16:33>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1402253
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-24 14:51:32 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.