/ Published in: Bash

updates (svn up) a working copy and displays the changes
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Get the current revision of a repository svn_revision() { svn info $@ | awk '/^Revision:/ {print $2}' } # Does an svn up and then displays the changelog between your previous # version and what you just updated to. svn_up_and_log() { local old_revision=`svn_revision $@` local first_update=$((${old_revision} + 1)) svn up -q $@ if [ $(svn_revision $@) -gt ${old_revision} ]; then svn log -v -rHEAD:${first_update} $@ else echo "No changes." fi }
URL: http://woss.name/2007/02/01/display-svn-changelog-on-svn-up/
Comments
