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

Issue 2259043002: git cl: cleanup branch config get/set/unset. (Closed)

Created:
4 years, 4 months ago by tandrii(chromium)
Modified:
4 years, 4 months ago
Reviewers:
agable, martiniss
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org, tandrii+omg_git_cl_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

git cl: cleanup branch config get/set/unset. Previously there was a soup with add-hoc formatting with current branch name, which wasn't always set (see bug 611020). This CL makes sure all such operations now: * properly use types --int and --bool * go through the *only* appropriate get/set/unset function. Furthermore, tests were a mess wrt to raising exceptions when git processes terminated with an exception. This CL cleaned up, though I didn't go through all expectations, so some returns of empty stdout instead of raising CalledProcess error are likely remaining. Disclaimer: this CL is not necessarily fixing the referenced bug below, but it should at least provide better stacktrace when the bug manifestst itself. BUG=611020 R=agable@chromium.org Committed: https://chromium.googlesource.com/chromium/tools/depot_tools/+/5d48c32f3d75691589c371266152b00aab355602

Patch Set 1 : git cl: cleanup branch config get/set/unset. #

Total comments: 8

Patch Set 2 : Review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -225 lines) Patch
M git_cl.py View 1 19 chunks +170 lines, -138 lines 0 comments Download
M tests/git_cl_test.py View 35 chunks +90 lines, -87 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
tandrii(chromium)
4 years, 4 months ago (2016-08-18 20:23:42 UTC) #1
tandrii(chromium)
PTAL This is a bit of a horror CL, but I'm fed up burning hours ...
4 years, 4 months ago (2016-08-18 20:25:08 UTC) #5
agable
This is a really nice cleanup. Just a few comments. https://codereview.chromium.org/2259043002/diff/20001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/2259043002/diff/20001/git_cl.py#newcode161 ...
4 years, 4 months ago (2016-08-18 20:47:54 UTC) #8
tandrii(chromium)
https://codereview.chromium.org/2259043002/diff/20001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/2259043002/diff/20001/git_cl.py#newcode161 git_cl.py:161: assert branch On 2016/08/18 20:47:54, agable wrote: > Have ...
4 years, 4 months ago (2016-08-18 21:24:04 UTC) #10
agable
lgtm
4 years, 4 months ago (2016-08-18 21:34:56 UTC) #14
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/2259043002/40001
4 years, 4 months ago (2016-08-18 22:04:36 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: Recipe Roll Downstream Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/30b882cc4206e810)
4 years, 4 months ago (2016-08-18 22:07:50 UTC) #18
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/2259043002/40001
4 years, 4 months ago (2016-08-18 23:16:24 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 23:19:44 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/tools/depot_tools/+/5d48c32f3d7569...

Powered by Google App Engine
This is Rietveld 408576698