[Cialug] Version control splitting repository & migration
Nicholas Olson
nicholas.olson83 at gmail.com
Fri Jul 26 15:11:17 CDT 2013
I used a variation of that procedure to migrate a large collection of svn repositories to git recently while maintaining version history. That procedure required making the commit history mapping file line by line as it errored out. Since there was several thousand repositories totalling over 400gb I wrote a bash script to automate it and a wrapper that parsed the error for the name it did not recognize to add it to the file and retry. I also had to tweek the steps a bit. How you go about it really depends on your setup, whether or not svn and git are on the same machine or separate servers. In our case it was separate so involved cloning a copy of the svn , concerting it and then pushing it to the new server.
"Daniel A. Ramaley" <daniel.ramaley at drake.edu> wrote:
>Thank you to both Prescott and David!
>
>Looks like 2 approaches: split the repository and then convert to git,
>or convert to git and then split the repository. I had no idea how to
>split the repository, so i'll work on one of those or the other. Thanks
>for the pointers.
>
>On 2013-07-26 at 12:10:53, Daniel A. Ramaley wrote:
>>Some of our programmers have been using a subversion repository for
>>their projects. Unfortunately, they have several distinct projects all
>>lumped together into one huge repository.
>>
>>We're now talking about migrating to git. I have found procedures[1]
>>for migrating subversion to git, and even being able to maintain the
>>commit history. However, i'd also like to be able to split the
>>multiple projects into separate git repositories, for better
>>organization. And i'm not familiar enough with either subversion or
>>git to have any idea how to accomplish this while maintaining commit
>>history. Any ideas?
>>
>>
>>[1] http://john.albin.net/git/convert-subversion-to-git
>
>__
>Daniel A. Ramaley
>Network Engineer 2
>
>Dial Center 112, Drake University
>2407 Carpenter Ave / Des Moines IA 50311 USA
>Tel: +1 515 271-4540
>Fax: +1 515 271-1938
>E-mail: daniel.ramaley at drake.edu
>_______________________________________________
>Cialug mailing list
>Cialug at cialug.org
>http://cialug.org/mailman/listinfo/cialug
More information about the Cialug
mailing list