Chromium Code Reviews| Index: apply_issue.py |
| diff --git a/apply_issue.py b/apply_issue.py |
| index 22018742d45a860fa51a3eac9f4cad72da06fe08..a69a726153bd034da02c59497c11dca9052a2278 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,13 @@ def main(): |
| else: |
| parser.error('Couldn\'t determine the scm') |
| + # TODO(maruel): HACK, remove me. |
| + 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() |
|
M-A Ruel
2012/09/07 20:47:48
In this case, the current working directory is the
|
| + |
| # Apply the patch. |
| try: |
| scm_obj.apply_patch(patchset) |