Output current rev in informational message.

This commit is contained in:
Daniel Hahler 2011-04-23 21:00:40 +02:00
commit 1c938f3e39

View file

@ -78,6 +78,7 @@ function svnsafeup() {
} | view -c 'set foldnestmax=2 foldlevel=0 shiftwidth=2 foldmethod=indent' - } | view -c 'set foldnestmax=2 foldlevel=0 shiftwidth=2 foldmethod=indent' -
read "answer?continue to 'svn up'? (ctrl-c to abort, y to continue) " || return 1 read "answer?continue to 'svn up'? (ctrl-c to abort, y to continue) " || return 1
[[ $answer == "y" ]] || return 1 [[ $answer == "y" ]] || return 1
echo "Updating from $from to $to.." currev="$(svn info | grep '^Revision:' | cut -f2 -d\ )"
echo "Updating from revision $currev to $to.."
svn up -r $to svn up -r $to
} }