diff options
author | Chris Larson <clarson@kergoth.com> | 2004-01-19 18:32:23 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-01-19 18:32:23 +0000 |
commit | 1fa88054aa1d11ac99fd4e9cea3e204de6500553 (patch) | |
tree | a6bfaaf037199f38aabc464847872b3eff70c93a /BitKeeper | |
parent | b217582cd227c5f905fec58c99a93685755f7a2e (diff) |
Update the BK CIA notification bits to not send notification about empty merge ChangeSets.
BKrev: 400c22b74UhNic17G2kQANgHxyPE4A
Diffstat (limited to 'BitKeeper')
-rw-r--r-- | BitKeeper/triggers/post-outgoing.ciabot | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/BitKeeper/triggers/post-outgoing.ciabot b/BitKeeper/triggers/post-outgoing.ciabot index 3523e937fa..4f2ec0b1db 100644 --- a/BitKeeper/triggers/post-outgoing.ciabot +++ b/BitKeeper/triggers/post-outgoing.ciabot @@ -25,14 +25,21 @@ check_sanity || exit 0 # Convert numbers from the cset list into something useful nums= for s in `cat $BK_CSETLIST`; do - nums="`bk prs -h -d\"\\\$if(:DS: -eq $s){:REV:}\" ChangeSet` $nums" + # 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 -# Send logs to CIA -echo "Sending notification to CIA irc bot (cia.navi.cx)." -( - for n in $nums; do - $BK_ROOT/BitKeeper/triggers/ciabot_bk.sh $n - done -) & +# Send notifications to CIA +if test -n "$nums"; then + echo "Sending notification to CIA irc bot (cia.navi.cx)." + ( + for n in $nums; do + $BK_ROOT/BitKeeper/triggers/ciabot_bk.sh $n + done + ) & +fi exit 0 |