Re: BK kernel commits list

David Woodhouse (dwmw2@infradead.org)
Wed, 09 Oct 2002 15:55:00 +0100


This is a multipart MIME message.

--==_Exmh_-9483239040
Content-Type: text/plain; charset=us-ascii

bcollins@debian.org said:
> Just please make sure that the changeset info where it describes all
> the files in the delta. I.e. the ones that are moved, deleted, new.
> There's no way to deduce moves from the patch.

This bit?

# This patch includes the following deltas:
# ChangeSet 1.713 -> 1.714
# arch/i386/math-emu/poly.h 1.3 -> 1.4
#

Any idea how to get it other than 'bk export -tpatch | sed' ?

I need to do some real work... play with ths script and sort it out between
yourselves :)

--
dwmw2

--==_Exmh_-9483239040 Content-Type: application/x-sh ; name="mailcset.sh" Content-Description: mailcset.sh Content-Disposition: attachment; filename="mailcset.sh"

#!/bin/sh # $Id: mailcset.sh,v 1.6 2002/10/09 14:53:29 dwmw2 Exp $

CSET=$1

# Hmmm. How to get just the first line in a dspec without 'head -1'? echo -n "Subject: " ; bk changes -r$CSET -d'$each(:C:){(:C:)\n}' | head -1

# Grrr. bk prs needs an 'rfc822 datestamp' keyword. DATE="`bk changes -r$CSET -d':D: :T: :TZ: \n' | sed 's/\([+-]..\):/\1/'`" # How can I preserve timezone information? echo -n "Date: " ; date -d "$DATE" -R -u echo "X-BK-Repository: `hostname`:`pwd`" echo "X-BK-ChangeSetKey: `bk changes -r$CSET -d:CSETKEY:`" echo "From: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>" echo "To: BK Commits List: ;" echo bk changes -r$CSET -d':G: :I:, :D: :T::TZ:, :USER:@:HOST:\n\n$each(:C:){\t(:C:)\n}' echo echo bk export -h -tpatch -r$CSET > ~/tmp/bkpatch.$$ diffstat < ~/tmp/bkpatch.$$ echo echo cat ~/tmp/bkpatch.$$ rm ~/tmp/bkpatch.$$

--==_Exmh_-9483239040--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/