Merge lp:~blr/turnip/repack-api into lp:turnip
| Status: | Merged |
|---|---|
| Approved by: | Kit Randel on 2015-05-26 |
| Approved revision: | 169 |
| Merged at revision: | 160 |
| Proposed branch: | lp:~blr/turnip/repack-api |
| Merge into: | lp:turnip |
| Prerequisite: | lp:~blr/turnip/api-init-with-alternates |
| Diff against target: |
380 lines (+159/-15) 8 files modified
.bzrignore (+6/-6) git.config.yaml (+8/-0) turnip/api/store.py (+34/-0) turnip/api/tests/test_api.py (+36/-5) turnip/api/tests/test_helpers.py (+27/-1) turnip/api/tests/test_store.py (+12/-0) turnip/api/views.py (+31/-0) turnip/pack/helpers.py (+5/-3) |
| To merge this branch: | bzr merge lp:~blr/turnip/repack-api |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2015-04-24 | Approve on 2015-05-21 |
|
Review via email:
|
|||
Commit Message
Provides API for git repack, and per-repository configuration.
Description of the Change
Provides API for git repack, and per-repository configuration.
Per-repository config defaults are read from git.config.yaml.
| Kit Randel (blr) wrote : | # |
| William Grant (wgrant) wrote : | # |
git repack -l prevents inclusion of data from alternates. We also may want -f to force deltas to be recalculated.
- 158. By Kit Randel on 2015-05-21
-
Add git.config.yaml and fix imports.
| William Grant (wgrant) wrote : | # |
Repack can be a lengthy operation, so running it synchronously within an HTTP request is less than ideal, but it'll do until we have a job system of some kind. I'd like to see how it handles long requests, though -- if the connection dies, does the repack continue?
- 159. By Kit Randel on 2015-05-21
-
Only extract json once is view.
- 160. By Kit Randel on 2015-05-21
-
Add -q to suppress output from repack.
- 161. By Kit Randel on 2015-05-21
-
* Add repack depth and window.
* ensure_config before repack. - 162. By Kit Randel on 2015-05-26
-
* Add test to verify commits in separate packs exist in repacked pack.
* Set head/master to oid of commit in factory.add_commit( ). - 163. By Kit Randel on 2015-05-26
-
Call pack-objects once.
- 164. By Kit Randel on 2015-05-26
-
Add inline comment on git gc.
- 165. By Kit Randel on 2015-05-26
-
Pass revlist to stdout.
- 166. By Kit Randel on 2015-05-26
-
Use subprocess.
communicate rather than writing revlist. - 167. By Kit Randel on 2015-05-26
-
Add test_helper factory.packs property.
- 168. By Kit Randel on 2015-05-26
-
Inline comment.
- 169. By Kit Randel on 2015-05-26
-
Assert repack results in 1 pack.

Provides API for git repack.
Once support for per-repository configuration lands, this will potentially need to be refactored.