PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/Documentation/BK-usage/bk-make-sum

https://bitbucket.org/evzijst/gittest
Shell | 34 lines | 19 code | 12 blank | 3 comment | 0 complexity | b18af86685c869805888895e99f4691e MD5 | raw file
 1#!/bin/sh -e
 2# DIR=$HOME/BK/axp-2.5
 3# cd $DIR
 4
 5LINUS_REPO=$1
 6DIRBASE=`basename $PWD`
 7
 8{
 9cat <<EOT
10Please do a
11
12	bk pull bk://gkernel.bkbits.net/$DIRBASE
13
14This will update the following files:
15
16EOT
17
18bk export -tpatch -hdu -r`bk repogca $LINUS_REPO`,+ | diffstat -p1 2>/dev/null
19
20cat <<EOT
21
22through these ChangeSets:
23
24EOT
25
26bk changes -L -d'$unless(:MERGE:){ChangeSet|:CSETREV:\n}' $LINUS_REPO |
27bk -R prs -h -d'$unless(:MERGE:){<:P:@:HOST:> (:D: :I:)\n$each(:C:){   (:C:)\n}\n}' -
28
29} > /tmp/linus.txt
30
31cat <<EOT
32Mail text in /tmp/linus.txt; please check and send using your favourite
33mailer.
34EOT