Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

ties/trac-postgresql-svn-to-git

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

This is a fork of https://github.com/practicalweb/TRAC-SVN-to-GIT-migration which has been updated to work with PostgreSQL.

Where does this differ from the original:

  • supports Trac 0.12 style commit message comments
  • scripts no longer chained
  • uses PostgreSQL

Main caveats

Most git svn howto’s add —no-metadata. When using this for the initial checkout for this script, there is no list of SVN revisions and it fails to extract the lookupTable of Git<→SVN commit id’s

Usage & Configuration

  • edit convertTracTickets.php to match your database details
  • extract the SVN<→Git revision map with extractRevList.sh
  • convert the trac tickets (php convertTracTickets.php)

Original notes

Use this script if you have an existing trac project which has built up a history with svn and you have switched to git.

This project will have tickets which reference svn revision numbers – but now the project needs git IDs instead.

extractRevList.sh – will extract a list of git IDs annd svn revision numbers from the history created by git-svn

convertTracTickets.php – This will update the trac database – so that the links to commits still work.

This code has worked for me – but I STRONGLY SUGGEST TAKING BACKUPS before starting.

THIS CODE IS POTENTIALLY DESTRUCTIVE

USE AT YOUR OWN RISK

About

This script converts SVN-style revision messages in Trac to Git commit hashes. This fork is compatible with Trac 0.12 and uses PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 85.9%
  • Shell 14.1%