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

Re: importing multiple versions of existing project

From: Thomas Harold <tgh_at_tgharold.com>
Date: 2006-10-25 04:57:35 CEST

Jimmy wrote:
> I've been using svn for one of my hobby projects on my desktop computer at
> home. Before going on holiday, I copied the working copy of my project onto a
> laptop (with all the .svn dirs). While I was on holiday, I worked on the
> project. The laptop didn't have access to the svn repo, so I just made
> snapshot of my project in zip files every other day or so.
>
> Now that I'm back from holiday, I'd like to commit all those snapshots one by
> one (in the order in which they were saved).

Here's what I think might work...

1) Extract all of the zip files to separate folders
2) In those zip file folders, get rid of any .svn/_svn folders

Now for getting it into SVN

1) In your normal working copy, pull down the latest (SVN Update)
2) Take the contents of your first (oldest) zip file folder, paste them
over top of the working copy, overwrite existing files with the new files
3) SVN Add any new files that were in that zip snapshot, then commit
4) Go back to step #2 with the next oldest zip file folder

That doesn't address the issue where files were deleted during a
particular revision. So you might end up having to manually delete some
files at the end of the process that you no longer needed. Unless you
can figure out a way to delete the contents of a working folder without
touching the .svn folder contents. In which case step #3 would involve
the "check for modifications" dialog where you add/del any new or
deleted files before doing the commit.

(As always... have backups of everything.)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Wed Oct 25 04:58:13 2006

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.