2 # A script to format BK changeset output in a manner that is easy to read.
3 # Andreas Dilger <adilger@turbolabs.com> 13/02/2002
5 # Add diffstat output after Changelog <adilger@turbolabs.com> 21/02/2002
10 echo "usage: $PROG -r<rev>"
11 echo -e "\twhere <rev> is of the form '1.23', '1.23..', '1.23..1.27',"
12 echo -e "\tor '+' to indicate the most recent revision"
19 -r*) REV=`echo $1 | sed 's/^-r//'` ;;
20 *) echo "$PROG: no revision given, you probably don't want that";;
23 [ -z "$REV" ] && usage
25 echo "You can import this changeset into BK by piping this whole message to:"
26 echo "'| bk receive [path to repository]' or apply the patch as usual."
28 SEP="\n===================================================================\n\n"
30 env PAGER=/bin/cat bk changes -r$REV
32 bk export -tpatch -du -h -r$REV | diffstat
34 bk export -tpatch -du -h -r$REV
36 bk send -wgzip_uu -r$REV -