From 356cb5f4d690ff21ec12b7134c7020ff9d8c1fa8 Mon Sep 17 00:00:00 2001 From: "hinoka@google.com" Date: Fri, 25 Apr 2014 00:02:21 +0000 Subject: [PATCH] Comment out lkcr/lkgr fetching from chromium/src.git's git cache This isn't doing anything, and is currently costing 20 seconds of idle time per bot_update run. Lets remove it until we convert lkcr/lkgr to tags. BUG=261741 Review URL: https://codereview.chromium.org/256683002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@266055 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient_scm.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gclient_scm.py b/gclient_scm.py index 491345e85..aef296964 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -738,8 +738,12 @@ class GitWrapper(SCMWrapper): 'print_func': self.filter, 'refs': [] } - if url == CHROMIUM_SRC_URL or url + '.git' == CHROMIUM_SRC_URL: - mirror_kwargs['refs'].extend(['refs/tags/lkgr', 'refs/tags/lkcr']) + # TODO(hinoka): This currently just fails because lkcr/lkgr are branches + # not tags. This also adds 20 seconds to every bot_update + # run, so I'm commenting this out until lkcr/lkgr become + # tags. (2014/4/24) + # if url == CHROMIUM_SRC_URL or url + '.git' == CHROMIUM_SRC_URL: + # mirror_kwargs['refs'].extend(['refs/tags/lkgr', 'refs/tags/lkcr']) if hasattr(options, 'with_branch_heads') and options.with_branch_heads: mirror_kwargs['refs'].append('refs/branch-heads/*') mirror = git_cache.Mirror(url, **mirror_kwargs)