[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [proposal] switch our repository from Subversion to Git



On Fri, Mar 07, 2008 at 05:14:13PM +0000, Sylvain Le Gall wrote:
> > Cons
> > ----
> I am really not sure we can keep our revision history from Subversion. I
> really would like to keep it as far as possible (i.e. history of our
> subversion repository).

Yes, it is definitely possible, it is just a matter of understanding how
hard it is. The straightforward way to convert our repository to a git
one is to use git-svnimport (well-known contrib script available in
git-core).

Using that however you end up having the same space problems we have
right now, since a single "git clone" will then have to checkout all the
old tarballs. Not nice.

Starting from that I can see 2 solutions. The first is to hack our
conversion script which when a tarball has to be checked-in, instead of
doing it blindly, it rather invokes git-import-orig with pristine-tar
support.

The second is to do the blind conversion and after that use the git
mechanism to completely remove from a repository unwanted pieces of code
(which has been designed to completely erase copyrighted/illegal bits
which can have slipped in in the past), applying it to old tarballs.
This solution has the drawback that you won't have old tarballs in the
repository, but this is not strictly a problem, as all uploaded packages
have their tarballs available from snapshot.debian.net. Sure we want the
current and future tarballs to be checked in, but we can do that using
"svn checkout" and a round of git-import-orig.

If we decide to migrate I'm willing to study the above issues and mock
up the scripts (help would be appreciated of course :-)). But first
let's try to see if there is consensus or not.

> If there is a solution for this point, i vote for a migration.

I count this as a yes then? :-)

-- 
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

Attachment: signature.asc
Description: Digital signature


Reply to: