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

Unified Diff: scripts/slave/gclient_safe_revert.py

Issue 157073002: Bot update! (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Chromium commands fix Created 6 years, 10 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
« scripts/slave/bot_update.py ('K') | « scripts/slave/chromium_commands.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/gclient_safe_revert.py
diff --git a/scripts/slave/gclient_safe_revert.py b/scripts/slave/gclient_safe_revert.py
index ff1f570dd26af0b24c7fcdeaa7676071e6ba607b..fd71ad6982270cf9b1c55905bbe29ea31c7cc64c 100755
--- a/scripts/slave/gclient_safe_revert.py
+++ b/scripts/slave/gclient_safe_revert.py
@@ -27,6 +27,11 @@ def main():
print 'Path %s isn\'t a directory, not running gclient.' % build_directory
return 0
+ if os.path.isfile(os.path.join(build_directory, 'update.flag')):
+ print 'update.flag file found: bot_update has run and checkout is already '
+ print 'in a consistent state. No actions will be performed in this step.'
+ return 0
+
gclient_config = os.path.join(build_directory, '.gclient')
if not os.path.exists(gclient_config):
print ('%s doesn\'t exist, not a gclient-controlled checkout.' %
« scripts/slave/bot_update.py ('K') | « scripts/slave/chromium_commands.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698