Migrate from Source Depot to SVN

migrationsource-depotsvnversion control

I have had a local Source Depot repository for version control since my days at Microsoft. Lately, I've been wanting to migrate to SVN and take the change history with me but there seems to be no script to migrate to SVN.

Since there are quite a few Microsofties who hang out here, I thought I'd try here. I am basically looking for an easy migration script that would take care of things for me.

Barring that, any other advise is welcome to get me on my way. FYI, Source Depot is based off Perforce and I have tried the perforce migration tools without any success.

Best Answer

Does Source Depot have a command line similar to Perforce?

About a year ago I moved my home SCC depot from Perforce to SVN in a few steps using a Python script. While I no longer have the script it was pretty simple and written one afternoon.

Basically the script started at the very first perforce changelist and ran through them all in sequence. It would sync to each changelist and split the files into edit/add/branch lists. These files would then be copied to the SVN path and updated/added/branched using the appropriate commands. They'd then be committed using the comment from the original change-list.

This gave me a complete SVN mirror of my Perforce depot with all history/comments and branch info retained. I only had one user (me!) but it wouldn't be difficult to support multiple usees.

I even toyed with the idea of having the script change the system clock so that the history dates would be correct but it didn't seem worth it. For me the history and branch/tags information was the most important thing.