[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: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-04-10 13:08:42 CEST

On 4/10/07, John Walker <ronnystalker@gmail.com> wrote:
> Hi Jean-Marc
>
> > 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.
> >
> > 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.
> > 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.
> > Regards,
> > Jean-Marc
>
> Thanks for the speedy repsonse and for the useful tips. However, I
> dread the prospect of "SVNdeleting files that are no longer present in
> the newerversions" manually. I have hundreds of files in my earliest
> backups and thousands of files in the later ones. To make things
> worse, although, each file's path structure is consistant, some backup
> instances did not include all the sections of the site, i.e. some have
> "just those under htdocs" and others just have "those under my cgi
> bin" etc. I think i will just get started from what i have currently
> and maintain versions from now on.
>
> It would be a nice feature, though, to have some command that can,
> say, point to a folder that contains an alphabetically ordered
> sequence of back up folders and be told to "import/generate/load a
> revision history from it" into a specified folder in the working
> directory. I'm thinking like how you can point to a folder with
> Macromedia Firework's "Open file dialogue", and if you tick the box
> "Open as animation", it will open a numerically named sequence of gifs
> as a single animation. I'm new to this, but i'm now fully sold on the
> spirit of Subversion and Open Source, so (once i learn to code beyond
> a PHP webpage) I'll plan to make it my first contribution to the
> project, if not already scripted. In fact i should mention that i've
> always felt a bit of an outsider to the Open Source community cos i
> had no idea how to plug myself in. Now learning about Subversion has
> really opened the doors and i'm itching to get involved. So thanks
> everyone.
>
> My ideal command is something like:
> svn importsequence MySequenceOfTrees [ASC|DESC]
> file:///usr/local/svn/newrepos/some/project/putcontentofsequencedfolderunderhere
> \ -m "initial import n"
>
> The actual names of the backup folders is not important as long as
> they maintain a sequence and contain similarly structured paths
> within.
>
> Then svn goes through the process of what Jean-Marc suggested, except
> with less effort by the human, me! :o)
>
> Waddya think?

Although I haven't used it myself, I think svn_load_dirs.pl may do
what you want already.

http://subversion.tigris.org/tools_contrib.html#svn_load_dirs_pl
http://svnbook.red-bean.com/en/1.2/svn.advanced.vendorbr.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Tue Apr 10 13:08:53 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.