Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## $REPO/hooks/pre-revprop-change #!/usr/bin/env bash REPOS="$1" REV="$2" USER="$3" PROPNAME="$4" ACTION="$5" if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then ( echo "Revision: $REV" echo "User: $USER" echo echo "Log message: " echo "---------------------" cat ) \ |mail -s "svn:log changed on $REV" tim@spork.in exit 0 fi echo "Changing revision properties other than svn:log is prohibited" >&2 exit 1
This paste will be private.
From the Design Piracy series on my blog: