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

Issue 202483008: Assume 'master' when remote branch not specified. (Closed)

Created:
6 years, 9 months ago by agable
Modified:
6 years, 9 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Assume 'master' when remote branch not specified. This prevents apply_patch from attempting to check out a branch tracking 'origin/None'. R=pgervais@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=257763

Patch Set 1 #

Patch Set 2 : Fix apply_issue #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M apply_issue.py View 1 1 chunk +7 lines, -2 lines 0 comments Download
M checkout.py View 1 2 chunks +4 lines, -1 line 2 comments Download

Messages

Total messages: 19 (0 generated)
agable
6 years, 9 months ago (2014-03-18 01:27:38 UTC) #1
pgervais
On 2014/03/18 01:27:38, agable wrote: lgtm, but I do not fully understand the consequences if ...
6 years, 9 months ago (2014-03-18 15:28:23 UTC) #2
agable
The CQ bit was checked by agable@chromium.org
6 years, 9 months ago (2014-03-18 17:15:19 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/202483008/1
6 years, 9 months ago (2014-03-18 17:15:31 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 17:15:35 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 9 months ago (2014-03-18 17:15:37 UTC) #6
agable
On 2014/03/18 17:15:37, I haz the power (commit-bot) wrote: > No LGTM from a valid ...
6 years, 9 months ago (2014-03-18 17:22:12 UTC) #7
pgervais
This patch breaks if there is an existing local 'master' branch (and it's not up-to-date). ...
6 years, 9 months ago (2014-03-18 17:55:06 UTC) #8
M-A Ruel
On 2014/03/18 17:55:06, pgervais wrote: > This patch breaks if there is an existing local ...
6 years, 9 months ago (2014-03-18 19:14:40 UTC) #9
agable
On 2014/03/18 19:14:40, M-A Ruel wrote: > On 2014/03/18 17:55:06, pgervais wrote: > > This ...
6 years, 9 months ago (2014-03-18 20:44:49 UTC) #10
agable
On 2014/03/18 20:44:49, agable wrote: > On 2014/03/18 19:14:40, M-A Ruel wrote: > > On ...
6 years, 9 months ago (2014-03-18 21:18:15 UTC) #11
agable
https://codereview.chromium.org/202483008/diff/20001/checkout.py File checkout.py (right): https://codereview.chromium.org/202483008/diff/20001/checkout.py#newcode630 checkout.py:630: '-t', '%s/%s' % (self.pull_remote, self.remote_branch), Ravi: apply_issue was checking ...
6 years, 9 months ago (2014-03-18 21:19:08 UTC) #12
rmistry
LGTM
6 years, 9 months ago (2014-03-18 21:22:15 UTC) #13
cmp
lgtm
6 years, 9 months ago (2014-03-18 21:24:32 UTC) #14
agable
The CQ bit was checked by agable@chromium.org
6 years, 9 months ago (2014-03-18 21:24:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/202483008/20001
6 years, 9 months ago (2014-03-18 21:25:08 UTC) #16
commit-bot: I haz the power
Change committed as 257763
6 years, 9 months ago (2014-03-18 21:28:04 UTC) #17
Ryan Tseng
This actually broke bot_update on linux_clang (or well, elsewhere too) for cases that a revision ...
6 years, 9 months ago (2014-03-19 01:52:57 UTC) #18
Ryan Tseng
6 years, 9 months ago (2014-03-19 01:54:28 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/202483008/diff/20001/checkout.py
File checkout.py (right):

https://codereview.chromium.org/202483008/diff/20001/checkout.py#newcode626
checkout.py:626: if self.remote_branch:
Maybe "if self.remote_branch and not self.base_ref"?

Since if we have a base_ref set, thats actually the ref we want to base this
patch on top of, rather than the remote branch.

We can't use remote branch because a ref isn't always a branch.

Powered by Google App Engine
This is Rietveld 408576698