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

Unified Diff: scripts/slave/recipe_modules/gclient/config.py

Issue 1209423002: Add support for build_limited subprojects in presubmit builder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Fix Created 5 years, 6 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
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/rietveld/api.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/gclient/config.py
diff --git a/scripts/slave/recipe_modules/gclient/config.py b/scripts/slave/recipe_modules/gclient/config.py
index 114ff6afbf1185a07c36a796031a77282334194f..e715ffe21dae2ba1d3201b05e95e58e39adfbe9f 100644
--- a/scripts/slave/recipe_modules/gclient/config.py
+++ b/scripts/slave/recipe_modules/gclient/config.py
@@ -408,7 +408,14 @@ def build_limited(c):
s = c.solutions.add()
s.name = 'build_limited'
s.url = 'https://chrome-internal.googlesource.com/chrome/tools/build_limited'
+ # In order to run presubmit, we checkout the whole build_limited repository
+ # and build repository next to it. However, the patch in CQ needs to be
+ # applied to one of the subfolders of build_limited only and run_presubmit.py
+ # uses the patch to this directory (from gclient root) to find the property
+ # with checked out revision. Since all these subfolders are the part of a
+ # single repository, we map them to the same property here.
c.got_revision_mapping['build_limited'] = 'got_revision'
+ c.got_revision_mapping['build_limited/scripts/slave'] = 'got_revision'
# We do not use 'includes' here, because we want build_internal to be the
# first solution in the list as run_presubmit computes upstream revision
# from the first solution.
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/rietveld/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698