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

Re: migrating to SVN from previous non-version controlled backups

From: Jean-Marc van Leerdam <j.m.van.leerdam_at_gmail.com>
Date: 2007-04-10 07:54:45 CEST

Hi John,

On 10/04/07, John Walker <ronnystalker@gmail.com> wrote:
> I have just been introduced to the whole concept of revision control
> after 5 years of developping a website without it. I'm thinking, "i
> wish i had this 5 years ago". So, I'm trying to 'fake' a Subversion
> history using my old backup folders. I have a collection of copies of
> my website documents which are instances of my site saved in folders
> like "MySite_copy_2001_03_1", "MySite_copy_2004_11_05",
> "MySite_copy_2007_02_28" etc. I have played around with a test
> repository by, say, pasting the contents of MySite_copy_2001_03_1
> into a folder in my working directory call "MySite", then committing
> that. Then deleting all files in that directory and pasting in files
> from MySite_copy_2007_02_28, and soon. This doesn't seem to work 'cos
> I'm getting told to execute a cleanup command. Does anyone know how
> to "fake" a revision history in any other way?

In principle the approach is fine, however I would try to restrict the
deletion of files to only those that are actually deleted in the newer
version of the site. When deleting files that are under version
control, you have to make sure that you use the SVN Delete, not the
regular Explorer delete.

Also keep in mind that you should not delete (or modify in any way)
the hidden .svn folders in your working copy. If you mess with them,
you are bound to corrupt the working copy.

Once you have SVN-deleted the files that are no longer present in the
newer version, just copy the entire backup folder tree on top of the
working copy. SVN will then automatically detect which files were
modified.

When you commit the changes, TSVN will allow you to Add all new files
in the commit window (by default they are not checked, but checking
them in the commit window will do an SVN Add prior to the commit).

-- 
Regards,
Jean-Marc
----------------
    ___
   // \\  @@     "De Chelonian Mobile"
  / \_/ \/._)    TortoiseSVN
 <\_/_\_/ /      The coolest Interface to (Sub)Version Control
  /_/   \_\      Check out http://tortoisesvn.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Tue Apr 10 07:54:56 2007

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.