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

Issue 6597004: Add configuration option for upstream branch and improve guessing the svn branch. (Closed)

Created:
9 years, 10 months ago by Bernhard Bauer
Modified:
9 years, 7 months ago
Reviewers:
sky, Evan Martin, evanm
CC:
chromium-reviews, M-A Ruel
Visibility:
Public.

Description

Add configuration option for upstream branch and improve guessing the svn branch. The svn branch heuristic does roughly the same thing git-svn does: We first iterate backwards over the history to find the svn URL (like svn://svn.chromium.org/chrome/trunk/src). Then we go through all defined svn-remote section looking for one where the URL is the root of the svn URL (svn://svn.chromium.org/chrome in that case), and the fetch spec looks like "trunk/src:remotes/origin/trunk". If the base URL + left part (trunk/src) is the full URL, the right part (remotes/origin/trunk) is the git ref that is updated when we do a `git svn fetch`! This works for git-svn branches that fetch from trunk as well as milestone branches. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76364

Patch Set 1 #

Patch Set 2 : formatting #

Patch Set 3 : add scm.py changes #

Patch Set 4 : Add rietveld.upstream-branch configuration option #

Total comments: 4

Patch Set 5 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -95 lines) Patch
M git_cl/git_cl.py View 1 2 3 4 2 chunks +50 lines, -44 lines 0 comments Download
M scm.py View 1 2 3 4 2 chunks +60 lines, -51 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Bernhard Bauer
Hi Evan, could you take a look at this patch? For me, it works far ...
9 years, 10 months ago (2011-02-25 12:05:41 UTC) #1
Bernhard Bauer
On 2011/02/25 12:05:41, Bernhard Bauer wrote: > Hi Evan, > > could you take a ...
9 years, 10 months ago (2011-02-25 12:46:57 UTC) #2
evanm
I don't understand this change. How is it an improvement? Perhaps making the review description ...
9 years, 10 months ago (2011-02-25 16:20:27 UTC) #3
Bernhard Bauer
On 2011/02/25 16:20:27, evanm wrote: > I don't understand this change. How is it an ...
9 years, 10 months ago (2011-02-25 16:35:37 UTC) #4
evanm
I'm concerned that the previous code was kinda tricky and this will be subtly different ...
9 years, 10 months ago (2011-02-25 16:39:19 UTC) #5
Bernhard Bauer
On 2011/02/25 16:39:19, evanm wrote: > I'm concerned that the previous code was kinda tricky ...
9 years, 10 months ago (2011-02-25 16:56:29 UTC) #6
sky
Does this still prefer origin/HEAD? In my tree I pull from a couple of sources ...
9 years, 10 months ago (2011-02-25 17:06:55 UTC) #7
Bernhard Bauer
On Fri, Feb 25, 2011 at 18:06, Scott Violet <sky@chromium.org> wrote: > Does this still ...
9 years, 10 months ago (2011-02-25 17:21:44 UTC) #8
sky
On Fri, Feb 25, 2011 at 9:21 AM, Bernhard Bauer <bauerb@chromium.org> wrote: > On Fri, ...
9 years, 10 months ago (2011-02-25 17:40:59 UTC) #9
evanm
On 2011/02/25 17:40:59, sky wrote: > On Fri, Feb 25, 2011 at 9:21 AM, Bernhard ...
9 years, 10 months ago (2011-02-25 17:59:47 UTC) #10
Bernhard Bauer
On 2011/02/25 17:59:47, evanm wrote: > On 2011/02/25 17:40:59, sky wrote: > > On Fri, ...
9 years, 9 months ago (2011-02-27 16:20:43 UTC) #11
evanm
LGTM, please be on the lookout for this regressing people http://codereview.chromium.org/6597004/diff/2007/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6597004/diff/2007/git_cl/git_cl.py#newcode187 ...
9 years, 9 months ago (2011-02-28 22:20:52 UTC) #12
Bernhard Bauer
http://codereview.chromium.org/6597004/diff/2007/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6597004/diff/2007/git_cl/git_cl.py#newcode307 git_cl/git_cl.py:307: remote = RunGit(['config', 'rietveld.upstream-remote']).strip() On 2011/02/28 22:20:52, evanm wrote: ...
9 years, 9 months ago (2011-02-28 22:32:21 UTC) #13
evanm
On 2011/02/28 22:32:21, Bernhard Bauer wrote: > As long as the Git config doesn't change ...
9 years, 9 months ago (2011-02-28 22:35:54 UTC) #14
Bernhard Bauer
On Mon, Feb 28, 2011 at 23:35, <evanm@google.com> wrote: > On 2011/02/28 22:32:21, Bernhard Bauer ...
9 years, 9 months ago (2011-02-28 22:46:01 UTC) #15
Bernhard Bauer
http://codereview.chromium.org/6597004/diff/2007/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6597004/diff/2007/git_cl/git_cl.py#newcode187 git_cl/git_cl.py:187: for r in remotes: On 2011/02/28 22:20:52, evanm wrote: ...
9 years, 9 months ago (2011-03-01 08:59:17 UTC) #16
Bernhard Bauer
9 years, 9 months ago (2011-03-01 09:23:27 UTC) #17
On 2011/03/01 08:59:17, Bernhard Bauer wrote:
> http://codereview.chromium.org/6597004/diff/2007/git_cl/git_cl.py
> File git_cl/git_cl.py (right):
> 
> http://codereview.chromium.org/6597004/diff/2007/git_cl/git_cl.py#newcode187
> git_cl/git_cl.py:187: for r in remotes:
> On 2011/02/28 22:20:52, evanm wrote:
> > Can you use a more descriptive variable name than "r"?
> 
> Done, and committed. Scott, you might need to configure
rietveld.upstream-branch
> and rietveld.upstream-branch now.

(the second one should read rietveld.upstream-remote, of course.)

Powered by Google App Engine
This is Rietveld 408576698