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

Issue 18262002: Misc gclient cleanup (Closed)

Created:
7 years, 5 months ago by Isaac (away)
Modified:
7 years, 5 months ago
Reviewers:
iannucci, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org
Visibility:
Public.

Description

Misc gclient cleanup - Use config --local for properties that should be local. - Remove git fetch retry logic, it should not be necessary with the googlesource hosts. - Include .strip() in GIT.Capture, simplifying other calls. - Safer testing of whether dep revision is a sha. - Fix refs/remotes/ DEPS branch detection Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=209825

Patch Set 1 : #

Patch Set 2 : also fix refs/ detection on DEPS #

Total comments: 10

Patch Set 3 : Improve IsValidRevision logic #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -43 lines) Patch
M gclient_scm.py View 1 2 chunks +4 lines, -21 lines 0 comments Download
M scm.py View 1 2 12 chunks +32 lines, -22 lines 3 comments Download

Messages

Total messages: 11 (0 generated)
Isaac (away)
7 years, 5 months ago (2013-06-29 07:42:21 UTC) #1
Isaac (away)
7 years, 5 months ago (2013-07-01 18:08:42 UTC) #2
Isaac (away)
ping?
7 years, 5 months ago (2013-07-02 04:11:11 UTC) #3
iannucci
https://chromiumcodereview.appspot.com/18262002/diff/5001/gclient_scm.py File gclient_scm.py (left): https://chromiumcodereview.appspot.com/18262002/diff/5001/gclient_scm.py#oldcode415 gclient_scm.py:415: except subprocess2.CalledProcessError, e: So... Why drop all the retries? ...
7 years, 5 months ago (2013-07-02 04:32:01 UTC) #4
Isaac (away)
https://chromiumcodereview.appspot.com/18262002/diff/5001/gclient_scm.py File gclient_scm.py (left): https://chromiumcodereview.appspot.com/18262002/diff/5001/gclient_scm.py#oldcode415 gclient_scm.py:415: except subprocess2.CalledProcessError, e: On 2013/07/02 04:32:02, iannucci wrote: > ...
7 years, 5 months ago (2013-07-02 04:43:50 UTC) #5
iannucci
This basically lgtm (mod nits already up). I'm a bit queasy about so many seemingly-innocuous ...
7 years, 5 months ago (2013-07-02 08:50:48 UTC) #6
Isaac (away)
committing https://chromiumcodereview.appspot.com/18262002/diff/5001/scm.py File scm.py (left): https://chromiumcodereview.appspot.com/18262002/diff/5001/scm.py#oldcode124 scm.py:124: status = GIT.Capture(command, cwd).rstrip() On 2013/07/02 04:32:02, iannucci ...
7 years, 5 months ago (2013-07-03 00:05:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ilevy@chromium.org/18262002/13001
7 years, 5 months ago (2013-07-03 00:07:24 UTC) #8
commit-bot: I haz the power
Change committed as 209825
7 years, 5 months ago (2013-07-03 00:09:13 UTC) #9
M-A Ruel
Only a small nit to make it more case-proof https://chromiumcodereview.appspot.com/18262002/diff/13001/scm.py File scm.py (right): https://chromiumcodereview.appspot.com/18262002/diff/13001/scm.py#newcode460 scm.py:460: ...
7 years, 5 months ago (2013-07-08 18:44:41 UTC) #10
Isaac (away)
7 years, 5 months ago (2013-07-08 20:03:34 UTC) #11
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/18262002/diff/13001/scm.py
File scm.py (right):

https://chromiumcodereview.appspot.com/18262002/diff/13001/scm.py#newcode460
scm.py:460: return rev == sha
On 2013/07/08 18:44:41, Marc-Antoine Ruel wrote:
> what about lower/upper case?
> return rev.lower() == sha.lower()

Good point.  It looks like git always returns lower case characters but I'll add
lower() on git output for safety.  I'll send out a follow up CL.

Powered by Google App Engine
This is Rietveld 408576698