From 736aefea58538eaa9dc5071cf426385ad2bab3ec Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Tue, 19 Apr 2011 18:01:08 +0000 Subject: [PATCH] Only show "Depot Tools has been updated" messages when the tools are actually updated; show the real last-change revision and not the current HEAD revision. BUG=none TEST=none Review URL: http://codereview.chromium.org/6881049 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@82124 0039d316-1c4b-4281-b951-d872f2087c98 --- update_depot_tools | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update_depot_tools b/update_depot_tools index 85d06b6253..a98e0ff890 100755 --- a/update_depot_tools +++ b/update_depot_tools @@ -44,7 +44,8 @@ function test_git_svn { # Get the current SVN revision. get_svn_revision() { - echo `svn info "$base_dir" | awk '{ if ($1 == "Revision:") { print $2 }}'` + LANGUAGE=C svn info "$base_dir" | \ + awk -F': ' '{ if ($1 == "Last Changed Rev") { print $2 }}' } # Update git checkouts.