← Back to team overview

dulwich team mailing list archive

Re: Patches: Non-bare repository tests

 

I just moved these changes to the 'dev' branch so people can use my master
branch as a (slightly old) copy until the samba.org repo gets fixed.

http://github.com/dborowitz/dulwich/tree/dev

On Tue, May 4, 2010 at 15:08, David Borowitz <dborowitz@xxxxxxxxxx> wrote:

> This patch series (mostly) tests creating non-bare repositories from
> scratch, and fixes various bugs I found along the way. It should now be
> possible to use dulwich to manipulate non-bare repos in the same way git
> does. This currently requires writing actual python code, but this is one
> step closer to providing a series of git-like command-line tools.
>
> Patches at http://github.com/dborowitz/dulwich
>
> b929c66 Fix up and test DictRefsContainer.
> 969c043 Treat non-existent index files as empty.
> 524a717 Fix RefsContainer.add_if_new to support dangling symrefs.
> 9fc753f Add non-bare repository tests.
> 6450305 Convert tree mode to int when sorting.
> 6ee65ca Clean up asserts in Tree.
> 30c004e Implement set_symbolic_ref separately in Disk/DictRefsContainer.
> cdd572e Move tests that build repos from scratch to their own class.
> 6a465e9 Allow double-staging of files that are deleted in the index.
>
>  dulwich/_objects.c               |   16 +-
>  dulwich/errors.py                |    4 +
>  dulwich/index.py                 |    6 +
>  dulwich/objects.py               |   22 ++-
>  dulwich/repo.py                  |  202 +++++++++++++++++++-----
>  dulwich/tests/test_index.py      |    5 +
>  dulwich/tests/test_repository.py |  323
> +++++++++++++++++++++++++++++---------
>  7 files changed, 455 insertions(+), 123 deletions(-)
>

References