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

Unified Diff: fetch_configs/infra.py

Issue 1959193002: Fix depot_tools presubmit's local_rietveld script. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: gitignore Created 4 years, 7 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
Index: fetch_configs/infra.py
diff --git a/fetch_configs/infra.py b/fetch_configs/infra.py
index 12e5c9646a766632dffe6dc2fd4378a2bba9366c..29681b21b9c07dffeed2e3f879546ff9b541cacc 100644
--- a/fetch_configs/infra.py
+++ b/fetch_configs/infra.py
@@ -13,7 +13,9 @@ class Infra(config_util.Config):
"""Basic Config class for the Infrastructure repositories."""
@staticmethod
- def fetch_spec(_props):
+ def fetch_spec(props):
+ # This is used by [depot_tools]/testing_support/local_rietveld.py
+ managed = props.get('managed', 'false').lower() == 'true'
return {
'type': 'gclient_git',
'gclient_git_spec': {
@@ -22,7 +24,7 @@ class Infra(config_util.Config):
'name' : 'infra',
'url' : 'https://chromium.googlesource.com/infra/infra.git',
'deps_file': '.DEPS.git',
- 'managed' : False,
+ 'managed' : managed,
}
],
},

Powered by Google App Engine
This is Rietveld 408576698