[Git-dpm-user] import-dscs.py - like gbp-import-dscs but for git-dpm

Barry Warsaw barry at python.org
Tue Sep 2 19:17:57 UTC 2014


Some of you may be aware that the Debian Python teams are investigating
transitioning team packages from svn to git.  We're in the experiment & learn
phase, so we're not yet ready to do a wholesale transition.

One of the things we're doing is investigating git-dpm, gbp-pq, and possibly
dgit as the "regimes" under which we want our future git packages to conform.

One of the interesting features of gbp is its 'import-dscs --debsnap'
feature.  This uses debsnap to download all the package snapshots and
bootstrap a full upload history of the package.  It's not perfect, but in many
cases it's good enough, and it's a really simple way to bootstrap a git
repository.

git-dpm only has import-dsc which just imports a single source package
version.  It's not as full-featured as gbp-import-dscs but it's a fine basis
on which to script something more comprehensive.  The one-shell-fits-all of
git-dpm is a bit imposing for a quick experimental hack, so I fell back on
Python 3 to do the dirty work for now.

If you're interested in taking a closer look:

$ git clone git://git.debian.org/users/barry/import-dscs.git

Then you can run:

$ git init colorama
$ cd colorama
$ ../import-dscs.py python-colorama

Remember, this is just a quicky branch to play with the idea.  I'd really like
to know if the resulting local repo structure is correct, or if anything else
needs to be done to make it compatible with git-dpm.

Feel free to steal whatever ideas are useful for git-dpm.  I'm not sure atm,
whether I'll spend the time to shellify it, but it probably wouldn't be hard.
I think it would be a nice feature.

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/git-dpm-user/attachments/20140902/6999ce7e/attachment.sig>


More information about the Git-dpm-user mailing list