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

RE: How To Convert Zip Images of Directory to Subversion Revisions?

From: Bob Archer <bob.archer_at_amsi.com>
Date: Wed, 11 Nov 2009 12:47:04 -0500

What I would recommend is to put that stuff into trunk... I assume this is an archive of your current work in progress?

I would create use the repo browser to create a project folder in your repo then a trunk folder....

Check out the folder so you have a working copy on your machine, lets say:

c:\dev\MyProject

Then unzip the oldest zip into this folder. Right click on the folder and choose add... then commit. Create a commit message like "archive from 2001-11-01".

Next, unzip the next days archive into the folder. Do another add, in case there are new files. Then... commit with a message ... archive from ...

Keep doing this until you are caught to up today... then copy the code from todays changes into it.

Once you have done that you can start using svn with the normal workflow recommended in the book.

The only thing that might cause a problem is if a file has been deleted from one day to the next. You would need to manually use the TSVN-Delete on that file. So, if it is possible a file is not in say the archive from 2009-11-02 that was in 2009-11-01 you will have to maybe use a compare tool to know that ahead of time so you can delete those files after putting the archive into your working copy and before committing it.

Hope this makes sense,

BOb

From: Brian Fischer [mailto:brianafischer_at_gmail.com]
Sent: Wednesday, November 11, 2009 11:51 AM
To: users_at_tortoisesvn.tigris.org
Subject: How To Convert Zip Images of Directory to Subversion Revisions?

Hello,

I am working on converting our code library to Subversion and we are using TortoiseSVN as the client.

The previous archiving method was to create a zip file of the project directory at the end of each day. These zip files were placed into an "Archive" folder after creation:
C:\Archive\2009-11-01.zip
C:\Archive\2009-11-02.zip
C:\Archive\2009-11-03.zip

I have unzipped the contents of each zip to the respective directory as shown below:
C:\Archive\2009-11-01\
C:\Archive\2009-11-02\
C:\Archive\2009-11-03\

I would like to import the contents of these folders to Subversion, with each folder being a new SVN revision:
Revision 1 - C:\Archive\2009-11-01\
Revision 2 - C:\Archive\2009-11-02\
Revision 3 - C:\Archive\2009-11-03\

What is the best method for this with TortoiseSVN?

Thanks!

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2416665

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-11-11 18:47:13 CET

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