From: "Uwe Kleine-König" <Uwe.Kleine-Koenig@digi.com>
To: Jack Howarth <howarth@bromo.msbb.uc.edu>
Cc: <linux-kernel@vger.kernel.org>
Subject: git snapshots (Was: Re: merging branches remotely with git?)
Date: Fri, 25 Jul 2008 13:22:31 +0200 [thread overview]
Message-ID: <20080725112231.GA28411@digi.com> (raw)
In-Reply-To: <20080724224801.GA32241@bromo.msbb.uc.edu>
Hello,
> ps Which git represents the git patches (like 2.6.26-git11) which are
> placed as patches on the www.kernel.org web page under the section
> The latest snapshot for the stable Linux kernel tree is:.
AFAIK there is no public tree that contains these tags. But I have a
little script that creates them. See below.
Best regards
Uwe
#! /usr/bin/env python
import re
import sys
from urllib2 import urlopen, HTTPError
from subprocess import call
re_version = re.compile('v?(?P<version>2.6.[0-9]+(-rc[0-9]+)?)(?P<snapshot>-git[0-9]+)?')
re_hash = re.compile('[0-9a-f]{40}$')
def get(version):
url = 'http://kernel.org/pub/linux/kernel/v2.6/snapshots/patch-%s.id' % version
try:
f = urlopen(url)
id = f.read(41).strip()
print id
mo = re_hash.match(id)
if not mo:
return None
call(['git', 'tag', '--', 'v%s' % version, id])
except HTTPError:
print "could not find %s" % version
return None
for arg in sys.argv[1:]:
mo = re_version.match(arg)
if not mo:
print 'skip %r' % arg
continue
if mo.group('snapshot'):
get(mo.group('version') + mo.group('snapshot'))
--
Uwe Kleine-König, Software Engineer
Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany
Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962
next prev parent reply other threads:[~2008-07-25 11:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-24 17:30 merging branches remotely with git? Jack Howarth
2008-07-24 19:09 ` Daniel Barkalow
2008-07-24 22:48 ` Jack Howarth
2008-07-24 23:10 ` Daniel Barkalow
2008-07-25 11:22 ` Uwe Kleine-König [this message]
2008-07-25 11:42 ` git snapshots (Was: Re: merging branches remotely with git?) Mark McLoughlin
2008-07-25 23:44 ` Jack Howarth
2008-07-26 2:13 ` Bart Trojanowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080725112231.GA28411@digi.com \
--to=uwe.kleine-koenig@digi.com \
--cc=howarth@bromo.msbb.uc.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.