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

Re: How to add an "older" revision?

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-28 19:45:41 CEST

On May 25, 2006, at 18:30, Daniel E. Renfer wrote:

>>> I have a few projects using Subversion. I found a few archived
>>> copies of old pre-Subversion versions, that I thought it might make
>>> sense to load into the repository. Logically they come BEFORE the
>>> first revision in the repository.
>>>
>>> Seems like it might be a good idea to have them loaded, so
>>> everything
>>> is available through Subversion.
>
> There is a way to get files checked into a repository as older
> revisions, but it is *not* easy. Let me tell you what I did, and you
> can decide if it's worth the hassle for you. (my guess is no)
>
> 1) create a new repository
> 2) commit all of your older files into this new repository in their
> proper order
> 3) dump all of the revisions from that repository
> 4) open them up in a text editor and fix the time-date stamps. I used
> Emacs for this as just about every other editor would corrupt my
> dumpfiles
> 5) create another repository
> 6) load the modified dumpfiles into the new repository. They should
> now have the proper dates.
> 7) dump all of the revisions from your original repository
> 8) open those dumpfiles in emacs
> 9) change all of the revision numbers and copy-from-rev's
> appropriately
> 10) load the modified dumpfiles into the repository created in step 5
> 11) rename the repository and replace the original repository

You could also replace steps 3 thru 6 with the use of the svn propset
command to fix the date/time of each revision of the newly created
repository.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun May 28 19:46:35 2006

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.