← Back to team overview

dulwich-users team mailing list archive

[PATCH 00/10] Server and protocol cleanup

 

This is a lead-in to shallow clone support on the server. That code may require
some API cleanup before it gets checked in, so I wanted to get this out of the
way first.


dd153ca Allow overwriting id property of objects in test utils.
aa57cbb Add utility functions to DictRefsContainer, useful for tests.
d0ad3a1 test_server: Use real in-memory objects rather than ad-hoc stubs.
ca8d6ce Use run_git_or_fail in compat tests wherever possible.
0ea6603 tests/compat/server_utils: Factor out several methods.
7d83c36 server: Factor out _split_proto_line as a global.
bee27f4 server: Explicitly specify allowed protocol commands.
932f7df Delegate SHA peeling to the object store.
9fb0aeb protocol: Docstring cleanup.
9f5e928 test_protocol: Standardize quote delimiters.

 NEWS                                    |   20 ++++
 dulwich/errors.py                       |   11 ++
 dulwich/object_store.py                 |   16 +++
 dulwich/protocol.py                     |   58 +++++++-----
 dulwich/repo.py                         |   25 +++--
 dulwich/server.py                       |   83 +++++++++------
 dulwich/tests/compat/server_utils.py    |   42 +++++---
 dulwich/tests/compat/test_client.py     |   10 +-
 dulwich/tests/compat/test_pack.py       |    7 +-
 dulwich/tests/compat/test_repository.py |    7 +-
 dulwich/tests/compat/utils.py           |    3 +-
 dulwich/tests/test_object_store.py      |   18 ++++
 dulwich/tests/test_objects.py           |    7 ++
 dulwich/tests/test_protocol.py          |   70 +++++++-------
 dulwich/tests/test_server.py            |  166 ++++++++++++++-----------------
 dulwich/tests/utils.py                  |   12 ++-
 16 files changed, 328 insertions(+), 227 deletions(-)



Follow ups