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

Issue 200023004: Add a --squash option to Gerrit uploads. (Closed)

Created:
6 years, 9 months ago by Bernhard Bauer
Modified:
5 years, 10 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add a --squash option to Gerrit uploads. This makes uploading to Gerrit with `git cl` more similar to uploading to Rietveld, by uploading a squashed commit containing the diff to the newest common ancestor. Uploaded commits are stored in refs/heads/git_cl_uploads/<branch> (and their commit message is used for the squash commit), which allows amending the commit message to change it on the uploaded CL, and looking through the reflog to find old uploaded versions. BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=294077

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : tests #

Total comments: 6

Patch Set 4 : review #

Total comments: 2

Patch Set 5 : review #

Total comments: 2

Patch Set 6 : argh #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -15 lines) Patch
M git_cl.py View 1 2 3 4 5 8 chunks +79 lines, -9 lines 1 comment Download
M tests/git_cl_test.py View 1 2 5 chunks +42 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Bernhard Bauer
Please review!
5 years, 10 months ago (2015-02-13 14:52:33 UTC) #2
M-A Ruel
https://codereview.chromium.org/200023004/diff/50001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/200023004/diff/50001/git_cl.py#newcode115 git_cl.py:115: 2 lines https://codereview.chromium.org/200023004/diff/50001/git_cl.py#newcode117 git_cl.py:117: """Returns stdout, supresses stderr and ...
5 years, 10 months ago (2015-02-13 16:19:27 UTC) #3
Bernhard Bauer
Thanks for the review! https://codereview.chromium.org/200023004/diff/50001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/200023004/diff/50001/git_cl.py#newcode115 git_cl.py:115: On 2015/02/13 16:19:27, M-A Ruel ...
5 years, 10 months ago (2015-02-13 17:08:11 UTC) #4
Marc-Antoine Ruel (Google)
https://codereview.chromium.org/200023004/diff/70001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/200023004/diff/70001/git_cl.py#newcode1678 git_cl.py:1678: os.close(file_handle) You need to close the handle before calling ...
5 years, 10 months ago (2015-02-13 17:32:13 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/200023004/diff/70001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/200023004/diff/70001/git_cl.py#newcode1678 git_cl.py:1678: os.close(file_handle) On 2015/02/13 17:32:13, Marc-Antoine Ruel (Google) wrote: > ...
5 years, 10 months ago (2015-02-13 18:51:48 UTC) #7
M-A Ruel
https://codereview.chromium.org/200023004/diff/90001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/200023004/diff/90001/git_cl.py#newcode1675 git_cl.py:1675: os.close(file_handle) No, really after 1671, as on Windows, the ...
5 years, 10 months ago (2015-02-13 18:53:55 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/200023004/diff/90001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/200023004/diff/90001/git_cl.py#newcode1675 git_cl.py:1675: os.close(file_handle) On 2015/02/13 18:53:55, M-A Ruel wrote: > No, ...
5 years, 10 months ago (2015-02-13 19:00:52 UTC) #9
M-A Ruel
lgtm https://codereview.chromium.org/200023004/diff/110001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/200023004/diff/110001/git_cl.py#newcode1667 git_cl.py:1667: file_handle, msg_file = tempfile.mkstemp(text=True, BTW, I never used ...
5 years, 10 months ago (2015-02-13 19:03:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/200023004/110001
5 years, 10 months ago (2015-02-16 10:42:22 UTC) #12
commit-bot: I haz the power
5 years, 10 months ago (2015-02-16 10:45:41 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 (id:110001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=294077

Powered by Google App Engine
This is Rietveld 408576698