From 1c938f3e390c95f3f41e4d393272b3164820042b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 23 Apr 2011 21:00:40 +0200 Subject: [PATCH] Output current rev in informational message. --- plugins/svn/svn.plugin.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/svn/svn.plugin.zsh b/plugins/svn/svn.plugin.zsh index 5127eda7c..c6e599f9d 100644 --- a/plugins/svn/svn.plugin.zsh +++ b/plugins/svn/svn.plugin.zsh @@ -78,6 +78,7 @@ function svnsafeup() { } | 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 [[ $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 }