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

Unified Diff: gclient.py

Issue 11308115: Add env variable in gclient recurse with repo path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: change to GCLIENT_DEP_PATH and added doc Created 8 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
diff --git a/gclient.py b/gclient.py
index 48ac3a7f01002c98d4554801e8b8b78614c66818..a8dcf236198a83a936131b4eb5c9f430c613f1c6 100644
--- a/gclient.py
+++ b/gclient.py
@@ -641,6 +641,7 @@ class Dependency(gclient_utils.WorkItem, DependencySettings):
env['GCLIENT_SCM'] = scm
if parsed_url:
env['GCLIENT_URL'] = parsed_url
+ env['GCLIENT_DEP_PATH'] = self.name
if options.prepend_dir:
print_stdout = False
def filter_fn(line):
@@ -1256,6 +1257,8 @@ def CMDrecurse(parser, args):
"""Operates on all the entries.
Runs a shell command on all entries.
+ Sets GCLIENT_DEP_PATH enviroment variable as the dep's relative location to
+ root directory of the checkout.
"""
# Stop parsing at the first non-arg so that these go through to the command
parser.disable_interspersed_args()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698