Package: devscripts File: /usr/bin/debcheckout Severity: wishlist also sprach Stefano Zacchiroli <[EMAIL PROTECTED]> [2008.09.16.0815 +0100]: > > The only reasonable heuristic to identify a TopGit repository is to > > use git-ls-remote and look if the remote has top-bases: > > > > git ls-remote git://git.debian.org/git/collab-maint/topgit.git > > refs/top-bases/\* > > > > this means two network connections, but there is no other way; > > topgit is not a build dependency for packages using it. > > OK, so, should I consider this reply of yours an ACK to implement TopGit > support this way, without resorting to a new field in the Vcs-* > namespace? > > If so, I would love a wishlist bugreport about it ...
Done. An alternative approach more reminiscent of duck typing (try
it and handle failure, instead of first checking whether to do it)
would be:
if callable(tg):
save_backup(.git/config)
if tg remote --populate origin:
if git show-ref | egrep -q '^[[:xdigit:]]+[[:space:]]+refs/top-bases/.+$':
party!
restore_backup(.git/config)
Maybe Petr (debbugs-cc'd) has some (more) input on this?
See
http://git.debian.org/?p=collab-maint/topgit.git;a=blob;f=debian/README.source;hb=HEAD
--
.''`. martin f. krafft <[EMAIL PROTECTED]>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems
an egg has the shortest sex-life of all: if gets laid once; it gets
eaten once. it also has to come in a box with 11 others, and the
only person who will sit on its face is its mother.
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

