summaryrefslogtreecommitdiff
path: root/BitKeeper/triggers/post-outgoing
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2003-09-27 22:59:26 +0000
committerChris Larson <clarson@kergoth.com>2003-09-27 22:59:26 +0000
commit159a7d7a6b24d8f93cbbb27ca27ca3dcb50ce30f (patch)
tree953f8d2aea654d7c1196981dae712133d756dc40 /BitKeeper/triggers/post-outgoing
parent2f7ab5b8211c25fde5314f49cd7c2970be9206de (diff)
Merge openembedded@openembedded.bkbits.net:packages
into direwolf.ppp.ti.com:/home/kergoth/coding/projects/user/oe/packages 2003/09/27 17:59:10-05:00 ti.com!kergoth Testing post-outgoing. BKrev: 3f76164et3YQRp7FHIC5p5pPkhkO-Q
Diffstat (limited to 'BitKeeper/triggers/post-outgoing')
-rw-r--r--BitKeeper/triggers/post-outgoing64
1 files changed, 64 insertions, 0 deletions
diff --git a/BitKeeper/triggers/post-outgoing b/BitKeeper/triggers/post-outgoing
index e69de29bb2..4ff407733c 100644
--- a/BitKeeper/triggers/post-outgoing
+++ b/BitKeeper/triggers/post-outgoing
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+LIST=openzaurus-cvslogs@lists.sf.net
+
+
+if [ X"$BK_STATUS" = XDRYRUN -o X"$BK_STATUS" = XNOTHING ]
+then exit 0
+fi
+
+if [ "$BK_SIDE" = server ]
+then U=$BKD_USER
+ H=$BKD_HOST
+ R=$BKD_ROOT
+else U=$BK_USER
+ H=$BK_HOST
+ R=$BK_ROOT
+fi
+R_OUT=`echo $BKD_ROOT | sed "s,.*/,,"`
+
+if !(echo $BKD_HOST|grep -q bitkeeper.com)
+then exit 0
+fi
+
+if [ $BK_SIDE != client ]
+then exit 0
+fi
+
+echo "Sending notification mail to $LIST..."
+
+(
+ echo ${U}@${H} fired the $BK_TRIGGER trigger in $R_OUT
+ case "$BK_TRIGGER" in
+ pre-outgoing) VERB=Sending;;
+ post-outgoing) VERB=Sent;;
+ pre-incoming) VERB=Receiving;;
+ post-incoming) VERB=Received;;
+ pre-resolve) VERB=Resolving;;
+ pre-commit) VERB=Committing;;
+ post-commit) VERB=Committed;;
+ pre-apply) VERB=Applying;;
+ esac
+ if [ X"$BK_PENDING" != X ]
+ then (
+ echo $VERB the following deltas
+ echo
+ bk prs - < $BK_PENDING
+ ) | sed 's/^/ /'
+ fi
+ if [ X"$BK_CSETLIST" != X ]
+ then (
+ echo $VERB the following changesets
+ echo
+ BK_CSETLIST=BitKeeper/etc/cset-in
+ bk changes -v - < $BK_CSETLIST
+ ) | sed 's/^/ /'
+ fi
+ if [ X"$BK_CSETS" != X ]
+ then (
+ echo $VERB the following changesets
+ echo
+ bk changes -v -r$BK_CSETS
+ ) | sed 's/^/ /'
+ fi
+) | mail -s "${U}@${H}:${R} - $BK_EVENT" $LIST