Commit 9d72d2b9 authored by maruel@chromium.org's avatar maruel@chromium.org

Ensure buildbot knows that the checkout was patched when patching.

R=rogerta@chromium.org
BUG=


Review URL: https://chromiumcodereview.appspot.com/10905160

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@155506 0039d316-1c4b-4281-b951-d872f2087c98
parent 1519240e
......@@ -6,6 +6,7 @@
"""Applies an issue from Rietveld.
"""
import getpass
import logging
import optparse
import os
......@@ -93,6 +94,15 @@ def main():
else:
parser.error('Couldn\'t determine the scm')
# TODO(maruel): HACK, remove me.
# When run a build slave, make sure buildbot knows that the checkout was
# modified.
if options.root_dir == 'src' and getpass.getuser() == 'chrome-bot':
# See sourcedirIsPatched() in:
# http://src.chromium.org/viewvc/chrome/trunk/tools/build/scripts/slave/
# chromium_commands.py?view=markup
open('.buildbot-patched', 'w').close()
# Apply the patch.
try:
scm_obj.apply_patch(patchset)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment