Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Import from Surround SCM?

My company has a large codebase in Surround SCM, which was migrated from SourceSafe a few years ago. We're looking to move to something more suited to our needs, but getting our history out of Surround is proving to be a challenge.

Googling for git importers, I found a good tutorial on custom importers. There also appears to be support for svn, perforce, and many others, but no Surround.

Would it be better to just take a snapshot and start a new git repo? Or is it worth writing a script to get 15+ years of code history?

like image 936
Ben Straub Avatar asked Aug 20 '09 04:08

Ben Straub


1 Answers

Finding myself in this exact scenario, I've take it upon myself to write such a custom importer: export-surround-to-git

This method is capable of preserving complete history, timestamps, authors, comments, branches, snapshots, etc.

This script has been tested in a limited number of scenarios, and has proven successful so far. While still a work-in-progress, this may be what you're looking for. It's open-source--so feel free to make improvements to the script on your own!

like image 116
j0nam1el Avatar answered Sep 19 '22 07:09

j0nam1el