summaryrefslogtreecommitdiff
path: root/BitKeeper/triggers/post-incoming
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-05-27 19:26:12 +0000
committerChris Larson <clarson@kergoth.com>2004-05-27 19:26:12 +0000
commit260a409ce9b97dfdfacf1769ad56d117509f52dd (patch)
tree16aae616e3f957bc4c3c2c06517aa81046a862eb /BitKeeper/triggers/post-incoming
parent2b765a3b742074c23fd83e8be726d80f9e8d2f40 (diff)
Disable the post-incoming and post-outgoing triggers for now.
BKrev: 40b640d4NayArTKn0Vh0a_fr4XlcZA
Diffstat (limited to 'BitKeeper/triggers/post-incoming')
-rw-r--r--BitKeeper/triggers/post-incoming65
1 files changed, 65 insertions, 0 deletions
diff --git a/BitKeeper/triggers/post-incoming b/BitKeeper/triggers/post-incoming
index e69de29bb2..abbd52e81a 100644
--- a/BitKeeper/triggers/post-incoming
+++ b/BitKeeper/triggers/post-incoming
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+exit 0
+
+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
+
+exit 0
+
+(
+# if [ X"$BKD_ROOT" != X ]
+# then printf '%-10s%-20s%-20s\n' VAR CLIENT SERVER
+# printf '%-10s%-20s%-20s\n' === ====== ======
+# printf '%-10s%-20s%-20s\n' USER $BK_USER $BKD_USER
+# printf '%-10s%-20s%-20s\n' HOST $BK_HOST $BKD_HOST
+# printf '%-10s%-20s%-20s\n' ROOT $BK_ROOT $BKD_ROOT
+# printf '%-10s%-20s%-20s\n' LEVEL $BK_LEVEL $BKD_LEVEL
+# printf '%-10s%-20s%-20s\n' TIME_T $BK_TIME_T $BKD_TIME_T
+# printf '%-10s%-20s%-20s\n' UTC $BK_UTC $BKD_UTC
+# printf '%-10s%-20s%-20s\n' VERSION $BK_VERSION $BKD_VERSION
+# echo
+# fi
+ echo ${U}@${H} fired the $BK_TRIGGER trigger in $R
+ 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 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" openembedded-bklogs@lists.sourceforge.net