summaryrefslogtreecommitdiff
path: root/BitKeeper/triggers
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-05-27 19:13:36 +0000
committerChris Larson <clarson@kergoth.com>2004-05-27 19:13:36 +0000
commit5731730ed64bc54a575f195cbdc911e56480dc8c (patch)
tree365ec37e46e59432dac9ca5cd69b1c729d5ea21b /BitKeeper/triggers
parent4d0f455da47979218d8f666e5d303d43e2776366 (diff)
Attempt to fix CIA trigger on recent bk versions.
BKrev: 40b63de0GFFIGjG-Yf0cB6jF69Gkiw
Diffstat (limited to 'BitKeeper/triggers')
-rw-r--r--BitKeeper/triggers/post-outgoing.ciabot26
1 files changed, 16 insertions, 10 deletions
diff --git a/BitKeeper/triggers/post-outgoing.ciabot b/BitKeeper/triggers/post-outgoing.ciabot
index 8a7132789f..3fead58232 100644
--- a/BitKeeper/triggers/post-outgoing.ciabot
+++ b/BitKeeper/triggers/post-outgoing.ciabot
@@ -42,16 +42,22 @@ check_sanity () {
# Check sanity - do we need to send anything?
check_sanity || exit 0
-# Convert numbers from the cset list into something useful
-nums=
-for s in `cat $BK_CSETLIST`; do
- # translate cset serial to cset #
- n=`bk prs -h -d"\\$if(:DS: -eq $s){:REV:}" ChangeSet`
- # dont send notifications about empty ChangeSets
- if test -z `bk prs -h -r"$n" -d'$if(:LI: -eq 0){$if(:LD: -eq 0){:REV:}}' ChangeSet`; then
- nums="$n $nums"
- fi
-done
+if (grep -q ':ChangeSet:' $BK_CSETLIST); then
+ # new, correct csets-out format
+ nums = `bk changes -d:REV: - < $BK_CSETLIST`
+else
+
+ # Convert numbers from the cset list into something useful
+ nums=
+ for s in `cat $BK_CSETLIST`; do
+ # translate cset serial to cset #
+ n=`bk prs -h -d"\\$if(:DS: -eq $s){:REV:}" ChangeSet`
+ # dont send notifications about empty ChangeSets
+ if test -z `bk prs -h -r"$n" -d'$if(:LI: -eq 0){$if(:LD: -eq 0){:REV:}}' ChangeSet`; then
+ nums="$n $nums"
+ fi
+ done
+fi
# Send notifications to CIA
if test -n "$nums"; then