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

Issue 650223005: Refactor source_control.py and add a test. (Closed)

Created:
6 years, 2 months ago by qyearsley
Modified:
6 years, 2 months ago
Reviewers:
prasadv, ojan
CC:
chromium-reviews, RobertoCN, Sergiy Byelozyorov
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Refactor source_control.py and add a test. Originally, Simon made SourceControl a class becaused we expected to add a SvnSourceControl subclass which implemented the same methods in different ways. However, after the git transition we're fairly sure that we don't want to do this. So, all of the functions in the SourceControl class can be made top-level functions that don't need a "self" argument. This way, there's no need to pass around a bogus SourceControl object; the functions can be called directly. I also added tests for some methods that seemed relatively testable. PTAL and give suggestions :-) BUG= Committed: https://crrev.com/880741668d3ed0e08ea2229bb8965998abe775a3 Cr-Commit-Position: refs/heads/master@{#299851}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Remove docstring for SyncToRevision. #

Patch Set 3 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -304 lines) Patch
M tools/auto_bisect/bisect_perf_regression.py View 1 2 25 chunks +41 lines, -49 lines 0 comments Download
M tools/auto_bisect/bisect_perf_regression_test.py View 4 chunks +8 lines, -17 lines 0 comments Download
M tools/auto_bisect/bisect_results.py View 4 chunks +4 lines, -4 lines 0 comments Download
M tools/auto_bisect/source_control.py View 1 2 chunks +203 lines, -234 lines 0 comments Download
A tools/auto_bisect/source_control_test.py View 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
qyearsley
Hey guys, this CL is intended to be just a refactoring and adding of a ...
6 years, 2 months ago (2014-10-14 17:48:35 UTC) #2
ojan
lgtm FYI, I'll be working on this stuff less now. I think this work should ...
6 years, 2 months ago (2014-10-14 22:59:09 UTC) #3
qyearsley
Alright. I mainly added you as a reviewer because you had some suggestions before. In ...
6 years, 2 months ago (2014-10-14 23:14:55 UTC) #4
ojan
On 2014/10/14 at 23:14:55, qyearsley wrote: > Alright. I mainly added you as a reviewer ...
6 years, 2 months ago (2014-10-14 23:26:15 UTC) #5
prasadv
lgtm
6 years, 2 months ago (2014-10-16 00:14:59 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/650223005/40001
6 years, 2 months ago (2014-10-16 05:08:10 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 2 months ago (2014-10-16 05:31:28 UTC) #9
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/880741668d3ed0e08ea2229bb8965998abe775a3 Cr-Commit-Position: refs/heads/master@{#299851}
6 years, 2 months ago (2014-10-16 05:32:17 UTC) #10
prasadv
6 years, 2 months ago (2014-10-20 17:11:33 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/661803003/ by prasadv@chromium.org.

The reason for reverting is: This broke syncing source for dependency repos
while bisecting them, 
http://build.chromium.org/p/tryserver.chromium.perf/builders/android_nexus7_p....

Powered by Google App Engine
This is Rietveld 408576698