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

Side by Side Diff: appengine/findit/common/git_repository.py

Issue 1950123003: [Findit] Fetch DEPS from buildspec/ instead of trunk for chrome official builds. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Address comments. Created 4 years, 7 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 import base64 5 import base64
6 from datetime import datetime 6 from datetime import datetime
7 from datetime import timedelta 7 from datetime import timedelta
8 import json 8 import json
9 import re 9 import re
10 10
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 changelogs = [] 250 changelogs = []
251 251
252 for revision in revisions: 252 for revision in revisions:
253 changelog = self.GetChangeLog(revision) 253 changelog = self.GetChangeLog(revision)
254 if not changelog: 254 if not changelog:
255 raise Exception('Failed to pull changelog for revision %s' % revision) 255 raise Exception('Failed to pull changelog for revision %s' % revision)
256 256
257 changelogs.append(changelog) 257 changelogs.append(changelog)
258 258
259 return changelogs 259 return changelogs
260
261 def GetRevisionForChromeVersion(self, version):
stgao 2016/05/06 00:15:53 Is this still needed?
Sharu Jiang 2016/05/06 18:35:28 Noop.
262 """Gets the githash revision of a chrome version."""
263 changelog = self.GetChangeLog(version)
264 if not changelog:
265 return None
266
267 return changelog.revision
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698