Re: Hand-rolling migration to Git
- From
Peter Karlsson <peter@softwolves.pp.se>
- Date
- Mar 31, 2008, 06:23 UTC
- Message-ID
- <Pine.LNX.4.64.0803310720520.26808@ds9.cixit.se>
- In-Reply-To
- <alpine.LSU.1.00.0803251137580.10660@wbgn129.biozentrum.uni-wuerzburg.de>
Johannes Schindelin:
>> Take a look at git-fast-import. It should be relatively easy to write a >> small script that converts from either (1) or (2) to a stream of >> git-fast-import commands.
> Yeah. To get inspiration how the scripts should look like, read > contrib/fast-import/import-tars.perl, or look at > http://repo.or.cz/w/fast-export.git
I've played a bit with git-fast-import, but I sort of failed to get something working for PVCS export (see other thread).
The import-tars.perl script, however, was a very good idea. The simplest solutions for the multiple-directories source I had was just to tar it up and feed through import-tars.perl. After importing it into Git and repacking it with a suitably large --window argument, I had a Git repository of 64 megabytes, down from the four or so gigabytes of uncompressed directories. That did include removing some object files, though (but keeping some .exe's).
-- \\// Peter - http://www.softwolves.pp.se/