[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: Felix Saphir <felix.saphir_at_kantarmedia.de>
Date: Thu, 02 Sep 2010 17:03:38 +0200

Am 02.09.2010 16:53, schrieb Phil Sayers:
> -----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
>
[...]

That would work, if no files were deleted or added. The latter is quite
easy to check, but deleted files are tricky do detect: You could
checkout the previous version over a copy of the next version, look for
restored files and svn-delete them.

Felix

P.S. Phil, please use the '>' symbol for quoted text

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

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

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