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

Issue 967453004: Stop defaulting unrecognized branches to master except for handful of special refs (Closed)

Created:
5 years, 9 months ago by rmistry
Modified:
5 years, 9 months ago
Reviewers:
agable
CC:
chromium-reviews, cmp-cc_chromium.org, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Project:
tools
Visibility:
Public.

Description

Stop defaulting unrecognized branches to master except for handful of special refs. Context: In https://codereview.chromium.org/781523002/ I added the ability for target_ref to be set to any branch name. Eg: For Skia a ref of 'refs/remotes/origin/chrome/m42' would be correctly set to 'refs/heads/chrome/m42'. But in https://codereview.chromium.org/822503005/ this was changed to treat any branch that did not start with 'refs/remotes/branch-heads' or 'refs/remotes/origin/refs' to be 'refs/remotes/origin/master'. This makes it very chromium specific, there are plenty of other projects that use depot_tools that does not work like this. For Skia 'refs/remotes/origin/chrome/m42' would now change to 'refs/remotes/origin/master' which is wrong. The default behavior should be to preserve the original ref not to override it to master. I handled 'lkgr' and 'lkcr' as special cases in this CL because many developers track it and would like it to land in master by default. BUG=chromium:463109 NOPRESUBMIT=true Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=294303

Patch Set 1 : Initial upload #

Total comments: 2

Patch Set 2 : Create an alias map #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -4 lines) Patch
M git_cl.py View 1 2 chunks +7 lines, -4 lines 0 comments Download
M tests/git_cl_test.py View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
rmistry
5 years, 9 months ago (2015-03-02 14:29:31 UTC) #2
agable
LGTM modulo thinking about my comment. https://codereview.chromium.org/967453004/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/967453004/diff/1/git_cl.py#newcode59 git_cl.py:59: REFS_THAT_DEFAULT_TO_MASTER = ('refs/remotes/origin/lkgr', ...
5 years, 9 months ago (2015-03-02 23:11:34 UTC) #3
rmistry
https://codereview.chromium.org/967453004/diff/1/git_cl.py File git_cl.py (right): https://codereview.chromium.org/967453004/diff/1/git_cl.py#newcode59 git_cl.py:59: REFS_THAT_DEFAULT_TO_MASTER = ('refs/remotes/origin/lkgr', On 2015/03/02 23:11:34, agable wrote: > ...
5 years, 9 months ago (2015-03-03 12:26:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/967453004/40001
5 years, 9 months ago (2015-03-03 12:29:24 UTC) #8
commit-bot: I haz the power
Presubmit check for 967453004-40001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 9 months ago (2015-03-03 12:32:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/967453004/40001
5 years, 9 months ago (2015-03-03 12:35:06 UTC) #12
commit-bot: I haz the power
Presubmit check for 967453004-40001 failed and returned exit status 1. Running presubmit commit checks ...
5 years, 9 months ago (2015-03-03 12:38:04 UTC) #14
rmistry
These presubmit errors seem unrelated. Landing manually.
5 years, 9 months ago (2015-03-03 12:39:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/967453004/40001
5 years, 9 months ago (2015-03-03 12:47:53 UTC) #17
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 12:48:09 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=294303

Powered by Google App Engine
This is Rietveld 408576698