← Back to team overview

dulwich team mailing list archive

Patches: Pack checking during receive-pack

 

Hi Jelmer,

I just pushed a new set of patches to my github repo:
http://github.com/dborowitz/dulwich/commits/master

This includes a refactoring of pack.py that fixes one of the skipped compat
tests, adds simple pack checking to receive-pack, and does some various test
cleanups.

29d0881 Replace ref delta/ofs delta magic numbers with constants.
36a6825 Simplify and fix thin pack resolving.
746e769 Hash packed objects without creating ShaFiles.
dbc9d96 Change check() methods in pack.py to raise rather than return bools.
8209a60 Clean up object store tests.
f729d92 Clean up pack tests.
4ba09be Clean up index tests.
951d028 Do simple pack checking during receive-pack.

 dulwich/errors.py                    |    9 +-
 dulwich/object_store.py              |   27 +++-
 dulwich/objects.py                   |    7 +-
 dulwich/pack.py                      |  280
+++++++++++++++++++++-------------
 dulwich/server.py                    |   39 +++---
 dulwich/tests/compat/server_utils.py |    3 +-
 dulwich/tests/compat/test_pack.py    |    2 +-
 dulwich/tests/compat/test_server.py  |    4 -
 dulwich/tests/compat/test_web.py     |    4 -
 dulwich/tests/test_index.py          |   37 +++--
 dulwich/tests/test_object_store.py   |   46 +++----
 dulwich/tests/test_objects.py        |   10 ++
 dulwich/tests/test_pack.py           |  226 ++++++++++++++++++----------
 13 files changed, 430 insertions(+), 264 deletions(-)