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

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: We dont' actually want to run on chromium.linux yet 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/chromium_commands.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..ce5fa121405ef77d2acffeef2dd3608df63fca5a 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. This means "bot update" ran and acquired'
+ print 'a git checkout already. Skipping this step.'
agable 2014/02/07 04:47:40 See comment about phrasing in chromium_utils.
Ryan Tseng 2014/02/07 21:23:07 Done.
+ 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/chromium_commands.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