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

Issue 22794015: Completing implementation of GitCheckout in depot_tools (Closed)

Created:
7 years, 4 months ago by rmistry
Modified:
7 years, 3 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org, skiabot_google.com, cmp
Visibility:
Public.

Description

Completing implementation of GitCheckout in depot_tools. Tested with: * Unit tests have been added and they work. * I also tested end-to-end using a skiabot-test repository in https://skia.googlesource.com/ (it is hidden). CLs I tested with are: ** https://codereview.chromium.org/22797006/ : Add whitespace in file1 ** https://codereview.chromium.org/22815013/ : Remove whitespace from file1 ** https://codereview.chromium.org/22867025/ : Add new files in directories ** https://codereview.chromium.org/22901018/ : Edit file in directory and delete file in directory ** https://codereview.chromium.org/22918014/ : Add, Delete and Modify 3 files ** https://codereview.chromium.org/23360004/ : Add new files in new directories Note: * When committing GitCheckout uses the --author to specify the original author. The author flag takes in 'Firstname Lastname <email_addr>' but we do not know the Firstname and LastName of the original author, which is why the code here parses out the username from the email address and uses it. Eg: For email address xyz@example.com it passes in --author 'xyz <xyz@example.com>' * An example of the changes required in a project to use GitCheckout instead of SvnCheckout is in https://codereview.chromium.org/22859063/ Created to fix the following feature requests- https://code.google.com/p/chromium/issues/detail?id=261619 : Update the Chrome commit queue to push to src.git. https://code.google.com/p/skia/issues/detail?id=1593 : Add Git support to the Commit Queue. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=221392

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 21

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 6

Patch Set 14 : #

Patch Set 15 : #

Total comments: 14

Patch Set 16 : #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -108 lines) Patch
M apply_issue.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M checkout.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +89 lines, -32 lines 0 comments Download
M tests/checkout_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +262 lines, -75 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
rmistry
7 years, 4 months ago (2013-08-23 13:58:12 UTC) #1
rmistry
Hi Chase, Since Robbie is OOO is there anybody else who can take a look ...
7 years, 4 months ago (2013-08-23 13:59:19 UTC) #2
M-A Ruel
A few comments while waiting for Robert to be back. https://codereview.chromium.org/22794015/diff/12001/checkout.py File checkout.py (right): https://codereview.chromium.org/22794015/diff/12001/checkout.py#newcode553 ...
7 years, 4 months ago (2013-08-23 17:05:10 UTC) #3
M-A Ruel
https://codereview.chromium.org/22794015/diff/12001/checkout.py File checkout.py (right): https://codereview.chromium.org/22794015/diff/12001/checkout.py#newcode705 checkout.py:705: self._check_call_git(['commit', '--amend', '-m', commit_message]) You also want '--author', user. ...
7 years, 4 months ago (2013-08-23 17:08:04 UTC) #4
rmistry
https://codereview.chromium.org/22794015/diff/12001/checkout.py File checkout.py (right): https://codereview.chromium.org/22794015/diff/12001/checkout.py#newcode553 checkout.py:553: class GitCheckoutBase(CheckoutBase): On 2013/08/23 17:05:10, M-A Ruel wrote: > ...
7 years, 3 months ago (2013-08-26 13:08:17 UTC) #5
M-A Ruel
https://codereview.chromium.org/22794015/diff/12001/checkout.py File checkout.py (right): https://codereview.chromium.org/22794015/diff/12001/checkout.py#newcode601 checkout.py:601: self._check_call_git(['pull', '--quiet']) On 2013/08/26 13:08:17, rmistry wrote: > On ...
7 years, 3 months ago (2013-08-26 14:01:11 UTC) #6
rmistry
https://codereview.chromium.org/22794015/diff/12001/checkout.py File checkout.py (right): https://codereview.chromium.org/22794015/diff/12001/checkout.py#newcode601 checkout.py:601: self._check_call_git(['pull', '--quiet']) On 2013/08/26 14:01:11, M-A Ruel wrote: > ...
7 years, 3 months ago (2013-08-26 15:16:16 UTC) #7
cmp_google
+agable, xusydoc, ilevy, szager, I'm guessing at least two of them should be able to ...
7 years, 3 months ago (2013-08-26 18:11:32 UTC) #8
rmistry
https://codereview.chromium.org/22794015/diff/12001/checkout.py File checkout.py (right): https://codereview.chromium.org/22794015/diff/12001/checkout.py#newcode705 checkout.py:705: self._check_call_git(['commit', '--amend', '-m', commit_message]) On 2013/08/26 15:16:17, rmistry wrote: ...
7 years, 3 months ago (2013-08-27 12:44:48 UTC) #9
rmistry
Friendly ping for Robbie.
7 years, 3 months ago (2013-08-30 13:33:49 UTC) #10
M-A Ruel
https://codereview.chromium.org/22794015/diff/43001/checkout.py File checkout.py (right): https://codereview.chromium.org/22794015/diff/43001/checkout.py#newcode355 checkout.py:355: unused_revert=False): Keep revert=False for compatibility. Why not: assert not ...
7 years, 3 months ago (2013-09-02 20:35:09 UTC) #11
Isaac (away)
https://codereview.chromium.org/22794015/diff/12001/checkout.py File checkout.py (right): https://codereview.chromium.org/22794015/diff/12001/checkout.py#newcode601 checkout.py:601: self._check_call_git(['pull', '--quiet']) On 2013/08/26 15:16:17, rmistry wrote: > On ...
7 years, 3 months ago (2013-09-02 23:38:57 UTC) #12
rmistry
https://codereview.chromium.org/22794015/diff/12001/checkout.py File checkout.py (right): https://codereview.chromium.org/22794015/diff/12001/checkout.py#newcode601 checkout.py:601: self._check_call_git(['pull', '--quiet']) On 2013/09/02 23:38:58, Isaac wrote: > On ...
7 years, 3 months ago (2013-09-03 12:40:35 UTC) #13
M-A Ruel
looks good, a few optional nits (except the encode one which I'm pretty sure it'll ...
7 years, 3 months ago (2013-09-03 13:10:15 UTC) #14
rmistry
https://codereview.chromium.org/22794015/diff/54001/checkout.py File checkout.py (right): https://codereview.chromium.org/22794015/diff/54001/checkout.py#newcode578 checkout.py:578: logging.info('Checking out %s in %s' % On 2013/09/03 13:10:16, ...
7 years, 3 months ago (2013-09-03 15:46:28 UTC) #15
rmistry
Any other comments from anybody else? I am waiting on this CL for a few ...
7 years, 3 months ago (2013-09-04 14:34:35 UTC) #16
M-A Ruel
lgtm
7 years, 3 months ago (2013-09-04 14:45:06 UTC) #17
rmistry
Thank you for the detailed review M-A. I will submit tomorrow morning if there are ...
7 years, 3 months ago (2013-09-04 17:10:10 UTC) #18
iannucci
Sorry for totally slacking on this review :(. This lgtm.
7 years, 3 months ago (2013-09-04 18:06:40 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmistry@google.com/22794015/68001
7 years, 3 months ago (2013-09-05 11:57:24 UTC) #20
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 11:59:41 UTC) #21
Message was sent while issue was closed.
Change committed as 221392

Powered by Google App Engine
This is Rietveld 408576698