source: locker/sbin/commit-zephyr @ 743

Last change on this file since 743 was 376, checked in by andersk, 17 years ago
Full mode should also show svnlook changes.
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 808 bytes
Line 
1#!/bin/sh
2
3CLASS=scripts
4INSTANCE=commits.testing
5FULL=0
6
7OPTS=$(getopt -o c:i:f -l class:,instance:,full -n "$0" -- "$@") || exit $?
8eval set -- "$OPTS"
9while :; do
10    case "$1" in
11        -c|--class) CLASS=$2; shift 2;;
12        -i|--instance) INSTANCE=$2; shift 2;;
13        -f|--full) FULL=1; shift;;
14        --) shift; break;;
15        *) exit 1;;
16    esac
17done
18[ $# -ge 2 ] || exit 1
19REPOS=$1
20REV=$2
21
22dirs=$(svnlook dirs-changed "$REPOS" -r "$REV")
23svnlook info "$REPOS" -r "$REV" | (
24    read -r author
25    read -r datestamp
26    read -r logsize
27    log=$(cat)
28    echo "r$REV by $author $datestamp"
29    echo "$log"
30    svnlook changed "$REPOS" -r "$REV"
31    if [ "$FULL" -eq 1 ]; then
32        echo
33        svnlook diff "$REPOS" -r "$REV"
34    else
35        echo svnlook diff "$REPOS" -r "$REV"
36    fi
37) | zwrite -d -c "$CLASS" -i "$INSTANCE" -s "r$REV - $dirs"
Note: See TracBrowser for help on using the repository browser.