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

Issue 756223002: Change git-rebase-update to always keep branch 'master'. (Closed)

Created:
6 years ago by M-A Ruel
Modified:
5 years, 11 months ago
Reviewers:
iannucci
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org
Project:
tools
Visibility:
Public.

Description

Change git-rebase-update to always keep branch 'master'. It's useful to keep a clean branch locally. It's annoying when it's constantly removed. Fix pylint errors, print_func one was valid since the argument was ignored. R=iannucci@chromium.org BUG=

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M fix_encoding.py View 1 chunk +1 line, -1 line 0 comments Download
M gclient_scm.py View 2 chunks +2 lines, -2 lines 1 comment Download
M git_rebase_update.py View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/git_rebase_update_test.py View 1 chunk +1 line, -0 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 9 (0 generated)
M-A Ruel
https://codereview.chromium.org/756223002/diff/1/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/756223002/diff/1/gclient_scm.py#newcode301 gclient_scm.py:301: filter_fn=GitDiffFilterer(self.relpath, print_func=self.Print).Filter) I can only assume this code path ...
6 years ago (2014-11-25 20:38:31 UTC) #1
iannucci
What is master useful for? Why not just check out origin/master? On Tue, Nov 25, ...
6 years ago (2014-11-25 21:05:59 UTC) #2
M-A Ruel
On 2014/11/25 21:05:59, iannucci wrote: > What is master useful for? Why not just check ...
6 years ago (2014-11-25 22:07:14 UTC) #3
iannucci
On 2014/11/25 22:07:14, M-A Ruel wrote: > On 2014/11/25 21:05:59, iannucci wrote: > > What ...
6 years ago (2014-11-25 22:09:21 UTC) #4
M-A Ruel
On 2014/11/25 22:09:21, iannucci wrote: > On 2014/11/25 22:07:14, M-A Ruel wrote: > > On ...
6 years ago (2014-11-25 22:10:03 UTC) #5
iannucci
On 2014/11/25 22:09:21, iannucci wrote: > On 2014/11/25 22:07:14, M-A Ruel wrote: > > On ...
6 years ago (2014-11-25 22:12:00 UTC) #6
iannucci
On 2014/11/25 22:10:03, M-A Ruel wrote: > On 2014/11/25 22:09:21, iannucci wrote: > > On ...
6 years ago (2014-11-25 22:12:19 UTC) #7
iannucci
On 2014/11/25 22:12:19, iannucci wrote: > On 2014/11/25 22:10:03, M-A Ruel wrote: > > On ...
6 years ago (2014-11-25 22:12:44 UTC) #8
M-A Ruel
6 years ago (2014-11-26 14:17:16 UTC) #9
On 2014/11/25 22:12:44, iannucci wrote:
> On 2014/11/25 22:12:19, iannucci wrote:
> > On 2014/11/25 22:10:03, M-A Ruel wrote:
> > > You're missing the point, there's no origin/master at all, it was deleted.
> > 
> > origin/master is never deleted...
> 
> or, if it's deleted, it's because you deleted the remote, not because
> git-rebase-update deleted it.

You still misread what I wrote. The origin remote *is* linux-host on my OSX and
Windows hosts. I need to ensure my code works on multiple platforms, so I use my
linux host *as the origin*. Your blanket assumption that origin points to
chromium.googlesource, github or code.google.com is wrong. :)


> The reason I'm opposed to this sort of thing is because I'm tired of helping
> people try to understand why they have a master branch and an origin/master
> branch. The 'master' branch is a copy of origin/master which is usually out of
> date, and tends to have people commit stuff to it, which then confuses them
> because their commits are on master, but they're not in the upstream!

Ok this is a convincing argument. I wish we could trust devs to learn the tools
they use day to day. Sadly, I agree that's an incorrect assumption.


> If we were to implement the feature you're trying to add here, I would
request:
>   * make it a configuration multi-option `depot-tools.keep-branch`
>   * have it blank by default
>   * add it to the git-rebase-update manpage.

That's a good idea. I may eventually send a new patchset to this CL to do that.

Powered by Google App Engine
This is Rietveld 408576698