git/list[1] front-page[2] threads[3] people[4] search[5] about
 

rfc on a svn -> git wrapper script

From
SZStefano Zacchiroli <zack@upsilon.cc>
Date
Mar 18, 2008, 15:24 UTC
Message-ID
<20080318152427.GA2219@takhisis.invalid>
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
Message 1 of 1 in “rfc on a svn -> git wrapper script”
  1. Stefano ZacchiroliMar 18, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.