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

Issue 229653002: Make git_cache.py import-able. (Closed)

Created:
6 years, 8 months ago by szager1
Modified:
6 years, 7 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org, ricow1
Visibility:
Public.

Description

Make git_cache.py import-able. Evidence indicates that running non-builtin git commands is very slow in msysgit, slow enough to dominate the running time of gclient sync. With this change, gclient never shells out to git-cache; it import the lib directly instead. R=agable@chromium.org,hinoka@chromium.org BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262759

Patch Set 1 #

Total comments: 20

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -231 lines) Patch
M gclient.py View 2 chunks +2 lines, -0 lines 0 comments Download
M gclient_scm.py View 1 8 chunks +26 lines, -25 lines 1 comment Download
M git_cache.py View 1 11 chunks +270 lines, -206 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
szager1
6 years, 8 months ago (2014-04-08 23:01:35 UTC) #1
Ryan Tseng
some comments. https://codereview.chromium.org/229653002/diff/1/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/229653002/diff/1/gclient_scm.py#newcode741 gclient_scm.py:741: mirror.unlock() We actually don't want to do ...
6 years, 8 months ago (2014-04-09 00:39:43 UTC) #2
szager1
https://codereview.chromium.org/229653002/diff/1/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/229653002/diff/1/gclient_scm.py#newcode741 gclient_scm.py:741: mirror.unlock() On 2014/04/09 00:39:44, Ryan T. wrote: > We ...
6 years, 8 months ago (2014-04-09 05:22:29 UTC) #3
szager1
In the interest of making progress on the git migration stuff, I'm going to TBR ...
6 years, 8 months ago (2014-04-09 17:33:48 UTC) #4
szager1
Committed patchset #2 manually as r262759.
6 years, 8 months ago (2014-04-09 19:06:46 UTC) #5
agable
Retroactive LGTM with some minor comments/nits. https://codereview.chromium.org/229653002/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/229653002/diff/1/git_cache.py#newcode148 git_cache.py:148: def FindExecutable(executable): Why ...
6 years, 8 months ago (2014-04-11 20:44:54 UTC) #6
agable
Retroactive LGTM with some minor comments/nits.
6 years, 8 months ago (2014-04-11 20:44:58 UTC) #7
iannucci
On 2014/04/11 20:44:58, agable wrote: > Retroactive LGTM with some minor comments/nits. BTW, this is ...
6 years, 8 months ago (2014-04-24 01:31:13 UTC) #8
agable
On 2014/04/24 01:31:13, iannucci wrote: > On 2014/04/11 20:44:58, agable wrote: > > Retroactive LGTM ...
6 years, 7 months ago (2014-05-01 17:07:26 UTC) #9
chromium-reviews
You linked me to a build from 7 days ago, I'm not surprised its broken... ...
6 years, 7 months ago (2014-05-01 17:10:09 UTC) #10
kustermann
https://codereview.chromium.org/229653002/diff/20001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/229653002/diff/20001/gclient_scm.py#newcode163 gclient_scm.py:163: actual_remote_url = shlex.split(self._Capture( This line raises an exception on ...
6 years, 7 months ago (2014-05-01 23:35:14 UTC) #11
chromium-reviews
6 years, 7 months ago (2014-05-01 23:42:15 UTC) #12
Does it happen if you do a clean sync?  This error message comes up when
some DEPS get switched from git <-> svn.


On Thu, May 1, 2014 at 4:35 PM, <kustermann@google.com> wrote:

>
> https://codereview.chromium.org/229653002/diff/20001/gclient_scm.py
> File gclient_scm.py (right):
>
> https://codereview.chromium.org/229653002/diff/20001/
> gclient_scm.py#newcode163
> gclient_scm.py:163: actual_remote_url = shlex.split(self._Capture(
> This line raises an exception on a "gclient sync" on my machine:
>
> ~/mycheckout $ gclient sync
>
> Traceback (most recent call last):
>   File "/..../bin/depot_tools/gclient.py", line 1974, in <module>
>     sys.exit(Main(sys.argv[1:]))
>   File "/..../bin/depot_tools/gclient.py", line 1962, in Main
>     return dispatcher.execute(OptionParser(), argv)
>   File "/..../bin/depot_tools/subcommand.py", line 245, in execute
>
>     return command(parser, args[1:])
>   File "/..../bin/depot_tools/gclient.py", line 1741, in CMDsync
>
>     ret = client.RunOnDeps('update', args)
>   File "/..../bin/depot_tools/gclient.py", line 1261, in RunOnDeps
>     self._CheckConfig()
>   File "/..../bin/depot_tools/gclient.py", line 1060, in _CheckConfig
>     actual_url = scm.GetActualRemoteURL(self._options)
>   File "/..../bin/depot_tools/gclient_scm.py", line 164, in
>
> GetActualRemoteURL
>     actual_remote_url = shlex.split(self._Capture(
> AttributeError: 'SVNWrapper' object has no attribute '_Capture'
> Sending crash report ...
>   args: ['/..../bin/depot_tools/gclient.py', 'sync']
>   cwd: /..../mycheckout
>   exception: 'SVNWrapper' object has no attribute '_Capture'
>   host: kustermann
>   stack:   File "/..../bin/depo
>   user: kustermann
>   version: 2.7.3 (default, Feb 27 2014, 19:58:35)
> [GCC 4.6.3
> A stack trace has been sent to the maintainers.
>
>
> Git blame says that this CL was the last one touching this line.
>
> Could you take a look?
> Let me know if you need more information.
>
> https://codereview.chromium.org/229653002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698