From 9d72d2b9e0591ebb4b39ecd669acfece073a08ec Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Fri, 7 Sep 2012 22:23:21 +0000 Subject: [PATCH] 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 --- apply_issue.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apply_issue.py b/apply_issue.py index 22018742d..bcaa6f267 100755 --- a/apply_issue.py +++ b/apply_issue.py @@ -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)