jelmer/dulwich.git
11 years agoRelease 0.8.7. dulwich-0.8.7
Jelmer Vernooij [Tue, 27 Nov 2012 15:54:45 +0000 (16:54 +0100)]
Release 0.8.7.

11 years agoFix compatibilithy with Python 2.4.
David Carr [Thu, 22 Nov 2012 15:01:09 +0000 (15:01 +0000)]
Fix compatibilithy with Python 2.4.

11 years agoMerge fix for use of alternates in DiskObjectStore.__contains__ and DiskObjectStore...
Jelmer Vernooij [Wed, 14 Nov 2012 10:30:57 +0000 (11:30 +0100)]
Merge fix for use of alternates in DiskObjectStore.__contains__ and DiskObjectStore.__iter__.

11 years agoUpdate NEWS.
Jelmer Vernooij [Wed, 14 Nov 2012 10:30:30 +0000 (11:30 +0100)]
Update NEWS.

11 years agoSimplify checking of alternates in __contains__.
Jelmer Vernooij [Wed, 14 Nov 2012 10:27:04 +0000 (11:27 +0100)]
Simplify checking of alternates in __contains__.

11 years agoalternates: remove contains_alternate() and move the code inside __contains__
Dmitriy [Tue, 13 Nov 2012 15:11:55 +0000 (10:11 -0500)]
alternates: remove contains_alternate() and move the code inside __contains__

11 years agoalternates: test for __contains__
Dmitriy [Mon, 12 Nov 2012 21:41:59 +0000 (16:41 -0500)]
alternates: test for __contains__

11 years agoalternates: add alternates check to __contains__ and __iter__ to make it match __geti...
Dmitriy [Mon, 12 Nov 2012 17:09:26 +0000 (12:09 -0500)]
alternates: add alternates check to __contains__ and __iter__ to make it match __getitem__.

11 years agoStart on 0.9.0.
Jelmer Vernooij [Wed, 14 Nov 2012 10:02:35 +0000 (11:02 +0100)]
Start on 0.9.0.

11 years agoRelease 0.8.6. dulwich-0.8.6
Jelmer Vernooij [Fri, 9 Nov 2012 22:37:21 +0000 (23:37 +0100)]
Release 0.8.6.

11 years agoMerge support for large pack index files.
Jelmer Vernooij [Tue, 30 Oct 2012 23:23:57 +0000 (00:23 +0100)]
Merge support for large pack index files.

11 years agopack: Split testing of large pack index files into separate test.
Jelmer Vernooij [Tue, 30 Oct 2012 23:23:02 +0000 (00:23 +0100)]
pack: Split testing of large pack index files into separate test.

11 years agoadd a test for reading and writing large offsets into index files
Jameson Nash [Mon, 29 Oct 2012 07:52:48 +0000 (03:52 -0400)]
add a test for reading and writing large offsets into index files

11 years agoadd support for writing large pack files
Jameson Nash [Mon, 29 Oct 2012 07:16:56 +0000 (03:16 -0400)]
add support for writing large pack files

11 years agoadd large table support to reading PackIndex2 files
Jameson Nash [Sat, 27 Oct 2012 06:11:54 +0000 (02:11 -0400)]
add large table support to reading PackIndex2 files

11 years agoclient: Invert logic for thin-packs.
Jelmer Vernooij [Wed, 3 Oct 2012 14:22:54 +0000 (16:22 +0200)]
client: Invert logic for thin-packs.

11 years agoPrint refs after fetch.
Jelmer Vernooij [Wed, 3 Oct 2012 13:53:02 +0000 (15:53 +0200)]
Print refs after fetch.

11 years agoclient: In get_transport_and_path, pass kwargs on to HttpGitClient.
Jelmer Vernooij [Mon, 24 Sep 2012 18:57:24 +0000 (20:57 +0200)]
client: In get_transport_and_path, pass kwargs on to HttpGitClient.

11 years agoProtocol does not have a recv attritbue.
Jonathan Chu [Mon, 3 Sep 2012 01:21:42 +0000 (18:21 -0700)]
Protocol does not have a recv attritbue.
This causes dul-receive-pack to throw an error.

Fixes a bug where an AttributeError is thrown when dul-receive-pack is
run. This is caused due to the fact that the default protocol used is
the Protocol class, which does not have recv defined.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoAdd function for testing whether to ignore specific error.
Jelmer Vernooij [Sun, 26 Aug 2012 19:25:56 +0000 (21:25 +0200)]
Add function for testing whether to ignore specific error.

11 years agoAdd 'make check-compat'.
Jelmer Vernooij [Sun, 26 Aug 2012 19:25:44 +0000 (21:25 +0200)]
Add 'make check-compat'.

11 years agogitignore: Ignore vim swap files.
Jelmer Vernooij [Sun, 26 Aug 2012 18:07:29 +0000 (20:07 +0200)]
gitignore: Ignore vim swap files.

11 years agoadd a test for "Do not crash when cloning HEAD-less repo" with empty.git test data
DeeKey [Fri, 3 Aug 2012 21:25:47 +0000 (17:25 -0400)]
add a test for "Do not crash when cloning HEAD-less repo" with empty.git test data

Conflicts:
dulwich/tests/test_repository.py

Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
11 years agofix http test on osx
Yifan Zhang [Tue, 26 Jun 2012 22:32:20 +0000 (23:32 +0100)]
fix http test on osx

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoPrevent errors about string formatting when tuples are passed.
Jelmer Vernooij [Sun, 26 Aug 2012 12:38:44 +0000 (14:38 +0200)]
Prevent errors about string formatting when tuples are passed.

11 years agoSupport MemoryRepo.get_config.
Jelmer Vernooij [Sun, 26 Aug 2012 12:33:59 +0000 (14:33 +0200)]
Support MemoryRepo.get_config.

11 years agoMerge fix for cloning repositories without HEAD set.
Jelmer Vernooij [Fri, 3 Aug 2012 22:04:10 +0000 (00:04 +0200)]
Merge fix for cloning repositories without HEAD set.

11 years agoDon't create a working tree if there is no HEAD in Repo.clone.
Jelmer Vernooij [Fri, 3 Aug 2012 22:01:23 +0000 (00:01 +0200)]
Don't create a working tree if there is no HEAD in Repo.clone.

11 years agoAdd test for cloning a repository without a HEAD.
Jelmer Vernooij [Fri, 3 Aug 2012 22:01:07 +0000 (00:01 +0200)]
Add test for cloning a repository without a HEAD.

11 years agoFix syntax errors in docstrings.
Jelmer Vernooij [Fri, 3 Aug 2012 21:52:12 +0000 (23:52 +0200)]
Fix syntax errors in docstrings.

11 years agoFix syntax error in NEWS.
Jelmer Vernooij [Fri, 3 Aug 2012 21:51:17 +0000 (23:51 +0200)]
Fix syntax error in NEWS.

11 years agoMerge fix for handling None elements in list of TreeChange objects.
Jelmer Vernooij [Fri, 3 Aug 2012 21:43:18 +0000 (23:43 +0200)]
Merge fix for handling None elements in list of TreeChange objects.

11 years agoDo not crash when cloning HEAD-less repo
D-Key [Thu, 2 Aug 2012 21:22:27 +0000 (18:22 -0300)]
Do not crash when cloning HEAD-less repo

For a git repository HEAD reference is optional.
.clone() would crash at the attempt to update
target repo 'HEAD' reference if source repo is HEAD-less.

11 years agoMerge support for fallback_app argument to HTTPGitApplication.
Jelmer Vernooij [Wed, 18 Jul 2012 10:32:39 +0000 (12:32 +0200)]
Merge support for fallback_app argument to HTTPGitApplication.

11 years agoTest for `fallback_app` (236052093a22fabbb52657f8d36bd02642e5e288)
Jonas Haag [Mon, 16 Jul 2012 20:37:49 +0000 (22:37 +0200)]
Test for `fallback_app` (236052093a22fabbb52657f8d36bd02642e5e288)

11 years agoAdded a `fallback_app` to Smart HTTP support to allow easy integration with other...
Jonas Haag [Mon, 16 Jul 2012 17:26:16 +0000 (19:26 +0200)]
Added a `fallback_app` to Smart HTTP support to allow easy integration with other WSGI apps

11 years agoCherry-pick test for large buffer deltas.
Jelmer Vernooij [Fri, 13 Jul 2012 16:56:14 +0000 (18:56 +0200)]
Cherry-pick test for large buffer deltas.

Original change from yifanzhang at https://github.com/yifanzhang/dulwich

11 years agoMerge fix for crashing empty time-based walkers.
Jelmer Vernooij [Fri, 13 Jul 2012 13:48:24 +0000 (15:48 +0200)]
Merge fix for crashing empty time-based walkers.

11 years agoAdd unit test for crash-on-empty-walk
Benjamin Pollack [Fri, 13 Jul 2012 13:29:50 +0000 (09:29 -0400)]
Add unit test for crash-on-empty-walk

11 years agoTake copy of refs when invoking determine_wants callback.
Andi McClure [Fri, 13 Jul 2012 11:51:15 +0000 (13:51 +0200)]
Take copy of refs when invoking determine_wants callback.

This avoids breakage if the callback happens to change the value that was
passed in.

Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
11 years agoRun all tests in ``setup.py test``.
Jelmer Vernooij [Wed, 11 Jul 2012 23:42:57 +0000 (01:42 +0200)]
Run all tests in ``setup.py test``.

11 years agoDo not crash when trying to walk an empty set
Benjamin Pollack [Wed, 11 Jul 2012 14:37:34 +0000 (10:37 -0400)]
Do not crash when trying to walk an empty set

11 years agoUse skipTest rather than skip, as the latter isn't available without testtools. Thank...
Jelmer Vernooij [Wed, 11 Jul 2012 12:48:11 +0000 (14:48 +0200)]
Use skipTest rather than skip, as the latter isn't available without testtools. Thanks, milki.

11 years agoMerge typo fix in docstring from milki.
Jelmer Vernooij [Wed, 11 Jul 2012 12:45:50 +0000 (14:45 +0200)]
Merge typo fix in docstring from milki.

11 years agotypo
milki [Wed, 11 Jul 2012 06:02:00 +0000 (23:02 -0700)]
typo

11 years agoskip isn't a valid function. its skipTest!
milki [Wed, 11 Jul 2012 05:42:27 +0000 (22:42 -0700)]
skip isn't a valid function. its skipTest!

11 years agoMerge fix for Commit._deserialize actually using passed in chunks. Thanks Yifan Zhang.
Jelmer Vernooij [Sat, 23 Jun 2012 10:55:56 +0000 (12:55 +0200)]
Merge fix for Commit._deserialize actually using passed in chunks. Thanks Yifan Zhang.

11 years agotest for commit _deserialize
Yifan Zhang [Fri, 22 Jun 2012 23:08:52 +0000 (00:08 +0100)]
test for commit _deserialize

11 years agotypo fix
Yifan Zhang [Fri, 22 Jun 2012 22:26:22 +0000 (23:26 +0100)]
typo fix

11 years agoMerge support for ConfigDict behaving more like a dictionary.
Jelmer Vernooij [Mon, 18 Jun 2012 00:10:20 +0000 (02:10 +0200)]
Merge support for ConfigDict behaving more like a dictionary.

11 years agoWrote tests for the ConfigDict dict changes
Adam 'Cezar' Jenkins [Wed, 13 Jun 2012 02:21:23 +0000 (21:21 -0500)]
Wrote tests for the ConfigDict dict changes

11 years agoConfigDict should act like a dictionary
Adam "Cezar" Jenkins [Tue, 12 Jun 2012 19:22:56 +0000 (14:22 -0500)]
ConfigDict should act like a dictionary

11 years agoUnit test for loading a git submodule
Nick Ward [Mon, 14 May 2012 15:09:28 +0000 (16:09 +0100)]
Unit test for loading a git submodule

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
11 years agoQuick fix for git submodules
Nick Ward [Thu, 10 May 2012 16:43:04 +0000 (17:43 +0100)]
Quick fix for git submodules

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
12 years agofixes dulwich issue #54
Marcin Kuzminski [Fri, 27 Apr 2012 16:32:50 +0000 (18:32 +0200)]
fixes dulwich issue #54

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
12 years agoRename .bzrignore to .gitignore.
Jelmer Vernooij [Tue, 24 Apr 2012 20:16:53 +0000 (22:16 +0200)]
Rename .bzrignore to .gitignore.

12 years agoSupport DESTDIR in the Makefile.
Nix [Tue, 24 Apr 2012 20:15:59 +0000 (22:15 +0200)]
Support DESTDIR in the Makefile.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
12 years ago_pack.c: Check for NULL return from Py_BuildValue.
Jelmer Vernooij [Thu, 19 Apr 2012 23:46:29 +0000 (01:46 +0200)]
_pack.c: Check for NULL return from Py_BuildValue.

12 years ago_pack.c: Consistently use tabs for indentation.
Jelmer Vernooij [Thu, 19 Apr 2012 23:42:28 +0000 (01:42 +0200)]
_pack.c: Consistently use tabs for indentation.

12 years ago_objects.c: Cope with sha_to_pyhex returning NULL.
Jelmer Vernooij [Thu, 19 Apr 2012 10:48:13 +0000 (12:48 +0200)]
_objects.c: Cope with sha_to_pyhex returning NULL.

Thanks to Lawrence D'Oliveiro for pointing this out.

12 years agoMake index entry tests a little bit less strict, to cope with
Jelmer Vernooij [Mon, 2 Apr 2012 10:37:42 +0000 (12:37 +0200)]
Make index entry tests a little bit less strict, to cope with
slightly different behaviour on various platforms.

12 years agoRemove explicit testing of uid and gid in tests of index files.
Jelmer Vernooij [Mon, 2 Apr 2012 10:29:11 +0000 (12:29 +0200)]
Remove explicit testing of uid and gid in tests of index files.

These tend to be the cause of failures on various systems, they're
not as predictable as we were hoping.

12 years agoHandle None elements in lists of TreeChange objects
Alex Holmes [Sun, 1 Apr 2012 00:32:55 +0000 (01:32 +0100)]
Handle None elements in lists of TreeChange objects

The docstring of diff_tree.tree_changes_for_merge reports that it yields
lists of TreeChange objects, and that "An element may be None...".

12 years agodulwich.__init__ no longer imports client, protocol, repo and
Jelmer Vernooij [Thu, 29 Mar 2012 13:35:28 +0000 (15:35 +0200)]
dulwich.__init__ no longer imports client, protocol, repo and
server modules.

12 years agoStart on 0.8.6.
Jelmer Vernooij [Thu, 29 Mar 2012 13:34:51 +0000 (15:34 +0200)]
Start on 0.8.6.

12 years agoRelease 0.8.5. dulwich-0.8.5
Jelmer Vernooij [Thu, 29 Mar 2012 13:30:55 +0000 (15:30 +0200)]
Release 0.8.5.

12 years agoBe a little bit strict about OS behaviour in index tests.
Jelmer Vernooij [Thu, 29 Mar 2012 00:21:54 +0000 (02:21 +0200)]
Be a little bit strict about OS behaviour in index tests.

Should fix the tests on Debian GNU/kFreeBSD.

12 years agoAvoid use of 'with' in dulwich.index, fixes compatibility with python < 2.5.
Jelmer Vernooij [Wed, 28 Mar 2012 20:42:25 +0000 (22:42 +0200)]
Avoid use of 'with' in dulwich.index, fixes compatibility with python < 2.5.

12 years agoStart on 0.8.5.
Jelmer Vernooij [Wed, 28 Mar 2012 12:08:35 +0000 (14:08 +0200)]
Start on 0.8.5.

12 years agoRelease 0.8.4. dulwich-0.8.4
Jelmer Vernooij [Wed, 28 Mar 2012 12:05:50 +0000 (14:05 +0200)]
Release 0.8.4.

12 years agoobjects: Fix default type of Commit.extra.
Jelmer Vernooij [Mon, 26 Mar 2012 21:16:25 +0000 (23:16 +0200)]
objects: Fix default type of Commit.extra.

12 years agoclient: Fix check for 'report-status' capability.
Jelmer Vernooij [Mon, 26 Mar 2012 21:16:03 +0000 (23:16 +0200)]
client: Fix check for 'report-status' capability.

12 years agoMerge addition of dulwich.index.build_index_from_tree from milki.
Jelmer Vernooij [Wed, 21 Mar 2012 19:27:22 +0000 (20:27 +0100)]
Merge addition of dulwich.index.build_index_from_tree from milki.

12 years agoMerge fix from kankri to reset environment variables during tests, to avoid
Jelmer Vernooij [Mon, 19 Mar 2012 23:44:54 +0000 (00:44 +0100)]
Merge fix from kankri to reset environment variables during tests, to avoid
test isolation leaks reading ~/.gitconfig.

12 years agoSome refactoring, put all os.environ-cleaning functionality in TestCase.setUp().
Jelmer Vernooij [Mon, 19 Mar 2012 23:42:22 +0000 (00:42 +0100)]
Some refactoring, put all os.environ-cleaning functionality in TestCase.setUp().

12 years agomerge trunk
Jelmer Vernooij [Mon, 19 Mar 2012 23:33:16 +0000 (00:33 +0100)]
merge trunk

12 years agoMerge removal of unused variable.
Jelmer Vernooij [Tue, 13 Mar 2012 01:19:34 +0000 (02:19 +0100)]
Merge removal of unused variable.

12 years agoremoved unused variable
codingtony [Tue, 13 Mar 2012 01:10:49 +0000 (21:10 -0400)]
removed unused variable

12 years agoRemove more uses of deprecated assertEquals.
Jelmer Vernooij [Mon, 12 Mar 2012 14:49:51 +0000 (15:49 +0100)]
Remove more uses of deprecated assertEquals.

12 years agoMerge gzip filter support.
Jelmer Vernooij [Mon, 12 Mar 2012 11:20:43 +0000 (12:20 +0100)]
Merge gzip filter support.

12 years agoAvoid using custom gzip module and incrementally parse.
Jelmer Vernooij [Mon, 12 Mar 2012 02:57:55 +0000 (03:57 +0100)]
Avoid using custom gzip module and incrementally parse.

12 years agoAdded WSGI middleware to handle transparent gzip decoding
David Blewett [Mon, 12 Mar 2012 02:38:56 +0000 (03:38 +0100)]
Added WSGI middleware to handle transparent gzip decoding
(dulwich.web.GunzipFilter).
Added WSGI middleware to handle ensuring the wsgi.input is correctly
limited to the Content-Length value (dulwich.web.LimitedInputFilter).
Added a factory function (dulwich.web.make_wsgi_chain) to create an
instance of HTTPGitApplication, wrapped in the WSGI middleware.
Added tests to ensure the gzip decoder functions correctly.

12 years agoUse TestCase.assertEqual rather than TestCase.assertEquals.
Jelmer Vernooij [Sun, 11 Mar 2012 02:01:52 +0000 (03:01 +0100)]
Use TestCase.assertEqual rather than TestCase.assertEquals.

12 years agoFix formatting timezones so that it is possible to regenerate --700 timezones.
Jelmer Vernooij [Sun, 4 Mar 2012 20:57:41 +0000 (21:57 +0100)]
Fix formatting timezones so that it is possible to regenerate --700 timezones.

12 years agoFix two pydoctor warnings.
Jelmer Vernooij [Sun, 4 Mar 2012 17:09:38 +0000 (18:09 +0100)]
Fix two pydoctor warnings.

12 years agoMerge fix for parsing of invalid timezones from Jason R. Coombs.
Jelmer Vernooij [Sat, 3 Mar 2012 18:39:49 +0000 (19:39 +0100)]
Merge fix for parsing of invalid timezones from Jason R. Coombs.

12 years agoExpanded parse_timezone to accept double-negatives to be consistent with cgit impleme...
Jason R. Coombs [Sat, 3 Mar 2012 03:11:38 +0000 (22:11 -0500)]
Expanded parse_timezone to accept double-negatives to be consistent with cgit implementation. Fixes #697828.

12 years agoMerge patch from Sam Vilain to pass arguments to get_transport_and_path on to the...
Jelmer Vernooij [Thu, 1 Mar 2012 20:25:03 +0000 (21:25 +0100)]
Merge patch from Sam Vilain to pass arguments to get_transport_and_path on to the constructor of the transport.

12 years agoAdd support for client init args in get_transport_and_path
Sam Vilain [Thu, 1 Mar 2012 20:04:42 +0000 (12:04 -0800)]
Add support for client init args in get_transport_and_path

If you want to pass arguments to the client construction, without re–
producing the logic in get_transport_and_path which decides on the
appropriate client class to use, you're pretty much out of luck.  So,
accept and pass through keyword arguments.

12 years agoFix python2.4 compatibility.
Jelmer Vernooij [Mon, 20 Feb 2012 12:04:20 +0000 (13:04 +0100)]
Fix python2.4 compatibility.

12 years agoMerge support for only negotiating capabilities that are also supported by the
Jelmer Vernooij [Mon, 20 Feb 2012 11:59:58 +0000 (12:59 +0100)]
Merge support for only negotiating capabilities that are also supported by the
server.

12 years agoAdded test to validate side bank 64k is not parsed if server does not specify it
Rod Cloutier [Mon, 20 Feb 2012 02:31:16 +0000 (21:31 -0500)]
Added test to validate side bank 64k is not parsed if server does not specify it

12 years agoFix capability negotiation in dulwich.client
Risto Kankkunen [Sat, 18 Feb 2012 21:43:16 +0000 (23:43 +0200)]
Fix capability negotiation in dulwich.client

Assume only capabilities the server announced.

12 years agoChange add_object to add_objects
milki [Sun, 12 Feb 2012 00:20:11 +0000 (16:20 -0800)]
Change add_object to add_objects

12 years agoFix pep8
milki [Sun, 12 Feb 2012 00:02:27 +0000 (16:02 -0800)]
Fix pep8

12 years agoConstruct modes instead of magic modes
milki [Sat, 11 Feb 2012 23:56:49 +0000 (15:56 -0800)]
Construct modes instead of magic modes

12 years agoMake index entry tests explicit
milki [Sat, 11 Feb 2012 23:53:16 +0000 (15:53 -0800)]
Make index entry tests explicit

12 years agoMerge fix for formatting of 'extension not found' messages.
Jelmer Vernooij [Thu, 9 Feb 2012 23:03:57 +0000 (00:03 +0100)]
Merge fix for formatting of 'extension not found' messages.

12 years agoMerge fix to call parent constructor rather than grandparent. Thanks, kankri.
Jelmer Vernooij [Thu, 9 Feb 2012 23:00:58 +0000 (00:00 +0100)]
Merge fix to call parent constructor rather than grandparent. Thanks, kankri.

12 years agoSome more docstrings.
Jelmer Vernooij [Thu, 9 Feb 2012 22:41:58 +0000 (23:41 +0100)]
Some more docstrings.