Has anyone successfully migrated VSS 2005 over to SVN?
Asked Answered
R

5

10

I've been playing around with SVN for the last little while and have come to love its power and user experience and that we can tie it into our bug tracking system to simplify everyone's lives. So it's come to the time that we've decided to migrate our VSS 2005 setup across to SVN and I am now coming unstuck.

It seems there are a number of tools out there that claim to be able to complete the migration from VSS 2005 to SVN, but I can't figure out which is the best one or which will provide me with the most complete transition. I need one that will migrate the full history across rather than just checking out from VSS and checking into SVN.

I found Polarion SVN Importer which looks both powerful and highly configurable, however, I can't get the damn thing to work, it complains that it can't pull the file list from $/ in VSS. If I run the same command it's tripping up on manually, everything seems to run okay, so I can't figure it out.

Has anyone successfully migrated their source from VSS 2005 to SVN and if so what tools did you use and what were your findings? Any caveats or gotchas would be most useful so know as well as anything that was useful/surprising or was a let down or just plain misrepresented.

Reprobate answered 15/5, 2009 at 18:59 Comment(7)
I'd count throwing out the whole VSS repository and checking in the latest version in SVN as a big success :)Proponent
Since it fails so early at list files in $/, perhaps try a non-read-only account or another known account. The exception looks like an account or permissions error. Or perhaps the single user account is causing problems.Moonlit
lol @Mehrdad - I'm inclined to agree; however the requirement to bring the history wasn't mine. I'd just as soon archive the existing repository some place for nostalgia and move on. Maybe one day we can open it and say "aww, how cute we were back then"...Reprobate
@Moonlit - thanks for the suggestion, I'd not thought of that. I tried it though, to no avail. Same response as with the read-only account.Reprobate
Eek - with all the suggestions of ditching the history, it's likely that the company will say "let's just stay with VSS"... <grumble/>Reprobate
@balabaster: or more likely... you'd be saying "how doomed VSS was from the beginning..." :))Proponent
lol @Mehrdad, I would never openly criticize a Microsoft product like that <snicker/>Reprobate
W
6

Try the lastest trunk (console app) revision for VssMigrate on Codeplex to re-order your history and re-generate changesets from your VSS repository. It will also order your revisions correctly based on the time they were checked in.

http vssmigrate.codeplex.com/SourceControl/changeset/view/16890

I hope this helps. It might take some tweaking on the $/ import.

P.S. the history helps you know who to blame in a single step rather than having to discover if the annotation is correct based on an import, so I find it rather useful. Much better to have it than not have it when finding bugs in older code.

P.P.S. You can even use the new version of VssMigrate to re-import the revisions to a subversion repository and then merge in all of the revisions after the last import revision from your previous revision. The only downside is that everybody will have to get a fresh check-out from the repository because the number of revisions will be dramatically reduced. Basically, perfom a new migration; svnadmin dump active previously migrated repository from rev migrated+1 as incremental and then svnadmin load into the newly migrated repository.

Wendeline answered 24/5, 2009 at 12:59 Comment(2)
very nice job on the updates to VssMigrate jim0301. The day before you commited them I added the same functionality. When I went to offer the updates, I saw you had just commited them. And you did a much better job than I did. Thank you for your update. I've been migrating all my VSS repositories to SVN now for the past week and have had no issues. I highly recommend anyone that wants to migrate VSS to SVN should check out the latest commit from the source at codeplex. (actually the only issue i had was i had to re-download log4net and reattach the libs, not sure why though)Pamphylia
Does anyone know if VSSMigrate is compatible with VSS 6.0d (Not VSS 2005)?? -- LeeNaamann
I
4

I tried both Polarion and vss2svn about a year ago.

We had many years of code in VSS, and I found that after all of the configuration and testing that I was not entirely satisfied with the results, the process was long and fragile, and in the end, decided to just start with a clean import of the latest code.

There have been a few times over the last year where I went looking for old history, but not really that much. Another plus of starting fresh is that your new SVN repository will be very fast!

Incidence answered 15/5, 2009 at 19:31 Comment(1)
Agreed - We have found this approach the 'safest', meaning that we're in control of what happens, etc. Plus, we have modified the structure that we're storing the code inside of SVN to work with our CI stuff - guessing this wouldn't have been that easy using an automated tool?Openeyed
B
3

The last time I tried this was years ago. Because the VSS file format wasn't documented, to get a complete history the 3rd-party conversion program had to use VSS's API to get each version of each file. I let that conversion run over the week-end, saw how much it had accomplished (a few percent), and calculated that it would take weeks of calendar time to complete (we had years of history).

We therefore decided to move only a snapshot of the latest code into the new version control system, and kept an archive of the VSS database for history's sake.

Balakirev answered 15/5, 2009 at 19:19 Comment(1)
Thanks for your input, we have probably a couple of years of history but we don't have thousands of projects thankfully just a handful so I'm hoping things have moved forward since then...Reprobate
S
2

Similar to this question - different migration, but I also think it is a waste of effort/time to try to capture the history.

What's the best way to migrate from SourceSafe to ClearCase?

Saloma answered 15/5, 2009 at 19:22 Comment(0)
M
2

I successfully migrated VSS 2005 to SVN several months ago. I used the "VssMigrate.Tim2" tool which is apparently on CodePlex now as vssmigrate. It worked fine with no major issues. It did seem like the revisions and timestamps weren't ordered quite like I expected, but it wasn't a big deal.

EDIT: With vssmigrate, you can choose to migrate a specific VSS path (e.g. $/GroupA/ProjectB) which reduces the time for individual migration and makes the overall process less fragile. I didn't find the process too long although we only had about six months of data in VSS. I managed to complete the migration and Apache+SVN setup over a weekend. Depending on the size of your VSS repository, you may want to create multiple SVN repositories instead of a massive single repository.

I am extremely glad we moved away from VSS, although configuring Apache+SVN wasn't too much fun (trial and error). I was considering Git or Mercurial, but neither had a reliable TortoiseXxx tool or VS SCC plugin at the time. Although now that Google code has supported Mercurial and TortoiseHg looks good, I'm tempted to try Mercurial soon.

Moonlit answered 15/5, 2009 at 19:23 Comment(2)
Can you elaborate on what wasn't as you expected? That would be a good insight to have...Reprobate
It seemed that the revision numbers that were created in SVN from VSS were not ordered from oldest to newest. I expected the new SVN revision numbers to follow linearly and sequentially in time from the VSS versions, but when I looked back at the svn log it didn't seem to follow a pattern. It was simple to sort by datetime in TortoiseSVN though, so it wasn't a big deal to me. I also looked at vss2svn but decided on vssmigrate instead.Moonlit

© 2022 - 2024 — McMap. All rights reserved.