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

Issue 781523002: depot_tools: Send the remote tracked ref to Rietveld via upload.py (Closed)

Created:
6 years ago by rmistry
Modified:
6 years ago
Reviewers:
agable
CC:
chromium-reviews, cmp-cc_chromium.org, Dirk Pranke, iannucci+depot_tools_chromium.org, jrobbins
Project:
tools
Visibility:
Public.

Description

depot_tools: Send the remote tracked ref to Rietveld via upload.py. If your local branch is tracking another local branch then the correct transitively tracked remote ref will still be correctly uploaded to Rietveld. This change goes hand in hand with the corresponding Rietveld change here: https://codereview.chromium.org/773083004/ The motivation for both CLs came from the discussion in the internal CL: https://chromereviews.googleplex.com/115567013/ AFAIK either change can be submitted first without breaking anything in the other framework. Observe the "Tracked Ref" field in the below CLs- Tracking a remote ref: * https://skia-codereview-staging.appspot.com/8861001 (Tracking skiabot-test's refs/heads/master) * https://skia-codereview-staging.appspot.com/851002 (Tracking skiabot-test's refs/diff/test1) * https://skia-codereview-staging.appspot.com/2891001 (Tracking Chromium's refs/heads/master) * https://skia-codereview-staging.appspot.com/1931003 (Tracking Chromium's refs/branch-heads/1916) Tracking a local branch which in turn tracks a remote ref: * https://skia-codereview-staging.appspot.com/3891002 (Transitively tracking skiabot-test's refs/heads/master) * https://skia-codereview-staging.appspot.com/4921001 (Transitively tracking Chromium's refs/branch-heads/1916) CL when no target_ref is specified in depot_tools/third_party/upload.py: * https://skia-codereview-staging.appspot.com/3871003 (CL with missing target_ref should default to /refs/heads/master) Try the above links with and without the 'Deprecated UI' checked in https://skia-codereview-staging.appspot.com/settings BUG=435702 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=293334

Patch Set 1 : Initial upload #

Patch Set 2 : Cleanup I #

Patch Set 3 : Cleanup II #

Patch Set 4 : Cleanup III #

Patch Set 5 : Remove "remotes" #

Patch Set 6 : Translate the remote branch to the true remote ref #

Patch Set 7 : remote_branch -> remote_ref #

Patch Set 8 : remote_ref -> target_ref #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M git_cl.py View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 2 comments Download
M third_party/upload.py View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 3 comments Download

Messages

Total messages: 17 (4 generated)
rmistry
6 years ago (2014-12-04 12:54:25 UTC) #3
rmistry
On 2014/12/04 12:54:25, rmistry wrote: I uploaded a chromium CL using branch-heads: https://skia-codereview-staging.appspot.com/8851001 The remote ...
6 years ago (2014-12-04 13:54:27 UTC) #4
rmistry
On 2014/12/04 13:54:27, rmistry wrote: > On 2014/12/04 12:54:25, rmistry wrote: > > I uploaded ...
6 years ago (2014-12-04 14:07:36 UTC) #5
rmistry
Renamed remote_branch to target_ref in PatchSet8. I also updated the code in git_cl.py to remove ...
6 years ago (2014-12-08 14:45:53 UTC) #6
rmistry
On 2014/12/08 14:45:53, rmistry wrote: > Renamed remote_branch to target_ref in PatchSet8. > > I ...
6 years ago (2014-12-08 15:10:21 UTC) #7
agable
LGTM! https://codereview.chromium.org/781523002/diff/140001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/781523002/diff/140001/git_cl.py#newcode1764 git_cl.py:1764: upload_args.extend(['--target_ref', remote_branch]) So what happens if either remote ...
6 years ago (2014-12-09 20:42:56 UTC) #9
rmistry
https://codereview.chromium.org/781523002/diff/140001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/781523002/diff/140001/git_cl.py#newcode1764 git_cl.py:1764: upload_args.extend(['--target_ref', remote_branch]) On 2014/12/09 20:42:56, agable wrote: > So ...
6 years ago (2014-12-09 20:54:43 UTC) #10
agable
https://codereview.chromium.org/781523002/diff/140001/third_party/upload.py File third_party/upload.py (right): https://codereview.chromium.org/781523002/diff/140001/third_party/upload.py#newcode653 third_party/upload.py:653: group.add_option("--target_ref", action="store", dest="target_ref", On 2014/12/09 20:54:43, rmistry wrote: > ...
6 years ago (2014-12-09 23:36:33 UTC) #11
rmistry
On 2014/12/09 23:36:33, agable wrote: > https://codereview.chromium.org/781523002/diff/140001/third_party/upload.py > File third_party/upload.py (right): > > https://codereview.chromium.org/781523002/diff/140001/third_party/upload.py#newcode653 > ...
6 years ago (2014-12-10 12:36:20 UTC) #12
agable
SGTM
6 years ago (2014-12-10 19:14:04 UTC) #13
rmistry
On 2014/12/10 19:14:04, agable wrote: > SGTM Now that the Rietveld change in https://codereview.chromium.org/773083004/ is ...
6 years ago (2014-12-10 20:55:51 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/781523002/140001
6 years ago (2014-12-10 20:56:23 UTC) #16
commit-bot: I haz the power
6 years ago (2014-12-10 20:58:25 UTC) #17
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=293334

Powered by Google App Engine
This is Rietveld 408576698