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

Issue 1320383004: Allow 'git cache fetch' to re-bootstrap. (Closed)

Created:
5 years, 3 months ago by szager1
Modified:
5 years, 3 months ago
Reviewers:
agable, iannucci, hinoka
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Allow 'git cache fetch' to re-bootstrap. With this change, 'git cache fetch' will automatically re-bootstrap a repo from google storage if the local cache has too many pack files. The behavior can be disabled with the --no-bootstrap flag. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=296829

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add test #

Total comments: 5

Patch Set 3 : Added warning in _preserve_fetchspec #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -15 lines) Patch
M git_cache.py View 1 2 7 chunks +47 lines, -15 lines 0 comments Download
A tests/git_cache_test.py View 1 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
szager1
This is intended to make it easier for developers to use git cache. With this ...
5 years, 3 months ago (2015-09-08 20:16:22 UTC) #2
szager1
ping, adding more reviewers. With the blink merge imminent, it makes a lot of sense ...
5 years, 3 months ago (2015-09-22 20:25:27 UTC) #4
iannucci
lgtm though it makes me very nervous that there are no tests for this :( ...
5 years, 3 months ago (2015-09-22 20:35:26 UTC) #5
szager1
Refactored a bit and added a test, PTAL. https://codereview.chromium.org/1320383004/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/1320383004/diff/1/git_cache.py#newcode150 git_cache.py:150: self.refs ...
5 years, 3 months ago (2015-09-22 22:48:28 UTC) #6
iannucci
https://codereview.chromium.org/1320383004/diff/20001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/1320383004/diff/20001/git_cache.py#newcode326 git_cache.py:326: """Read and preserve remote.origin.fetch from an existing mirror.""" I'd ...
5 years, 3 months ago (2015-09-22 22:56:57 UTC) #7
szager1
https://codereview.chromium.org/1320383004/diff/20001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/1320383004/diff/20001/git_cache.py#newcode326 git_cache.py:326: """Read and preserve remote.origin.fetch from an existing mirror.""" On ...
5 years, 3 months ago (2015-09-22 23:11:56 UTC) #8
iannucci
lgtm
5 years, 3 months ago (2015-09-22 23:14:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320383004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320383004/40001
5 years, 3 months ago (2015-09-22 23:16:49 UTC) #11
commit-bot: I haz the power
5 years, 3 months ago (2015-09-22 23:19:10 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=296829

Powered by Google App Engine
This is Rietveld 408576698