[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Nightly snapshot version info?
From:       Rob Landley <rob () landley ! net>
Date:       2009-06-24 23:24:20
Message-ID: 200906241824.21390.rob () landley ! net
[Download RAW message or body]

On Wednesday 24 June 2009 15:46:46 Markus Heidelberg wrote:
> Rob Landley, 24.06.2009:
> > On Tuesday 23 June 2009 22:56:50 Mike Frysinger wrote:
> > > On Tuesday 23 June 2009 23:18:44 Rob Landley wrote:
> > > > The old svn snapshots used to include the .svn directory, so you
> > > > could do an svn info on them and see which repository version the
> > > > snapshot was from.
> > > >
> > > > How do you get the corresponding info from the new nightly snapshots
> > > > created from the git archive?  When I download
> > > > busybox-snapshot.tar.bz2 and find a bug in it, how do I say which
> > > > version it was in?
> > >
> > > there isnt any such info in the tarball afaik.
> >
> > Darn it.  Mercurial's had ".hg_archival.txt" in its tarballs for years
> > with the version information, I just assumed git had _something_.
>
> $ man git-archive
>   Additionally the commit ID is stored in a global extended pax header if
>   the tar format is used; it can be extracted using git-get-tar-commit-id.
>   In ZIP files it is stored as a file comment.
>
> $ bunzip2 -c busybox-snapshot.tar.bz2 | git get-tar-commit-id
> 2f86ca135069e457bb16ab9e062a10e0775717a6

Cool, that's what I needed.  Thanks.

> > > easiest change would be to
> > > stick the hash into the dirname since `git archive --prefix=...` is
> > > easy. sticking files into the stream is not.
> >
> > *shrug*  Works for me.
>
> Hmm? How does this work?
> I thought you download the archive and don't create it yourself.

Mike was proposing that the busybox cron job that creates the archive could be 
modified to do that, but it doesn't look like it's needed now.  (A FAQ entry or 
similar on the magic incantation might be, though.)

Rob
-- 
Latency is more important than throughput. It's that simple. - Linus Torvalds
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic