threads / discuss / 12762

rfc on a svn -> git wrapper script

Subject: rfc on a svn -> git wrapper script

## tl;dr

One message between Mar 18, 2008 and Mar 18, 2008.

replies: 0people: 1as markdown or json

Stefano Zacchiroli· Mar 18, 2008, 15:24 UTC · lore
Hi all,
  I want to convert a medium-sized subversion repository [1] to several
git repositories. In doing so I've a couple of extra requirements which
are not directly handled by git-svn. The main ones are:
- get rid of old .orig.tar.gz tarballs which have been commited in the
  past to the repo
- get rid of the git-svn metadata as the conversion will be one-way and
  will happen only once
- make the repository bare
- convert old subversion tags to real git tags
  (BTW, I'm quite surprised git-svn doesn't do that, but I understand
  that there are no guarantees that tags on the subversion side have
  been used as such ...)

As a side goal I need all this to be made easy for people which know potentially nothing about git (they will start learning when the conversions have been done).

Hence, to automate the above stuff I've made a helper script [2] (with a companion of him, which is way less interesting [3]).

Since I'm quite new to git, and given that some stuff (e.g. removing the tarballs and ensuring their space can be reclaimed back) is quite tricky, I was wondering if someone can have a look at the script to check if I've overlooked something obvious or not ...

Comments will be very much appreciated, Many thanks in advance!

[1] svn://svn.debian.org/pkg-ocaml-maint/ [2] http://svn.debian.org/viewsvn/pkg-ocaml-maint/trunk/tools/svn2git/svn2git_alioth?view=markup [3] http://svn.debian.org/viewsvn/pkg-ocaml-maint/trunk/tools/svn2git/svn2git_pkg-ocaml-maint?view=markup

-- 
Stefano Zacchiroli -*- PhD in Computer Science ............... now what?
zack@{upsilon.cc,cs.unibo.it,debian.org}  -<%>-  http://upsilon.cc/zack/
(15:56:48)  Zack: e la demo dema ?    /\    All one has to do is hit the
(15:57:15)  Bac: no, la demo scema    \/    right keys at the right time

← back to recent threads