Commit 37116245 authored by ilevy@chromium.org's avatar ilevy@chromium.org

Add env variable in gclient recurse with repo path

- This will be used by navabi to have his gclient recurse
  command print the current repo.

R=maruel@chromium.org
BUG=


Review URL: https://chromiumcodereview.appspot.com/11308115

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@169812 0039d316-1c4b-4281-b951-d872f2087c98
parent 4bac4b55
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment