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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py

Issue 2671583002: Revert of Simplify the initialization of Git objects in Host. (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py b/third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py
index 6c6ffd289de89f9c559033e4104926b047726c62..4d2ae5b430a03b2b645d5379eb62f10275c7bdb3 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py
@@ -63,6 +63,7 @@
else:
self._host = Host()
self._port = self._host.port_factory.get(self._options.platform, self._options)
+ self._host.initialize_scm()
self._webkit_base_dir_len = len(self._port.webkit_base())
self._base_path = self._port.perf_tests_dir()
self._timestamp = time.time()
@@ -261,7 +262,7 @@
def _generate_results_dict(self, timestamp, description, platform, builder_name, build_number):
revisions = {}
path = self._port.repository_path()
- git = self._host.scm(path=path)
+ git = self._host.scm_for_path(path)
revision = str(git.commit_position(path))
revisions['chromium'] = {'revision': revision, 'timestamp': git.timestamp_of_revision(path, revision)}

Powered by Google App Engine
This is Rietveld 408576698