Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving from Visual Sourcesafe to Mercurial

What's the best way to move a Visual Sourcesafe repository to Mercurial (I'm interested in retaining all history)?

like image 319
David Coufal Avatar asked Jun 07 '09 13:06

David Coufal


People also ask

What replaced visual SourceSafe?

There are more than 10 alternatives to Microsoft Visual SourceSafe for a variety of platforms, including Windows, Linux, Mac, Online / Web-based and BSD. The best alternative is Git, which is both free and Open Source.

How do I open visual SourceSafe Explorer?

Command Menu Access For Visual SourceSafe, open from source control: File, Open, Project/Solution; look in the Visual SourceSafe location. For other source control plug-ins, open from source control: File, Source Control, Open from Source Control.


2 Answers

While I haven't made that particular conversion, I have gone from VSS to SVN using (IIRC) this script. You'll probably want to look into tailor and do a search for vss2hg. Also keep in mind that it may make sense to go through an intermediate step like vss2svn + svn2hg or similar.

The primary bit of advice I'd give though is: script the conversion so you can re-run it easily. That will let you run nightly conversions from VSS to Hg and make sure that everything is converting correctly before you pull the trigger on it.

like image 91
retracile Avatar answered Oct 15 '22 10:10

retracile


I am the author of the vss2hg.pl script and have used it to move many projects from VSS to Mercurial. It has one or two minor bugs where some comments are not completely converted but I haven't seen any other issues. It converts complete history and works-around a problem with VSS where a user's PC clock can affect the order in which changes appear to be made.

A version of the script is available here.

like image 34
trojanfoe Avatar answered Oct 15 '22 10:10

trojanfoe