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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/deps_updater.py

Issue 2016953002: update-w3c-deps: Do not rewrite links to /resources and /common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Pull latest revisions of a W3C test repo and make a local commit.""" 5 """Pull latest revisions of a W3C test repo and make a local commit."""
6 6
7 import argparse 7 import argparse
8 import re 8 import re
9 9
10 from webkitpy.common.webkit_finder import WebKitFinder 10 from webkitpy.common.webkit_finder import WebKitFinder
(...skipping 22 matching lines...) Expand all
33 33
34 self.print_('## Noting the current Chromium commit.') 34 self.print_('## Noting the current Chromium commit.')
35 _, show_ref_output = self.run(['git', 'show-ref', 'HEAD']) 35 _, show_ref_output = self.run(['git', 'show-ref', 'HEAD'])
36 chromium_commitish = show_ref_output.split()[0] 36 chromium_commitish = show_ref_output.split()[0]
37 37
38 if self.target == 'wpt': 38 if self.target == 'wpt':
39 import_commitish = self.update( 39 import_commitish = self.update(
40 WPT_DEST_NAME, 40 WPT_DEST_NAME,
41 'https://chromium.googlesource.com/external/w3c/web-platform-tes ts.git') 41 'https://chromium.googlesource.com/external/w3c/web-platform-tes ts.git')
42 42
43 for resource in ['testharnessreport.js', 'vendor-prefix.js']: 43 for resource in ['testharnessreport.js', 'WebIDLParser.js']:
qyearsley 2016/05/27 00:19:36 Has vendor-prefix.js been renamed to WebIDLParser.
tkent 2016/05/27 00:29:06 No. * We don't need to copy verndor-prefix.js beca
44 source = self.path_from_webkit_base('LayoutTests', 'resources', resource) 44 source = self.path_from_webkit_base('LayoutTests', 'resources', resource)
45 destination = self.path_from_webkit_base('LayoutTests', 'importe d', WPT_DEST_NAME, 'resources', resource) 45 destination = self.path_from_webkit_base('LayoutTests', 'importe d', WPT_DEST_NAME, 'resources', resource)
46 self.copyfile(source, destination) 46 self.copyfile(source, destination)
47 self.run(['git', 'add', destination]) 47 self.run(['git', 'add', destination])
48 48
49 elif self.target == 'css': 49 elif self.target == 'css':
50 import_commitish = self.update( 50 import_commitish = self.update(
51 CSS_DEST_NAME, 51 CSS_DEST_NAME,
52 'https://chromium.googlesource.com/external/w3c/csswg-test.git') 52 'https://chromium.googlesource.com/external/w3c/csswg-test.git')
53 else: 53 else:
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 dest = self.path_from_webkit_base(*comps) 209 dest = self.path_from_webkit_base(*comps)
210 if self.verbose: 210 if self.verbose:
211 self.print_('rm -fr %s' % dest) 211 self.print_('rm -fr %s' % dest)
212 self.fs.rmtree(dest) 212 self.fs.rmtree(dest)
213 213
214 def path_from_webkit_base(self, *comps): 214 def path_from_webkit_base(self, *comps):
215 return self.finder.path_from_webkit_base(*comps) 215 return self.finder.path_from_webkit_base(*comps)
216 216
217 def print_(self, msg): 217 def print_(self, msg):
218 self.host.print_(msg) 218 self.host.print_(msg)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698