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

Issue 164823002: Create "git cache" command. (Closed)

Created:
6 years, 10 months ago by agable
Modified:
5 years, 2 months ago
Reviewers:
Ryan Tseng, iannucci, hinoka
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Create "git cache" command. The git cache command is a central place to manage a machine's git cache. It provides two subcommands: * populate -- creates or updates the cache of a given repository * exists -- prints the path to the cache of a repo, if it exists Gclient, deps2git, bot_update, and any other tools that touch the cache will be able to use this command to make sure that everyone is interacting with the cache in the same way. R=hinoka@chromium.org, iannucci@chromium.org BUG=339168 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=253007

Patch Set 1 #

Total comments: 44

Patch Set 2 : Comments from hinoka@ #

Patch Set 3 : Comments from iannucci@ #

Total comments: 1

Patch Set 4 : Manually write config file #

Patch Set 5 : Reupload #

Total comments: 21

Patch Set 6 : Shallow fetches and other improvements #

Total comments: 20

Patch Set 7 : More comments. #

Total comments: 2

Patch Set 8 : Final comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -45 lines) Patch
M gclient_scm.py View 1 2 3 4 5 6 7 3 chunks +1 line, -39 lines 0 comments Download
M gclient_utils.py View 1 chunk +37 lines, -0 lines 0 comments Download
A + git-cache View 1 2 3 4 5 6 2 chunks +4 lines, -5 lines 0 comments Download
A git_cache.py View 1 2 3 4 5 6 7 1 chunk +303 lines, -0 lines 0 comments Download
M tests/gclient_utils_test.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
agable
6 years, 10 months ago (2014-02-13 21:38:40 UTC) #1
hinoka
Some comments. Robbie: I don't really know the behavior of CMDpopulate as well so you ...
6 years, 10 months ago (2014-02-13 23:01:29 UTC) #2
hinoka
cloning into the same cache*
6 years, 10 months ago (2014-02-13 23:01:48 UTC) #3
agable
https://codereview.chromium.org/164823002/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/164823002/diff/1/git_cache.py#newcode26 git_cache.py:26: idx = url.find('://') On 2014/02/13 23:01:29, hinoka wrote: > ...
6 years, 10 months ago (2014-02-14 00:28:31 UTC) #4
iannucci
https://codereview.chromium.org/164823002/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/164823002/diff/1/git_cache.py#newcode62 git_cache.py:62: def _read_pid(self): This method only really makes sense when ...
6 years, 10 months ago (2014-02-14 01:43:07 UTC) #5
agable
https://codereview.chromium.org/164823002/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/164823002/diff/1/git_cache.py#newcode46 git_cache.py:46: stdout.write( On 2014/02/13 23:01:29, hinoka wrote: > print >>stdout, ...
6 years, 10 months ago (2014-02-19 02:25:50 UTC) #6
Ryan Tseng
https://codereview.chromium.org/164823002/diff/150001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/164823002/diff/150001/git_cache.py#newcode183 git_cache.py:183: cmd = ['clone'] + v + ['-c', 'core.deltaBaseCacheLimit=2g', We ...
6 years, 10 months ago (2014-02-19 22:56:15 UTC) #7
agable
Robbie, Ryan, Just uploaded a new patchset. Two relevant changes: a) We now manually init ...
6 years, 10 months ago (2014-02-20 03:37:10 UTC) #8
Ryan Tseng
https://codereview.chromium.org/164823002/diff/260001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/164823002/diff/260001/git_cache.py#newcode51 git_cache.py:51: gclient_utils.CheckCallAndFilter(['git'] + cmd, **kwargs) git.bat for windows, right? https://codereview.chromium.org/164823002/diff/260001/git_cache.py#newcode94 ...
6 years, 10 months ago (2014-02-20 20:30:55 UTC) #9
iannucci
https://codereview.chromium.org/164823002/diff/310001/git-cache File git-cache (right): https://codereview.chromium.org/164823002/diff/310001/git-cache#newcode7 git-cache:7: # number of a commit. this probably should be ...
6 years, 10 months ago (2014-02-21 11:32:07 UTC) #10
agable
Responded to all comments. Also pep257'd all docstrings. https://codereview.chromium.org/164823002/diff/260001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/164823002/diff/260001/git_cache.py#newcode51 git_cache.py:51: gclient_utils.CheckCallAndFilter(['git'] ...
6 years, 10 months ago (2014-02-21 19:33:43 UTC) #11
agable
Ping. This really needs to go in.
6 years, 10 months ago (2014-02-24 18:44:19 UTC) #12
Ryan Tseng
lgtm
6 years, 10 months ago (2014-02-24 18:46:17 UTC) #13
iannucci
lgtm https://codereview.chromium.org/164823002/diff/310001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/164823002/diff/310001/git_cache.py#newcode254 git_cache.py:254: if lf.break_lock(): On 2014/02/21 19:33:44, agable wrote: > ...
6 years, 10 months ago (2014-02-24 19:43:03 UTC) #14
agable
The CQ bit was checked by agable@chromium.org
6 years, 10 months ago (2014-02-24 22:11:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agable@chromium.org/164823002/440001
6 years, 10 months ago (2014-02-24 22:11:33 UTC) #16
agable
https://codereview.chromium.org/164823002/diff/310001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/164823002/diff/310001/git_cache.py#newcode254 git_cache.py:254: if lf.break_lock(): > I guess I meant, can we ...
6 years, 10 months ago (2014-02-24 22:11:40 UTC) #17
commit-bot: I haz the power
6 years, 10 months ago (2014-02-24 22:14:00 UTC) #18
Message was sent while issue was closed.
Change committed as 253007

Powered by Google App Engine
This is Rietveld 408576698