Skip to content
schadr edited this page Jun 4, 2012 · 14 revisions

Welcome to the scm2pgsql wiki!

The scm2pgsql is a tool developed by the Eggnet team in the S.E.G.A.L lab at the University of Victoria. This tool will take a Git repository (with tools to convert other major SCMs to Git) and dump all of it's commit, revision, file, etc. data into a PostgreSQL database for further analysis.


Quick User Guide

To use the scm2pgsql tool, you must have a local Git repository. If you do not have a git repository but another major SCM, please follow one of the conversion guides found below.

Convert SVN to Git
Convert CVS to Git
Convert Mercurial to Git

Once you have your local git repository, you must have a PostgreSQL database to be able to dump the information to. You can install PostgreSQL on a local machine or set up a server for remote access. PostgreSQL can be downloaded here.

How to run the program

assumes that https://github.com/eggnet/libs is checked out in a sibling directory to the scm2pgsql project

compiling from the top folder: javac -cp .:libs/*:libs/db:../libs/differ/*.jar:../libs/database/*.jar -sourcepath src src/scm2pgsql/Main.java

running from the top folder: java -cp .:libs/*:libs/db/*:../libs/database/*:../libs/differ/*:src/ scm2pgsql/Main ~/eggnet/data/agilefant-git

Clone this wiki locally