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

Side by Side Diff: infra/bots/recipe_modules/core/api.py

Issue 2263323002: Apply gerrit ref if it is a Gerrit patch (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Cleanup Created 4 years, 3 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 5
6 # pylint: disable=W0201 6 # pylint: disable=W0201
7 7
8 8
9 import json 9 import json
10 import os 10 import os
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 cwd=self.m.vars.checkout_root) 133 cwd=self.m.vars.checkout_root)
134 134
135 update_step = self.m.gclient.checkout(gclient_config=gclient_cfg, 135 update_step = self.m.gclient.checkout(gclient_config=gclient_cfg,
136 cwd=self.m.vars.checkout_root, 136 cwd=self.m.vars.checkout_root,
137 revert=False, 137 revert=False,
138 **checkout_kwargs) 138 **checkout_kwargs)
139 139
140 self.m.vars.got_revision = ( 140 self.m.vars.got_revision = (
141 update_step.presentation.properties['got_revision']) 141 update_step.presentation.properties['got_revision'])
142 self.m.tryserver.maybe_apply_issue() 142 self.m.tryserver.maybe_apply_issue()
143 if self.m.properties.get('patch_storage') == 'gerrit':
144 self.m.bot_update.apply_gerrit_ref(
145 root=str(self.m.vars.checkout_root.join('skia')))
143 146
144 if self.m.vars.need_chromium_checkout: 147 if self.m.vars.need_chromium_checkout:
145 self.m.gclient.runhooks(cwd=self.m.vars.checkout_root, 148 self.m.gclient.runhooks(cwd=self.m.vars.checkout_root,
146 env=self.m.vars.gclient_env) 149 env=self.m.vars.gclient_env)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698