← Back to team overview

dulwich team mailing list archive

Patches: cleanup, tests, python 2.4 compatibility

 

Hi Jelmer,

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

It may seem long, but most of them are very small :). No huge new features,
either. (Sometime soon there will be a patch that does git-fsck-like
connectivity checking, but that's still being picked apart by Shawn Pearce
in internal review.)

5e44172 Add make_object and make_commit convenience functions to test utils.
3fda9ff Add __setitem__ to DictRefsContainer.
8199aef Fix numerous style issues.
40e04d2 Fix "x if y else z" syntax for python2.4.
3b3b88d Fix yield in try/finally for python2.4 compatibility.
476e9d8 Clarify make_commit docstring and variable names.
eacdaab Refactor server code to allow custom handler classes.
686102a Add a typedef for Py_ssize_t, which is not available in python <2.5.
140afab Add SEEK_END to misc.py, since it was added in 2.5.
d2f5812 Add repository compat tests.

 dulwich/_objects.c                      |    4 +
 dulwich/file.py                         |   13 ++--
 dulwich/misc.py                         |    5 +
 dulwich/pack.py                         |   12 ++-
 dulwich/protocol.py                     |   14 ++-
 dulwich/repo.py                         |   25 ++++---
 dulwich/server.py                       |   45 +++++++----
 dulwich/tests/compat/test_repository.py |  131
+++++++++++++++++++++++++++++++
 dulwich/tests/test_object_store.py      |   10 +-
 dulwich/tests/test_objects.py           |   84 +++++++++++---------
 dulwich/tests/test_pack.py              |    4 +-
 dulwich/tests/test_repository.py        |   68 ++++++++--------
 dulwich/tests/test_server.py            |   94 +++++++++++-----------
 dulwich/tests/test_web.py               |   65 +++++++++-------
 dulwich/tests/utils.py                  |   35 ++++++++
 dulwich/web.py                          |   87 +++++++++++----------
 16 files changed, 456 insertions(+), 240 deletions(-)