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

RE: Putting old versions into repository

From: Phil Sayers <Phil_at_cds-am.net>
Date: Thu, 2 Sep 2010 10:53:09 -0400

-----Original Message-----
From: Scott McCool [mailto:scott.mckeel_at_gmail.com]
Sent: Thursday, September 02, 2010 10:34 AM
To: users_at_tortoisesvn.tigris.org
Subject: Putting old versions into repository

I'm new to TortoiseSVN so I apologize in advance if this is a dumb
question or has been answered many times before (I have looked and I
could not find an answer).

We have an old (10+ years) legacy code (with 5000+ files in multiple
directories) that we want to put into TortoiseSVN. We have been doing
configuration management the old fashioned way of saving the entire
code (all 5000 files and multiple directories) into backup
directories. It is easy to put the current version of the code into
TortoiseSVN and proceed. What we would like to do is put some of those
older saved versions into the repository. How do I do that? I tried by
first starting the repository with the 10 year old version. I then
deleted everything in that directory and copied in the 9 year old
version into my working copy and committed but that obviously did not
work because all the .svn directories had been deleted. There are too
many files for me to manually update in my working copy and commit.
Any ideas? Thanks!

Sounds like each of your "legacy folders" is a snapshot in time.
Using an example of legacy folders named like this (assume folder name is
the date the code snapshot was taken)

Folder_2002_1_1
Folder_2002_2_1
Folder_2002_3_1
Folder_2002_12_1
Folder_2003_1_1

Something like... start with a new repository..
Import "Folder_2002_1_1" with a comment like "initial import of
Folder_2002_1_1" or something else relevant.

Checkout from the repository into a new working copy folder.
Copy the contents of "Folder_2002_2_1" into your working copy
Commit from the root of your working copy with a comment like "Changes up to
Folder_2002_2_1" or something else relevant

Copy the contents of "Folder_2002_3_1" into your working copy
Commit from the root of your working copy with a comment like "Changes up to
Folder_2002_3_1" or something else relevant

Copy the contents of "Folder_2002_12_1" into your working copy
Commit from the root of your working copy with a comment like "Changes up to
Folder_2002_12_1" or something else relevant

Copy the contents of "Folder_2003_1_1" into your working copy
Commit from the root of your working copy with a comment like "Changes up to
Folder_2003_1_1" or something else relevant

Rinse & repeat for all "Folder_yyyy_mm_dd"

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-09-02 16:53:16 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.