threads / discuss / 18094

VSS to git

Subject: VSS to git

## tl;dr

5 messages between Mar 2, 2009 and Nov 5, 2012.

replies: 4people: 5as markdown or json

Chris Velevitch· Mar 2, 2009, 17:15 UTC · lore

I can't seem to find any utilities to convert a vss repository to git. In the absence of such a tool, what is the best approach to converting an vss repository to git?

Chris -- Chris Velevitch Manager - Adobe Platform Users Group, Sydney m: 0415 469 095 www.apugs.org.au

Adobe Platform Users Group, Sydney
Mar meeting: Bzoo, FlashDevelop, Who's Doing What With AIR and Eclipse Tips
Date: Mon 30th Mar 6pm for 6:30 start
Details and RSVP on http://groups.adobe.com/posts/db02e98146
Michael J Gruber· Mar 2, 2009, 17:48 UTC · re: Chris Velevitch · lore

Re: VSS to git

Chris Velevitch venit, vidit, dixit 02.03.2009 18:15:
> I can't seem to find any utilities to convert a vss repository to git.
> In the absence of such a tool, what is the best approach to converting
> an vss repository to git?

Depending on the complexity of your vss repo, going through svn may be an option, see

http://kerneltrap.org/mailarchive/git/2008/5/27/1952124
which points at
http://www.pumacode.org/projects/vss2svn

Using those pieces you may even be able to produce a fast-exporter for vss, whose output you could feed into git-fast-import (vss2svn already creates an svn dump file).

Michael
Mike Ralphson· Mar 2, 2009, 17:51 UTC · re: Chris Velevitch · lore

Re: VSS to git

2009/3/2 Chris Velevitch <chris.velevitch@gmail.com>:
> I can't seem to find any utilities to convert a vss repository to git.
> In the absence of such a tool, what is the best approach to converting
> an vss repository to git?

You might be able to two-stage through vss2svn[1], and from there to git. Or take the guts of vss2* [2] and rewrite the backend to create git fast-import format?

Mike

[1]http://www.pumacode.org/projects/vss2svn [2]http://sourceforge.net/projects/vss2cvs

Alexander Gavrilov· Mar 2, 2009, 18:55 UTC · re: Mike Ralphson · lore

Re: VSS to git

On Monday 02 March 2009 20:51:12 Mike Ralphson wrote:
Show 8 quoted lines
> 2009/3/2 Chris Velevitch <chris.velevitch@gmail.com>:
> > I can't seem to find any utilities to convert a vss repository to git.
> > In the absence of such a tool, what is the best approach to converting
> > an vss repository to git?
> 
> You might be able to two-stage through vss2svn[1], and from there to git.
> Or take the guts of vss2* [2] and rewrite the backend to create git
> fast-import format?

Last year I experimented with conversion using vss2svn plus a heavily patched version of git-svnimport, and it worked quite well. The largest problem is that VSS cannot record directory copies, so the resulting SVN repository does not have them either. This makes conversion tools unable to detect any branching, so I had to implement support for completely arbitrary mapping specs.

I also made an incremental synchronization script for simple actions (requires logging to be enabled in VSS).

Alexander
P.S: I made some fixes to vss2svn too, they are in a separate branch:
  http://www.pumacode.org/projects/vss2svn/browser/branches/Alexander
victorcruz· Nov 5, 2012, 22:08 UTC · re: Chris Velevitch · lore

Re: VSS to git

To migrate from VSS to GIT can use the following script to run on windows: https://github.com/victorcruz/vsstogit

-- View this message in context: http://git.661346.n2.nabble.com/VSS-to-git-tp2410442p7570605.html Sent from the git mailing list archive at Nabble.com.

← back to recent threads