summaryrefslogtreecommitdiff
path: root/BitKeeper
diff options
context:
space:
mode:
Diffstat (limited to 'BitKeeper')
-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