[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: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2007-12-12 13:39:36 CET

On Wednesday 12 December 2007, 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

This is still a good idea. Other than Ryan, I would also use it for the
initial import, i.e. not use 'svn import' to import the first version.

> 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?

It's not possible yet (it shouldn't be too hard to hack that script to do it
for you though). However, you can still change the commit messages
afterwards, provided you have a pre-revprop-change hook (or something like
that) installed.

> 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, it should only generate a single new revision.

Just create a test repository and try it, you will see how it works.

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH
Geschäftsführer: Michael Wöhrmann, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 12 13:40:05 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.