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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/common/git_repository.py
diff --git a/appengine/findit/common/git_repository.py b/appengine/findit/common/git_repository.py
index a1fb155b28606fbc067ee7988e9f5548ccb135f2..0d786578238d9353eebb77da7844a3b53af1a618 100644
--- a/appengine/findit/common/git_repository.py
+++ b/appengine/findit/common/git_repository.py
@@ -257,3 +257,11 @@ class GitRepository(Repository):
changelogs.append(changelog)
return changelogs
+
+ def GetRevisionForChromeVersion(self, version):
+ """Gets the githash revision of a chrome version."""
+ changelog = self.GetChangeLog(version)
+ if not changelog:
+ return None
+
+ return changelog.revision

Powered by Google App Engine
This is Rietveld 408576698