Chromium Code Reviews| Index: build/android/pylib/utils/flakiness_dashboard_results_uploader.py |
| diff --git a/build/android/pylib/utils/flakiness_dashboard_results_uploader.py b/build/android/pylib/utils/flakiness_dashboard_results_uploader.py |
| index 291308ecf3bac94860f24ddaeaee548766966d9d..5eb1da61fcaee8c66fd5151ae95412698630972d 100644 |
| --- a/build/android/pylib/utils/flakiness_dashboard_results_uploader.py |
| +++ b/build/android/pylib/utils/flakiness_dashboard_results_uploader.py |
| @@ -33,6 +33,8 @@ from webkitpy.layout_tests.layout_package import json_results_generator |
| from pylib import cmd_helper |
| from pylib import constants |
|
frankf
2013/04/23 19:06:47
no blank line
|
| +from pylib.utils import repo_utils |
| + |
| # The JSONResultsGenerator gets the filesystem.join operation from the Port |
| # object. Creating a Port object requires specifying information that only |
| @@ -91,21 +93,11 @@ class JSONResultsGenerator(json_results_generator.JSONResultsGeneratorBase): |
| return False |
| return _is_git_directory(parent) |
| - def _get_git_revision(in_directory): |
| - """Returns the git hash tag for the given directory. |
| - |
| - Args: |
| - in_directory: The directory where git is to be run. |
| - """ |
| - command_line = ['git', 'log', '-1', '--pretty=format:%H'] |
| - output = cmd_helper.GetCmdOutput(command_line, cwd=in_directory) |
| - return output[0:40] |
| - |
| in_directory = os.path.join(constants.CHROME_DIR, in_directory) |
| if not os.path.exists(os.path.join(in_directory, '.svn')): |
| if _is_git_directory(in_directory): |
| - return _get_git_revision(in_directory) |
| + return repo_utils.GetGitHeadSHA1(in_directory) |
| else: |
| return '' |