bk-make-sum 594 B

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