jelmer/dulwich.git
10 years agoRelease 0.9.0. dulwich-0.9.0
Jelmer Vernooij [Thu, 30 May 2013 23:54:36 +0000 (00:54 +0100)]
Release 0.9.0.

10 years agoUpdate NEWS
milki [Sun, 26 May 2013 20:40:56 +0000 (13:40 -0700)]
Update NEWS

10 years agoAdd shell hook tests
milki [Tue, 21 Aug 2012 19:33:09 +0000 (12:33 -0700)]
Add shell hook tests

10 years agoBasic Hook Framework
milki [Tue, 21 Aug 2012 19:31:26 +0000 (12:31 -0700)]
Basic Hook Framework

Implement local shell hooks -
    pre-commit, commit-msg, post-commit
Add to hooks to Repo

10 years agoUpdate NEWS, AUTHORS.
Jelmer Vernooij [Sat, 25 May 2013 15:29:00 +0000 (16:29 +0100)]
Update NEWS, AUTHORS.

10 years agoCheck for empty-repo on client fetch
milki [Sun, 7 Oct 2012 03:30:18 +0000 (20:30 -0700)]
Check for empty-repo on client fetch

An empty repo will respond with the flush-pkt only.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoUpdate NEWS.
Jelmer Vernooij [Sat, 25 May 2013 15:14:48 +0000 (16:14 +0100)]
Update NEWS.

10 years agoFix index.changes_from_tree against an empty tree.
kwatters [Thu, 6 Sep 2012 22:24:33 +0000 (15:24 -0700)]
Fix index.changes_from_tree against an empty tree.

index.changes_from_tree(object_store, None) should work. Modify that function
so the 'tree' argument can be None to signify an empty tree.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoLog all error messages from wsgiref server to the logging module. This makes the...
Gary van der Merwe [Fri, 24 May 2013 09:32:27 +0000 (11:32 +0200)]
Log all error messages from wsgiref server to the logging module. This makes the test suit quiet again.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoAsk for forgiveness, not permission.
Jelmer Vernooij [Fri, 24 May 2013 21:37:31 +0000 (22:37 +0100)]
Ask for forgiveness, not permission.

10 years agoFix: Issue when overwriting symlinks during tree checkout
Aaron O'Mullan [Fri, 17 May 2013 13:38:00 +0000 (15:38 +0200)]
Fix: Issue when overwriting symlinks during tree checkout

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoremoved try catch finally block from GitClient.fetch() so it no longer catches errors...
Chris Reid [Sat, 9 Feb 2013 02:10:13 +0000 (13:10 +1100)]
removed try catch finally block from GitClient.fetch() so it no longer catches errors that should (probably) be handled by code using the GitClient

created a function in HttpGitClient _http_request() which correctly
handles exceptions thrown by http errors such as 404 and 500.

In HttpGitClient modified _discover_references() and _smart_request() to
use the new _http_request() function, removing code that is common to both
functions.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoFix indentation error in _compat.py.
Gary van der Merwe [Thu, 23 May 2013 09:03:16 +0000 (11:03 +0200)]
Fix indentation error in _compat.py.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoFix formatting of docstrings in dulwich._compat.
Jelmer Vernooij [Sun, 19 May 2013 15:03:29 +0000 (16:03 +0100)]
Fix formatting of docstrings in dulwich._compat.

10 years agoUpdate NEWS about tag chapter in tutorial.
Jelmer Vernooij [Sun, 19 May 2013 15:01:03 +0000 (16:01 +0100)]
Update NEWS about tag chapter in tutorial.

10 years agoadd. Initial draft of git tag documentation in dulwich.
rfaulk [Mon, 6 May 2013 01:54:09 +0000 (18:54 -0700)]
add. Initial draft of git tag documentation in dulwich.

10 years agoUpdate NEWS for alternate paths patch.
Jelmer Vernooij [Sat, 4 May 2013 16:15:28 +0000 (17:15 +0100)]
Update NEWS for alternate paths patch.

10 years agoAdd relative path git alternates support
milki [Thu, 2 May 2013 22:21:56 +0000 (15:21 -0700)]
Add relative path git alternates support

Original patch provided by walken@google.com

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoAdd bug # and author for relative path SSH patch.
Jelmer Vernooij [Sat, 4 May 2013 16:10:04 +0000 (17:10 +0100)]
Add bug # and author for relative path SSH patch.

10 years agoUpdate NEWS for SSH client ~ expansion patch.
Jelmer Vernooij [Sat, 4 May 2013 16:07:24 +0000 (17:07 +0100)]
Update NEWS for SSH client ~ expansion patch.

10 years agoAdd test_connect for SSHGitClient
milki [Sat, 19 Jan 2013 05:23:23 +0000 (21:23 -0800)]
Add test_connect for SSHGitClient

Mock SSHVendor.connect_ssh and verify arguments

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoSupport username expansion in SSHGitClient
milki [Thu, 10 Jan 2013 04:02:01 +0000 (20:02 -0800)]
Support username expansion in SSHGitClient

Use same expansion present in TCPGitClient

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoClarify HACKING, add note on unit tests.
Jelmer Vernooij [Sat, 4 May 2013 15:17:23 +0000 (16:17 +0100)]
Clarify HACKING, add note on unit tests.

10 years agoProvide OrderedDict fallback for Python < 2.6, fix test.
Jelmer Vernooij [Sat, 4 May 2013 14:58:55 +0000 (15:58 +0100)]
Provide OrderedDict fallback for Python < 2.6, fix test.

10 years agoPreserve the order of configuration files.
Benjamin Pollack [Thu, 10 Jan 2013 17:30:40 +0000 (12:30 -0500)]
Preserve the order of configuration files.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoAdd support for honoring core/filemode when building trees.
Jelmer Vernooij [Sat, 4 May 2013 14:41:26 +0000 (15:41 +0100)]
Add support for honoring core/filemode when building trees.

10 years agoadd honor_filemode flag to build_index_from_tree
Mark Mikofski [Tue, 9 Apr 2013 06:12:01 +0000 (23:12 -0700)]
add honor_filemode flag to build_index_from_tree

Signed-off-by: Mark Mikofski <mark.mikofski@sunpowercorp.com>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoUpdate NEWS for get_transport_and_path relative path fix.
Jelmer Vernooij [Sat, 4 May 2013 14:28:36 +0000 (15:28 +0100)]
Update NEWS for get_transport_and_path relative path fix.

10 years agoUpdate NEWS, provide way to force diffing of binary files.
Jelmer Vernooij [Sat, 4 May 2013 14:26:37 +0000 (15:26 +0100)]
Update NEWS, provide way to force diffing of binary files.

10 years agoAdded tests for write_object_diff with binary files
Takeshi Kanemoto [Sun, 13 Jan 2013 20:56:05 +0000 (20:56 +0000)]
Added tests for write_object_diff with binary files

Added tests for patch.write_object_diff's binary comparison
behaviour.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoMake patch.write_object_diff suppress diff for binary files
Takeshi Kanemoto [Wed, 19 Dec 2012 16:19:45 +0000 (01:19 +0900)]
Make patch.write_object_diff suppress diff for binary files

For commits with lots of binary files or large binary files, the
memory usage in write_object_diff could get quite nasty.

Moreover, it is not really interesting to see the binary level
diff for binary files.

This change makes write_object_diff display a line saying
"Binary files a/<old_path> and b/<new_path> differ" instead
of the unified diff for files that it deems "binary" like, using
the same strategy used in the `git diff` command [1].

1. http://git.kernel.org/?p=git/git.git;a=blob;f=xdiff-interface.c#l197

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agotest_client: Put separate tests into their own methods.
Jelmer Vernooij [Thu, 2 May 2013 23:03:18 +0000 (00:03 +0100)]
test_client: Put separate tests into their own methods.

10 years agoFix URL handling so that git+ssh:// is treated like git's ssh:// * fixed unit test...
Brian Visel [Thu, 2 May 2013 03:57:09 +0000 (21:57 -0600)]
Fix URL handling so that git+ssh:// is treated like git's ssh:// * fixed unit test as well

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
10 years agoweb: Some formatting fixes.
Jelmer Vernooij [Thu, 2 May 2013 22:56:17 +0000 (23:56 +0100)]
web: Some formatting fixes.

10 years agoFix PEP8 compatibility of setup.py.
Jelmer Vernooij [Thu, 2 May 2013 22:33:37 +0000 (23:33 +0100)]
Fix PEP8 compatibility of setup.py.

10 years agoSimplify parsing for multi-line fields.
Jelmer Vernooij [Thu, 2 May 2013 22:14:11 +0000 (23:14 +0100)]
Simplify parsing for multi-line fields.

10 years agoAdd support for mergetags.
milki [Thu, 2 May 2013 21:26:53 +0000 (22:26 +0100)]
Add support for mergetags.

Bug: https://bugs.launchpad.net/dulwich/+bug/963525

10 years agoUse indentation in config file consistent with C Git.
Jelmer Vernooij [Thu, 2 May 2013 02:31:50 +0000 (03:31 +0100)]
Use indentation in config file consistent with C Git.

Bug: https://bugs.launchpad.net/dulwich/+bug/1031356

11 years agoReplace docstring with comments; breaks epydoc.
Jelmer Vernooij [Wed, 5 Dec 2012 04:36:52 +0000 (05:36 +0100)]
Replace docstring with comments; breaks epydoc.

11 years agoMerge push efficiency fixes from Artem Tikhomirov.
Jelmer Vernooij [Wed, 5 Dec 2012 04:31:07 +0000 (05:31 +0100)]
Merge push efficiency fixes from Artem Tikhomirov.

11 years agoSome more formatting fixes.
Jelmer Vernooij [Wed, 5 Dec 2012 04:29:34 +0000 (05:29 +0100)]
Some more formatting fixes.

11 years agoUpdate NEWS.
Jelmer Vernooij [Wed, 5 Dec 2012 04:29:26 +0000 (05:29 +0100)]
Update NEWS.

11 years agoformatting fixes, trailing whitespace, unused imports.
Jelmer Vernooij [Wed, 5 Dec 2012 04:25:07 +0000 (05:25 +0100)]
formatting fixes, trailing whitespace, unused imports.

11 years agoBug 562676: Push efficiency - report missing objects only.
Artem Tikhomirov [Wed, 5 Dec 2012 04:21:44 +0000 (05:21 +0100)]
Bug 562676: Push efficiency - report missing objects only.

Fix with tests.

11 years agoStart on 0.9.0 (again).
Jelmer Vernooij [Tue, 27 Nov 2012 15:56:24 +0000 (16:56 +0100)]
Start on 0.9.0 (again).

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>
11 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>