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

Issue 2663623003: Simplify the initialization of Git objects in Host. (Closed)

Created:
3 years, 10 months ago by qyearsley
Modified:
3 years, 10 months ago
Reviewers:
jeffcarp
CC:
blink-reviews, blink-reviews-style_chromium.org, blink-reviews-w3ctests_chromium.org, chromium-reviews, Dirk Pranke, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify the initialization of Git objects in Host. This CL makes calling Host.initialize_scm() unnecessary by making it so that the Git object is initialized when required. It also merges scm() and scm_for_path(), and moves initialization logic into the Git class. BUG=676012 Review-Url: https://codereview.chromium.org/2663623003 Cr-Commit-Position: refs/heads/master@{#447582} Committed: https://chromium.googlesource.com/chromium/src/+/7091f37e5b763d57e4752a4e69cf46719b8ea1c4

Patch Set 1 #

Total comments: 6

Patch Set 2 : Respond to feedback #

Total comments: 3

Patch Set 3 : Remove second paragraph in comment about awesome windows git hack #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -85 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py View 1 2 1 chunk +30 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git_mock.py View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/host.py View 2 chunks +6 lines, -56 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py View 3 chunks +4 lines, -15 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_run_results_unittest.py View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py View 1 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/test_expectations.py View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/style/main.py View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/bot/commit_announcer.py View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_server.py View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/tool/webkit_patch.py View 1 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_expectations_updater.py View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 18 (9 generated)
qyearsley
3 years, 10 months ago (2017-01-28 21:52:48 UTC) #4
jeffcarp
https://codereview.chromium.org/2663623003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py File third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py (right): https://codereview.chromium.org/2663623003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py#newcode84 third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py:84: # We hack the git.bat name into the SVN ...
3 years, 10 months ago (2017-01-31 22:24:56 UTC) #7
qyearsley
https://codereview.chromium.org/2663623003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py File third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py (right): https://codereview.chromium.org/2663623003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py#newcode84 third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py:84: # We hack the git.bat name into the SVN ...
3 years, 10 months ago (2017-02-01 00:58:48 UTC) #8
jeffcarp
Thanks for updating, lgtm with one knit https://codereview.chromium.org/2663623003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py File third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py (right): https://codereview.chromium.org/2663623003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py#newcode84 third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py:84: # we ...
3 years, 10 months ago (2017-02-01 17:27:03 UTC) #9
qyearsley
https://codereview.chromium.org/2663623003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py File third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py (right): https://codereview.chromium.org/2663623003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py#newcode84 third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py:84: # we set the executable name on a class ...
3 years, 10 months ago (2017-02-01 17:46:13 UTC) #10
jeffcarp
https://codereview.chromium.org/2663623003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py File third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py (right): https://codereview.chromium.org/2663623003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py#newcode84 third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/git.py:84: # we set the executable name on a class ...
3 years, 10 months ago (2017-02-01 18:27:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2663623003/40001
3 years, 10 months ago (2017-02-01 18:31:01 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/7091f37e5b763d57e4752a4e69cf46719b8ea1c4
3 years, 10 months ago (2017-02-01 19:45:11 UTC) #17
lushnikov
3 years, 10 months ago (2017-02-02 00:08:22 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2671583002/ by lushnikov@chromium.org.

The reason for reverting is: Speculative revert. This might be the cause of
build flakiness, see crbug.com/687707.

Powered by Google App Engine
This is Rietveld 408576698