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

Re: Importing several version of code from zip files?

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-12-12 10:28:13 CET

On Dec 12, 2007, at 01:46, Jorge Canas wrote:

> I am trying to start using subversion to do version control for
> software which up to now I had foolishly maintained by archiving
> full versions of the entire software tree in individual zip files, one
> for each version of the tree.
>
> So, I am wondering what the easiest way of importing this to
> subversion
> is while at the same time being able to submit some history
> information
> with each version.
>
> I saw that there was a similar thread on this mailing list on Oct 9th
> 2004. At the time, Gerhard Wiesinger suggested the use of the
> svn_load_dirs.pl script

That's what I'd still recommend today. It worked great when I used it
for exactly this purpose several years ago. You would "svn import"
the very first version of your code into the right place in the
repository. Then you would use "svn_load_dirs.pl" for each subsequent
version of your code to write it into the repository.

> I think this will work for me, but I would also like to be able submit
> history information with each bulk import performed by
> svn_load_dirs.pl,
> does anyone know how to do that with the script?

What does it mean: "submit history information"? Do you just mean a
description of what changed? That would probably go in the commit log
message. True, svn_load_dirs.pl writes its own log message when
committing, and doesn't seem to provide a way to write your own
message instead. But you can always change log messages after the
fact, if you've enabled that capability. See:

http://subversion.tigris.org/faq.html#change-log-msg

> Also, just to make sure I understand it correctly, each bulk import
> (ie. every time I run the script) would only increase the version
> number
> of the repository by one, even though several files are being
> modified,
> added or removed: correct?

Yes, the revision of the repository would increment by one. The
revision of the repository is simply the number of changes that have
been made to the repository. Commits are atomic. Doesn't matter if
you change one line in one file or add or change or delete 1000
files. If you commit it all together, it's a single revision,
represented by a single global revision number, log message,
timestamp, etc.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 12 10:50:56 2007

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.