Last change
on this file since 713 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
|
Rev | Line | |
---|
[375] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | CLASS=scripts |
---|
| 4 | INSTANCE=commits.testing |
---|
| 5 | FULL=0 |
---|
| 6 | |
---|
| 7 | OPTS=$(getopt -o c:i:f -l class:,instance:,full -n "$0" -- "$@") || exit $? |
---|
| 8 | eval set -- "$OPTS" |
---|
| 9 | while :; 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 |
---|
| 17 | done |
---|
| 18 | [ $# -ge 2 ] || exit 1 |
---|
| 19 | REPOS=$1 |
---|
| 20 | REV=$2 |
---|
| 21 | |
---|
| 22 | dirs=$(svnlook dirs-changed "$REPOS" -r "$REV") |
---|
| 23 | svnlook 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" |
---|
[376] | 30 | svnlook changed "$REPOS" -r "$REV" |
---|
[375] | 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.