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
experimental/szager/collated-output
ilevy@chromium.org 12 years ago
parent 4bac4b5517
commit 37116245d1

@ -641,6 +641,7 @@ class Dependency(gclient_utils.WorkItem, DependencySettings):
env['GCLIENT_SCM'] = scm env['GCLIENT_SCM'] = scm
if parsed_url: if parsed_url:
env['GCLIENT_URL'] = parsed_url env['GCLIENT_URL'] = parsed_url
env['GCLIENT_DEP_PATH'] = self.name
if options.prepend_dir: if options.prepend_dir:
print_stdout = False print_stdout = False
def filter_fn(line): def filter_fn(line):
@ -1256,6 +1257,8 @@ def CMDrecurse(parser, args):
"""Operates on all the entries. """Operates on all the entries.
Runs a shell command on all 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 # Stop parsing at the first non-arg so that these go through to the command
parser.disable_interspersed_args() parser.disable_interspersed_args()

Loading…
Cancel
Save