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

Issue 328843005: Consolidated 'git' refish parsing into a class (Closed)

Created:
6 years, 6 months ago by dnj
Modified:
6 years, 5 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Consolidated 'git' refish parsing into a class Created the 'GitRefish' class to centralize 'git' refish parsing and consistent usage by 'gclient' 'git' code. BUG=373504 TEST=localtest R=agable@chromium.org, iannucci@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=281553

Patch Set 1 #

Total comments: 21

Patch Set 2 : Updated from maurel's comments!] #

Total comments: 12

Patch Set 3 : Updated w/ comments #

Total comments: 12

Patch Set 4 : Updated w/ nits, added new case(s) to refish parsing #

Total comments: 2

Patch Set 5 : Updated comment formatting #

Patch Set 6 : Removed legacy code; must have been merged back in during a rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -39 lines) Patch
M gclient.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M gclient_scm.py View 1 2 3 4 5 17 chunks +166 lines, -36 lines 0 comments Download
M tests/gclient_scm_test.py View 1 2 3 3 chunks +139 lines, -1 line 0 comments Download
M tests/gclient_test.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
dnj
PTAL Depends on: https://codereview.chromium.org/327803006/
6 years, 6 months ago (2014-06-10 21:03:59 UTC) #1
dnj
ping (+mmoss, +nodir)
6 years, 6 months ago (2014-06-16 15:38:32 UTC) #2
dnj
+maruel, since he knows 'gclient'.
6 years, 6 months ago (2014-06-16 18:33:38 UTC) #3
dnj
PING (maruel@, I'd like you to be primary reviewer since the others don't have time ...
6 years, 6 months ago (2014-06-23 20:38:56 UTC) #4
M-A Ruel
FTR, I'm not working on depot_tools anymore so I'm looking for someone else to become ...
6 years, 6 months ago (2014-06-24 21:18:12 UTC) #5
dnj
Updated, PTAL! https://codereview.chromium.org/328843005/diff/1/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/328843005/diff/1/gclient_scm.py#newcode235 gclient_scm.py:235: # The initial string that the parsed ...
6 years, 6 months ago (2014-06-24 22:10:50 UTC) #6
M-A Ruel
https://codereview.chromium.org/328843005/diff/1/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/328843005/diff/1/gclient_scm.py#newcode455 gclient_scm.py:455: default_rev = 'refs/remotes/%s/master' % (self.remote,) On 2014/06/24 22:10:50, dnj ...
6 years, 6 months ago (2014-06-25 01:24:58 UTC) #7
dnj
https://codereview.chromium.org/328843005/diff/1/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/328843005/diff/1/gclient_scm.py#newcode164 gclient_scm.py:164: # Disable 'unused argument: options' warning | pylint: disable=W0613 ...
6 years, 6 months ago (2014-06-25 01:55:06 UTC) #8
iannucci
On 2014/06/25 01:55:06, dnj wrote: > https://codereview.chromium.org/328843005/diff/1/gclient_scm.py > File gclient_scm.py (right): > > https://codereview.chromium.org/328843005/diff/1/gclient_scm.py#newcode164 > ...
6 years, 6 months ago (2014-06-25 01:58:17 UTC) #9
M-A Ruel
On 2014/06/25 01:58:17, iannucci wrote: > On 2014/06/25 01:55:06, dnj wrote: > > I actually ...
6 years, 6 months ago (2014-06-25 02:02:33 UTC) #10
dnj
Awesome. Would you say it LGTY? :)
6 years, 6 months ago (2014-06-25 19:24:24 UTC) #11
M-A Ruel
On 2014/06/25 19:24:24, dnj wrote: > Awesome. Would you say it LGTY? :) I was ...
6 years, 6 months ago (2014-06-25 19:34:14 UTC) #12
dnj
Sorry about that - I missed round 2. Updated, and thanks again! https://codereview.chromium.org/328843005/diff/20001/gclient_scm.py File gclient_scm.py ...
6 years, 6 months ago (2014-06-25 20:14:02 UTC) #13
M-A Ruel
lgtm with a few nits. https://codereview.chromium.org/328843005/diff/40001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/328843005/diff/40001/gclient_scm.py#newcode270 gclient_scm.py:270: """Parses a ref into ...
6 years, 6 months ago (2014-06-25 20:54:57 UTC) #14
dnj
Updated w/ suggestion and implementation of further parsing. PTAL. https://codereview.chromium.org/328843005/diff/40001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/328843005/diff/40001/gclient_scm.py#newcode270 gclient_scm.py:270: ...
6 years, 6 months ago (2014-06-25 21:48:31 UTC) #15
dnj
Ping - I know I have LGTM but I added some extra logic that I'd ...
6 years, 5 months ago (2014-07-07 16:11:33 UTC) #16
M-A Ruel
lgtm https://codereview.chromium.org/328843005/diff/60001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/328843005/diff/60001/gclient_scm.py#newcode7 gclient_scm.py:7: from __future__ import print_function We ought to remove ...
6 years, 5 months ago (2014-07-07 16:47:07 UTC) #17
dnj
The CQ bit was checked by dnj@chromium.org
6 years, 5 months ago (2014-07-07 16:53:06 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dnj@chromium.org/328843005/80001
6 years, 5 months ago (2014-07-07 16:54:44 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-07 16:56:48 UTC) #20
commit-bot: I haz the power
Presubmit check for 328843005-80001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 5 months ago (2014-07-07 16:56:49 UTC) #21
dnj
The CQ bit was checked by dnj@chromium.org
6 years, 5 months ago (2014-07-07 17:06:02 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dnj@chromium.org/328843005/100001
6 years, 5 months ago (2014-07-07 17:06:55 UTC) #23
commit-bot: I haz the power
Change committed as 281553
6 years, 5 months ago (2014-07-07 17:08:50 UTC) #24
smut
6 years, 5 months ago (2014-07-07 19:31:55 UTC) #25
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/370393002/ by smut@google.com.

The reason for reverting is:
https://code.google.com/p/chromium/issues/detail?id=391871.

Powered by Google App Engine
This is Rietveld 408576698