libv8 5.1.281.59.1 → 5.2.361.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -7
- data/CHANGELOG.md +9 -1
- data/README.md +41 -23
- data/Rakefile +1 -1
- data/ext/libv8/builder.rb +1 -1
- data/ext/libv8/compiler/apple_llvm.rb +5 -4
- data/ext/libv8/compiler/clang.rb +5 -4
- data/ext/libv8/compiler/gcc.rb +5 -4
- data/ext/libv8/compiler/generic_compiler.rb +11 -1
- data/lib/libv8/version.rb +1 -1
- data/patches/0001-Build-a-standalone-static-library.patch +26 -0
- data/patches/{0002-Disable-building-tests.patch → 0002-Don-t-compile-unnecessary-stuff.patch} +31 -34
- data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +10 -10
- data/patches/0004-Reinterpret-thread-hash-for-FreeBSD-too.patch +25 -0
- data/release/armhf-linux/Vagrantfile +95 -0
- data/release/armhf-linux/initrd.img +0 -0
- data/release/armhf-linux/vmlinuz +0 -0
- data/release/{x86_64-freebsd10 → x86_64-freebsd-10}/Vagrantfile +3 -1
- data/spec/compiler/apple_llvm_spec.rb +10 -3
- data/spec/compiler/clang_spec.rb +7 -0
- data/spec/compiler_spec.rb +1 -1
- data/spec/support/compiler_helpers.rb +3 -1
- data/vendor/depot_tools/{README → README.md} +33 -12
- data/vendor/depot_tools/checkout.py +7 -2
- data/vendor/depot_tools/cit.py +51 -13
- data/vendor/depot_tools/cpplint.py +27 -5
- data/vendor/depot_tools/git_cl.py +370 -290
- data/vendor/depot_tools/git_common.py +133 -28
- data/vendor/depot_tools/git_drover.py +29 -2
- data/vendor/depot_tools/git_map.py +2 -2
- data/vendor/depot_tools/git_map_branches.py +9 -5
- data/vendor/depot_tools/git_rebase_update.py +3 -3
- data/vendor/depot_tools/git_upstream_diff.py +1 -1
- data/vendor/depot_tools/infra/config/OWNERS +1 -0
- data/vendor/depot_tools/infra/config/cq.cfg +8 -3
- data/vendor/depot_tools/infra/config/recipes.cfg +1 -1
- data/vendor/depot_tools/man/html/depot_tools.html +10 -2
- data/vendor/depot_tools/man/html/depot_tools_tutorial.html +14 -15
- data/vendor/depot_tools/man/html/git-auto-svn.html +2 -2
- data/vendor/depot_tools/man/html/git-cherry-pick-upload.html +2 -11
- data/vendor/depot_tools/man/html/git-drover.html +19 -17
- data/vendor/depot_tools/man/html/git-footers.html +2 -2
- data/vendor/depot_tools/man/html/git-freeze.html +17 -4
- data/vendor/depot_tools/man/html/git-hyper-blame.html +2 -2
- data/vendor/depot_tools/man/html/git-map-branches.html +2 -2
- data/vendor/depot_tools/man/html/git-map.html +3 -3
- data/vendor/depot_tools/man/html/git-mark-merge-base.html +2 -2
- data/vendor/depot_tools/man/html/git-nav-downstream.html +7 -7
- data/vendor/depot_tools/man/html/git-nav-upstream.html +4 -4
- data/vendor/depot_tools/man/html/git-new-branch.html +2 -2
- data/vendor/depot_tools/man/html/git-rebase-update.html +2 -2
- data/vendor/depot_tools/man/html/git-rename-branch.html +2 -2
- data/vendor/depot_tools/man/html/git-reparent-branch.html +2 -2
- data/vendor/depot_tools/man/html/git-retry.html +2 -2
- data/vendor/depot_tools/man/html/git-squash-branch.html +4 -4
- data/vendor/depot_tools/man/html/git-thaw.html +2 -2
- data/vendor/depot_tools/man/html/git-upstream-diff.html +2 -2
- data/vendor/depot_tools/man/man1/git-auto-svn.1 +4 -4
- data/vendor/depot_tools/man/man1/git-cherry-pick-upload.1 +5 -14
- data/vendor/depot_tools/man/man1/git-drover.1 +21 -19
- data/vendor/depot_tools/man/man1/git-footers.1 +5 -5
- data/vendor/depot_tools/man/man1/git-freeze.1 +12 -6
- data/vendor/depot_tools/man/man1/git-hyper-blame.1 +4 -4
- data/vendor/depot_tools/man/man1/git-map-branches.1 +5 -7
- data/vendor/depot_tools/man/man1/git-map.1 +5 -5
- data/vendor/depot_tools/man/man1/git-mark-merge-base.1 +4 -4
- data/vendor/depot_tools/man/man1/git-nav-downstream.1 +9 -9
- data/vendor/depot_tools/man/man1/git-nav-upstream.1 +6 -6
- data/vendor/depot_tools/man/man1/git-new-branch.1 +4 -4
- data/vendor/depot_tools/man/man1/git-rebase-update.1 +4 -4
- data/vendor/depot_tools/man/man1/git-rename-branch.1 +4 -4
- data/vendor/depot_tools/man/man1/git-reparent-branch.1 +4 -4
- data/vendor/depot_tools/man/man1/git-retry.1 +4 -4
- data/vendor/depot_tools/man/man1/git-squash-branch.1 +6 -6
- data/vendor/depot_tools/man/man1/git-thaw.1 +4 -4
- data/vendor/depot_tools/man/man1/git-upstream-diff.1 +4 -4
- data/vendor/depot_tools/man/man7/depot_tools.7 +9 -4
- data/vendor/depot_tools/man/man7/depot_tools_tutorial.7 +14 -15
- data/vendor/depot_tools/man/src/depot_tools_tutorial.txt +1 -2
- data/vendor/depot_tools/man/src/git-freeze.txt +15 -0
- data/vendor/depot_tools/man/src/make_docs.sh +4 -4
- data/vendor/depot_tools/owners.py +50 -46
- data/vendor/depot_tools/owners_finder.py +6 -19
- data/vendor/depot_tools/presubmit_canned_checks.py +2 -1
- data/vendor/depot_tools/presubmit_support.py +8 -10
- data/vendor/depot_tools/recipe_modules/bot_update/api.py +69 -55
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail.json +1 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +1 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +1 -0
- data/vendor/depot_tools/recipe_modules/bot_update/resources/bot_update.py +2 -0
- data/vendor/depot_tools/recipe_modules/gclient/api.py +0 -17
- data/vendor/depot_tools/recipe_modules/gclient/config.py +9 -8
- data/vendor/depot_tools/recipe_modules/gclient/example.py +1 -1
- data/vendor/depot_tools/recipe_modules/git/api.py +20 -4
- data/vendor/depot_tools/recipe_modules/git/example.expected/can_fail_build.json +1 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output_fails_build.json +1 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/git-cache-checkout.json +189 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/platform_win.json +2 -1
- data/vendor/depot_tools/recipe_modules/git/example.expected/rebase_failed.json +1 -0
- data/vendor/depot_tools/recipe_modules/git/example.py +6 -1
- data/vendor/depot_tools/recipe_modules/git_cl/api.py +13 -0
- data/vendor/depot_tools/recipe_modules/git_cl/example.expected/basic.json +17 -0
- data/vendor/depot_tools/recipe_modules/git_cl/example.py +3 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_linux.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_mac.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_win.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.py +1 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/path_config.py +23 -10
- data/vendor/depot_tools/recipe_modules/tryserver/api.py +5 -3
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_git_patch.json +1 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch.json +1 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch_new.json +1 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_svn_patch.json +1 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch.json +3 -1
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch_new.json +3 -1
- data/vendor/depot_tools/recipes.py +56 -27
- data/vendor/depot_tools/rietveld.py +10 -0
- data/vendor/depot_tools/third_party/httplib2/README.chromium +3 -3
- data/vendor/depot_tools/third_party/httplib2/__init__.py +31 -15
- data/vendor/depot_tools/third_party/upload.py +54 -45
- data/vendor/depot_tools/update_depot_tools +16 -70
- data/vendor/depot_tools/update_depot_tools.bat +4 -18
- data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +10 -6
- metadata +15 -8
- data/patches/0001-Build-standalone-static-library.patch +0 -26
- data/vendor/depot_tools/git_utils/git-tree-prune +0 -122
@@ -0,0 +1,189 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"cmd": [
|
4
|
+
"python",
|
5
|
+
"-u",
|
6
|
+
"RECIPE_MODULE[depot_tools::git]/resources/git_setup.py",
|
7
|
+
"--path",
|
8
|
+
"[SLAVE_BUILD]/src",
|
9
|
+
"--url",
|
10
|
+
"https://chromium.googlesource.com/chromium/src.git"
|
11
|
+
],
|
12
|
+
"name": "git setup"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"cmd": [
|
16
|
+
"git",
|
17
|
+
"retry",
|
18
|
+
"cache",
|
19
|
+
"fetch",
|
20
|
+
"-c",
|
21
|
+
"[GIT_CACHE]"
|
22
|
+
],
|
23
|
+
"cwd": "[SLAVE_BUILD]/src",
|
24
|
+
"name": "fetch cache"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"cmd": [
|
28
|
+
"git",
|
29
|
+
"retry",
|
30
|
+
"fetch",
|
31
|
+
"origin",
|
32
|
+
"master",
|
33
|
+
"--recurse-submodules"
|
34
|
+
],
|
35
|
+
"cwd": "[SLAVE_BUILD]/src",
|
36
|
+
"name": "git fetch"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"cmd": [
|
40
|
+
"git",
|
41
|
+
"checkout",
|
42
|
+
"-f",
|
43
|
+
"FETCH_HEAD"
|
44
|
+
],
|
45
|
+
"cwd": "[SLAVE_BUILD]/src",
|
46
|
+
"name": "git checkout"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"cmd": [
|
50
|
+
"git",
|
51
|
+
"rev-parse",
|
52
|
+
"HEAD"
|
53
|
+
],
|
54
|
+
"cwd": "[SLAVE_BUILD]/src",
|
55
|
+
"name": "read revision",
|
56
|
+
"stdout": "/path/to/tmp/",
|
57
|
+
"~followup_annotations": [
|
58
|
+
"@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@"
|
59
|
+
]
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"cmd": [
|
63
|
+
"git",
|
64
|
+
"clean",
|
65
|
+
"-f",
|
66
|
+
"-d",
|
67
|
+
"-x"
|
68
|
+
],
|
69
|
+
"cwd": "[SLAVE_BUILD]/src",
|
70
|
+
"name": "git clean"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"cmd": [
|
74
|
+
"git",
|
75
|
+
"submodule",
|
76
|
+
"sync"
|
77
|
+
],
|
78
|
+
"cwd": "[SLAVE_BUILD]/src",
|
79
|
+
"name": "submodule sync"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"cmd": [
|
83
|
+
"git",
|
84
|
+
"submodule",
|
85
|
+
"update",
|
86
|
+
"--init",
|
87
|
+
"--recursive"
|
88
|
+
],
|
89
|
+
"cwd": "[SLAVE_BUILD]/src",
|
90
|
+
"name": "submodule update"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"cmd": [
|
94
|
+
"git",
|
95
|
+
"-c",
|
96
|
+
"foo=bar",
|
97
|
+
"count-objects",
|
98
|
+
"-v"
|
99
|
+
],
|
100
|
+
"cwd": "[SLAVE_BUILD]/src",
|
101
|
+
"name": "count-objects",
|
102
|
+
"stdout": "/path/to/tmp/"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"cmd": [
|
106
|
+
"git",
|
107
|
+
"config",
|
108
|
+
"--get",
|
109
|
+
"remote.origin.url"
|
110
|
+
],
|
111
|
+
"cwd": "[SLAVE_BUILD]/src",
|
112
|
+
"name": "git config remote.origin.url",
|
113
|
+
"stdout": "/path/to/tmp/",
|
114
|
+
"~followup_annotations": [
|
115
|
+
"@@@STEP_TEXT@foo@@@"
|
116
|
+
]
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"cmd": [
|
120
|
+
"git",
|
121
|
+
"show",
|
122
|
+
"HEAD",
|
123
|
+
"--format=%at",
|
124
|
+
"-s"
|
125
|
+
],
|
126
|
+
"cwd": "[SLAVE_BUILD]/src",
|
127
|
+
"name": "git show",
|
128
|
+
"stdout": "/path/to/tmp/"
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"cmd": [
|
132
|
+
"git",
|
133
|
+
"fetch",
|
134
|
+
"origin",
|
135
|
+
"--tags"
|
136
|
+
],
|
137
|
+
"cwd": "[SLAVE_BUILD]/src",
|
138
|
+
"name": "git fetch tags"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"cmd": [
|
142
|
+
"git",
|
143
|
+
"status"
|
144
|
+
],
|
145
|
+
"cwd": "[SLAVE_BUILD]/src",
|
146
|
+
"name": "git status"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"cmd": [
|
150
|
+
"git",
|
151
|
+
"status"
|
152
|
+
],
|
153
|
+
"cwd": "[SLAVE_BUILD]/src",
|
154
|
+
"name": "git status can_fail_build"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"cmd": [
|
158
|
+
"git",
|
159
|
+
"status"
|
160
|
+
],
|
161
|
+
"cwd": "[SLAVE_BUILD]/src",
|
162
|
+
"name": "git status cannot_fail_build"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"cmd": [
|
166
|
+
"git",
|
167
|
+
"rebase",
|
168
|
+
"origin/master"
|
169
|
+
],
|
170
|
+
"cwd": "[SLAVE_BUILD]/src",
|
171
|
+
"name": "my repo rebase"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"cmd": [
|
175
|
+
"git",
|
176
|
+
"bundle",
|
177
|
+
"create",
|
178
|
+
"[SLAVE_BUILD]/all.bundle",
|
179
|
+
"--all"
|
180
|
+
],
|
181
|
+
"cwd": "[SLAVE_BUILD]/src",
|
182
|
+
"name": "git bundle"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"name": "$result",
|
186
|
+
"recipe_result": null,
|
187
|
+
"status_code": 0
|
188
|
+
}
|
189
|
+
]
|
@@ -36,7 +36,8 @@ def RunSteps(api):
|
|
36
36
|
remote_name=api.properties.get('remote_name'),
|
37
37
|
display_fetch_size=api.properties.get('display_fetch_size'),
|
38
38
|
file_name=api.properties.get('checkout_file_name'),
|
39
|
-
submodule_update_recursive=submodule_update_recursive
|
39
|
+
submodule_update_recursive=submodule_update_recursive,
|
40
|
+
use_git_cache=api.properties.get('use_git_cache'))
|
40
41
|
|
41
42
|
assert retVal == "deadbeef", (
|
42
43
|
"expected retVal to be %r but was %r" % ("deadbeef", retVal))
|
@@ -145,3 +146,7 @@ def GenTests(api):
|
|
145
146
|
api.step_data('git cat-file abcdef12345:TestFile',
|
146
147
|
stdout=api.raw_io.output('TestOutput')) +
|
147
148
|
api.properties(revision='abcdef12345', cat_file='TestFile'))
|
149
|
+
|
150
|
+
yield (
|
151
|
+
api.test('git-cache-checkout') +
|
152
|
+
api.properties(use_git_cache=True))
|
@@ -4,6 +4,8 @@
|
|
4
4
|
|
5
5
|
from recipe_engine import recipe_api
|
6
6
|
|
7
|
+
import string
|
8
|
+
|
7
9
|
class GitClApi(recipe_api.RecipeApi):
|
8
10
|
def __call__(self, subcmd, args, name=None, **kwargs):
|
9
11
|
if not name:
|
@@ -39,3 +41,14 @@ class GitClApi(recipe_api.RecipeApi):
|
|
39
41
|
'description', args, stdout=self.m.raw_io.output(),
|
40
42
|
stdin=self.m.raw_io.input(data=description),
|
41
43
|
name='git_cl set description', **kwargs)
|
44
|
+
|
45
|
+
def upload(self, message, upload_args=None, **kwargs):
|
46
|
+
upload_args = upload_args or []
|
47
|
+
|
48
|
+
upload_args.extend(['--message-file', self.m.raw_io.input(message)])
|
49
|
+
|
50
|
+
return self('upload', upload_args, **kwargs)
|
51
|
+
|
52
|
+
def issue(self, **kwargs):
|
53
|
+
return self('issue', [], stdout=self.m.raw_io.output(), **kwargs)
|
54
|
+
|
@@ -1,4 +1,21 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"cmd": [
|
4
|
+
"RECIPE_PACKAGE_REPO[depot_tools]/git_cl.py",
|
5
|
+
"upload",
|
6
|
+
"--message-file",
|
7
|
+
"Do the thing foobar\nNow with emoji: \ud83d\ude04"
|
8
|
+
],
|
9
|
+
"name": "git_cl upload"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"cmd": [
|
13
|
+
"RECIPE_PACKAGE_REPO[depot_tools]/git_cl.py",
|
14
|
+
"issue"
|
15
|
+
],
|
16
|
+
"name": "git_cl issue",
|
17
|
+
"stdout": "/path/to/tmp/"
|
18
|
+
},
|
2
19
|
{
|
3
20
|
"cmd": [
|
4
21
|
"RECIPE_PACKAGE_REPO[depot_tools]/git_cl.py",
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
1
2
|
# Copyright 2016 The Chromium Authors. All rights reserved.
|
2
3
|
# Use of this source code is governed by a BSD-style license that can be
|
3
4
|
# found in the LICENSE file.
|
@@ -14,6 +15,8 @@ DEPS = [
|
|
14
15
|
|
15
16
|
|
16
17
|
def RunSteps(api):
|
18
|
+
api.git_cl.upload(u"Do the thing foobar\nNow with emoji: 😄")
|
19
|
+
api.git_cl.issue()
|
17
20
|
result = api.git_cl.get_description(
|
18
21
|
patch='https://code.review/123', codereview='rietveld', suffix='build')
|
19
22
|
api.git_cl.set_description(
|
@@ -20,7 +20,7 @@ def GenTests(api):
|
|
20
20
|
yield api.test('basic')
|
21
21
|
|
22
22
|
for platform in ('linux', 'mac', 'win'):
|
23
|
-
for path_config in ('buildbot', 'kitchen'):
|
23
|
+
for path_config in ('buildbot', 'kitchen', 'swarmbucket'):
|
24
24
|
yield (
|
25
25
|
api.test('paths_%s_%s' % (path_config, platform)) +
|
26
26
|
api.platform.name(platform) +
|
@@ -30,16 +30,29 @@ def infra_kitchen(c):
|
|
30
30
|
c.base_paths['root'] = c.CURRENT_WORKING_DIR
|
31
31
|
c.base_paths['slave_build'] = c.CURRENT_WORKING_DIR
|
32
32
|
# TODO(phajdan.jr): have one cache dir, let clients append suffixes.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
33
|
+
|
34
|
+
b_dir = c.CURRENT_WORKING_DIR
|
35
|
+
while b_dir and b_dir[-1] != 'b':
|
36
|
+
b_dir = b_dir[:-1]
|
37
|
+
|
38
|
+
if c.PLATFORM in ('linux', 'mac'):
|
39
|
+
c.base_paths['cache'] = ('/', 'b', 'c')
|
40
|
+
c.base_paths['builder_cache'] = c.base_paths['cache'] + ('b',)
|
41
|
+
for path in ('git_cache', 'goma_cache', 'goma_deps_cache'):
|
42
|
+
c.base_paths[path] = c.base_paths['cache'] + (path,)
|
43
|
+
elif b_dir:
|
44
|
+
c.base_paths['cache'] = b_dir + ('c',)
|
45
|
+
c.base_paths['builder_cache'] = c.base_paths['cache'] + ('b',)
|
46
|
+
for path in ('git_cache', 'goma_cache', 'goma_deps_cache'):
|
40
47
|
c.base_paths[path] = c.base_paths['cache'] + (path,)
|
41
|
-
else:
|
42
|
-
c.base_paths['cache'] = c.base_paths['root'] + ('
|
48
|
+
else: # pragma: no cover
|
49
|
+
c.base_paths['cache'] = c.base_paths['root'] + ('c',)
|
50
|
+
c.base_paths['builder_cache'] = c.base_paths['cache'] + ('b',)
|
43
51
|
c.base_paths['git_cache'] = c.base_paths['root'] + ('cache_dir',)
|
44
|
-
for path in ('
|
52
|
+
for path in ('goma_cache', 'goma_deps_cache'):
|
45
53
|
c.base_paths[path] = c.base_paths['cache'] + (path,)
|
54
|
+
|
55
|
+
|
56
|
+
@CONFIG_CTX(includes=['infra_buildbot'])
|
57
|
+
def infra_swarmbucket(c):
|
58
|
+
c.base_paths['git_cache'] = c.base_paths['root'] + ('git_cache',)
|
@@ -149,7 +149,7 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
149
149
|
# Since this method is "maybe", we don't raise an Exception.
|
150
150
|
pass
|
151
151
|
|
152
|
-
def get_files_affected_by_patch(self, patch_root=None):
|
152
|
+
def get_files_affected_by_patch(self, patch_root=None, **kwargs):
|
153
153
|
"""Returns list of paths to files affected by the patch.
|
154
154
|
|
155
155
|
Argument:
|
@@ -166,12 +166,14 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
166
166
|
# removed.
|
167
167
|
if patch_root is None:
|
168
168
|
return self._old_get_files_affected_by_patch()
|
169
|
+
if not kwargs.get('cwd'):
|
170
|
+
kwargs['cwd'] = self.m.path['slave_build'].join(patch_root)
|
169
171
|
step_result = self.m.git('diff', '--cached', '--name-only',
|
170
|
-
cwd=self.m.path['slave_build'].join(patch_root),
|
171
172
|
name='git diff to analyze patch',
|
172
173
|
stdout=self.m.raw_io.output(),
|
173
174
|
step_test_data=lambda:
|
174
|
-
self.m.raw_io.test_api.stream_output('foo.cc')
|
175
|
+
self.m.raw_io.test_api.stream_output('foo.cc'),
|
176
|
+
**kwargs)
|
175
177
|
paths = [self.m.path.join(patch_root, p) for p in
|
176
178
|
step_result.stdout.split()]
|
177
179
|
if self.m.platform.is_win:
|