Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5499)

Issue 49670045: Fixing remote branch creation (only want master in github). (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by pajamallama
Modified:
10 years, 3 months ago
Reviewers:
tapted, jackhou
CC:
chrome-apps-internsyd_google.com
Base URL:
https://github.com/tapted/bleeding_edge.git@master
Visibility:
Public.

Description

Fixing remote branch creation (only want master in github). If you create a branch 'a', then branch off that to 'b', then running 'git cl push' from 'b' will create a branch 'b' in origin instead of just pushing to master. This change to the PRESUBMIT would set the upstream to master before pushing. R=jackhou@chromium.org, tapted@chromium.org Committed: https://github.com/tapted/bleeding_edge/commit/1c9f28d

Patch Set 1 : A proper fix.. #

Total comments: 2

Patch Set 2 : Fixing nit #

Patch Set 3 : Expecting / delimitor. #

Patch Set 4 : Fixed bug where remote & upstream both needed to be set #

Patch Set 5 : refs/head -> refs/heads #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M dart/sdk/lib/_internal/pub/PRESUBMIT.py View 1 2 3 4 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 12
pajamallama
10 years, 3 months ago (2014-01-22 04:06:13 UTC) #1
tapted
+jackhou for review too, since I think you put this together initially For a bugfix, ...
10 years, 3 months ago (2014-01-22 05:54:24 UTC) #2
pajamallama
Made a proper go at this one.
10 years, 3 months ago (2014-01-24 03:45:48 UTC) #3
jackhou
If you set the upstream to master, won't the patch contain all changes between master ...
10 years, 3 months ago (2014-01-24 03:50:21 UTC) #4
pajamallama
On 2014/01/24 03:50:21, jackhou wrote: > If you set the upstream to master, won't the ...
10 years, 3 months ago (2014-01-24 04:02:55 UTC) #5
jackhou
On 2014/01/24 04:02:55, pajamallama wrote: > On 2014/01/24 03:50:21, jackhou wrote: > > If you ...
10 years, 3 months ago (2014-01-24 05:25:03 UTC) #6
pajamallama
That particular use-case seems like it would be almost guaranteed to create confusing conflicts. These ...
10 years, 3 months ago (2014-01-28 03:57:31 UTC) #7
jackhou
I guess the check that the uploaded patch matches the local patch will prevent the ...
10 years, 3 months ago (2014-01-28 04:25:31 UTC) #8
tapted
lgtm with one suggestion https://codereview.appspot.com/49670045/diff/20001/dart/sdk/lib/_internal/pub/PRESUBMIT.py File dart/sdk/lib/_internal/pub/PRESUBMIT.py (right): https://codereview.appspot.com/49670045/diff/20001/dart/sdk/lib/_internal/pub/PRESUBMIT.py#newcode96 dart/sdk/lib/_internal/pub/PRESUBMIT.py:96: if not upstream.endswith('master'): Maybe endswith ...
10 years, 3 months ago (2014-01-28 05:37:53 UTC) #9
pajamallama
Committed patchset #4 manually as r6f30f37 (presubmit successful).
10 years, 3 months ago (2014-01-28 06:20:19 UTC) #10
pajamallama
Committed patchset #5 manually as r1c9f28d (presubmit successful).
10 years, 3 months ago (2014-01-28 06:39:04 UTC) #11
pajamallama
10 years, 3 months ago (2014-01-28 06:40:41 UTC) #12
Message was sent while issue was closed.
Okay guys. Made some relatively big changes and pushed them.... soz! I wanted to
actually test it worked, and now it does.

https://codereview.appspot.com/49670045/diff/20001/dart/sdk/lib/_internal/pub...
File dart/sdk/lib/_internal/pub/PRESUBMIT.py (right):

https://codereview.appspot.com/49670045/diff/20001/dart/sdk/lib/_internal/pub...
dart/sdk/lib/_internal/pub/PRESUBMIT.py:96: if not upstream.endswith('master'):
On 2014/01/28 05:37:53, tapted wrote:
> Maybe endswith ('.master') (e.g. in case someone makes a branch called
> "my-copy-of-master"). Maybe optionally `== 'master'` if that's legal too

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b