svnlastchange 397 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. if [ $# -eq 0 ]; then
  3. cat <<EOF
  4. Usage:
  5. svnlastchange <filename> [<filename> ...]
  6. EOF
  7. exit 1
  8. fi
  9. if [ "$1" == "-q" ]; then
  10. shift
  11. else
  12. echo >/dev/tty "Hint: Use svn log -r COMMITTED and svn diff -r PREV:COMMITTED"
  13. fi
  14. svn log -r COMMITTED "$*"
  15. svn diff -r PREV:COMMITTED "$*" || \
  16. echo >&2 "Error retrieving diff: the file was probably added in the last revision"