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

Issue 2856038: gclient: fetch only what's needed (Closed)

Created:
10 years, 5 months ago by Mandeep Singh Baines
Modified:
9 years, 7 months ago
CC:
chromium-reviews, M-A Ruel
Visibility:
Public.

Description

gclient: fetch only what's needed To reduce server load, only fetch the ref we need. TEST=ran presubmit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52941

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M gclient_scm.py View 1 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Mandeep Singh Baines
10 years, 5 months ago (2010-07-15 23:58:18 UTC) #1
Nasser Grainawi
One minor comment. http://codereview.chromium.org/2856038/diff/1/2 File gclient_scm.py (right): http://codereview.chromium.org/2856038/diff/1/2#newcode262 gclient_scm.py:262: ['fetch'] + verbose + ['origin'] + ...
10 years, 5 months ago (2010-07-16 14:13:24 UTC) #2
petkov
LGTM AFAICT but wait for the other reviewers. One comment/suggestion below. Note that this change ...
10 years, 5 months ago (2010-07-16 18:38:00 UTC) #3
M-A Ruel
random note: I'd like to have a general alternate fetch mechanism, mainly for git-svn users ...
10 years, 5 months ago (2010-07-16 23:01:28 UTC) #4
Mandeep Singh Baines
On 2010/07/16 14:13:24, Nasser Grainawi wrote: > One minor comment. > > http://codereview.chromium.org/2856038/diff/1/2 > File ...
10 years, 5 months ago (2010-07-19 19:54:00 UTC) #5
Daniel Erat
10 years, 5 months ago (2010-07-20 16:25:12 UTC) #6
On 2010/07/19 19:54:00, Mandeep Singh Baines wrote:
> On 2010/07/16 14:13:24, Nasser Grainawi wrote:
> > One minor comment.
> > 
> > http://codereview.chromium.org/2856038/diff/1/2
> > File gclient_scm.py (right):
> > 
> > http://codereview.chromium.org/2856038/diff/1/2#newcode262
> > gclient_scm.py:262: ['fetch'] + verbose + ['origin'] + [revision],
> > Instead of 'origin', could you grab the remote name from upstream_branch?
> 
> upstream_branch is the current branch you have checked out while I want the
> branch specified in the DEPS. origin is safe (but ugly) because we use clone.
At
> some point it might be nice to remove the origin assumption.

I think that this change broke stuff.  I'm going to revert it unless someone
else beats me to it:

  File "/home/derat/local/depot_tools/gclient.py", line 1208, in <module>
    sys.exit(Main(sys.argv[1:]))
  File "/home/derat/local/depot_tools/gclient.py", line 1198, in Main
    return command(parser, argv[1:])
  File "/home/derat/local/depot_tools/gclient.py", line 1035, in CMDsync
    return client.RunOnDeps('update', args)
  File "/home/derat/local/depot_tools/gclient.py", line 621, in RunOnDeps
    scm.RunCommand(command, self._options, args, file_list)
  File "/home/derat/local/depot_tools/gclient_scm.py", line 115, in RunCommand
    return getattr(self, command)(options, args, file_list)
  File "/home/derat/local/depot_tools/gclient_scm.py", line 264, in update
    print_error=False)
  File "/home/derat/local/depot_tools/scm.py", line 84, in Capture
    return gclient_utils.CheckCall(c, in_directory, print_error)
  File "/home/derat/local/depot_tools/gclient_utils.py", line 58, in CheckCall
    raise CheckCallError(command, cwd, process.returncode, std_out, std_err)
gclient_utils.CheckCallError: (['git', 'fetch', 'origin', 'cc1c63d'],
'/usr/local/google/home/derat/chrome/src/third_party/cros', 128, '', "fatal:
Couldn't find remote ref cc1c63d\nfatal: The remote end hung up unexpectedly\n")
Sending crash report ...
A stack trace has been sent to the maintainers.

Powered by Google App Engine
This is Rietveld 408576698