Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Unified Diff: update_depot_tools

Issue 6691001: Add a message to the screen when depot tools have been updated.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_depot_tools
===================================================================
--- update_depot_tools (revision 77978)
+++ update_depot_tools (working copy)
@@ -38,6 +38,10 @@
fi
}
+# Get the current SVN revision.
+get_svn_revision() {
+ echo `svn info | awk '{ if ($1 == "Revision:") { print $2 }}'`
+}
# Update git checkouts prior the cygwin check, we don't want to use msysgit.
if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/.git" ]
@@ -57,5 +61,10 @@
then
# Update the bootstrap directory to stay up-to-date with the latest
# depot_tools.
+ BEFORE_REVISION=$(get_svn_revision)
svn -q up "$base_dir"
+ AFTER_REVISION=$(get_svn_revision)
+ if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then
M-A Ruel 2011/03/14 00:42:48 you could use? if [ ! "$BEFORE_REVISION"=="$AFTER
+ echo "Depot Tools has been updated to revision $AFTER_REVISION."
+ fi
fi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698