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

Unified Diff: scripts/master/chromium_step.py

Issue 12221058: Allow trybot changes to run against WebKit@HEAD. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: scripts/master/chromium_step.py
===================================================================
--- scripts/master/chromium_step.py (revision 181366)
+++ scripts/master/chromium_step.py (working copy)
@@ -101,13 +101,18 @@
def startVC(self, branch, revision, patch):
warnings = []
args = copy.copy(self.args)
- wk_revision = revision
M-A Ruel 2013/02/08 19:36:40 Why are you ditching revision? Won't this break ca
tony 2013/02/08 19:50:33 No, this value was never used. The code in the tr
+ wk_revision = None
try:
# parent_wk_revision might be set, but empty.
if self.getProperty('parent_wk_revision'):
wk_revision = self.getProperty('parent_wk_revision')
except KeyError:
pass
+ if patch:
+ match = re.search(r'third_party/WebKit@(\w+)', patch[1])
+ if match:
+ wk_revision = match.group(1)
+
nacl_revision = revision
M-A Ruel 2013/02/08 19:36:40 In particular, this doesn't get changed.
tony 2013/02/08 19:50:33 I suspect this is only used by some builder/tester
try:
# parent_nacl_revision might be set, but empty.
@@ -125,9 +130,13 @@
args['revision'] = revision
args['branch'] = branch
if args.get('gclient_spec'):
+ if wk_revision:
+ args['gclient_spec'] = args['gclient_spec'].replace(
+ '$$WK_REV$$', str(wk_revision))
+ else:
+ args['gclient_spec'] = args['gclient_spec'].replace(
+ ',"webkit_revision":"$$WK_REV$$"', '')
M-A Ruel 2013/02/08 19:36:40 I'd remove the initial comma, since this assumes a
tony 2013/02/08 19:50:33 If we don't remove the comma, the python dictionar
M-A Ruel 2013/02/11 18:26:57 Don't bother
args['gclient_spec'] = args['gclient_spec'].replace(
- '$$WK_REV$$', str(wk_revision or ''))
- args['gclient_spec'] = args['gclient_spec'].replace(
'$$NACL_REV$$', str(nacl_revision or ''))
if patch:
args['patch'] = patch
« no previous file with comments | « no previous file | scripts/master/factory/chromium_factory.py » ('j') | scripts/master/factory/chromium_factory.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698