Jelmer Vernooij [Thu, 26 Sep 2013 22:27:15 +0000 (23:27 +0100)]
Release 0.9.2.
Jelmer Vernooij [Thu, 26 Sep 2013 22:26:57 +0000 (23:26 +0100)]
Update NEWS.
Mark Mikofski [Thu, 26 Sep 2013 19:01:35 +0000 (12:01 -0700)]
add stdint.h to MANIFEST.in, fixes #114
Signed-off-by: Mark Mikofski <mark.mikofski@sunpowercorp.com>
Jelmer Vernooij [Tue, 24 Sep 2013 22:34:03 +0000 (23:34 +0100)]
Avoid unnecessary re-opening of index files during pack close.
Jelmer Vernooij [Sun, 22 Sep 2013 20:51:10 +0000 (21:51 +0100)]
Tweak the project description.
Jelmer Vernooij [Sun, 22 Sep 2013 20:29:42 +0000 (21:29 +0100)]
Ignore dulwich.egg-info directory.
Jelmer Vernooij [Sun, 22 Sep 2013 19:36:11 +0000 (20:36 +0100)]
Start on 0.9.2.
Jelmer Vernooij [Sun, 22 Sep 2013 19:33:57 +0000 (20:33 +0100)]
Release 0.9.1.
Jelmer Vernooij [Sun, 22 Sep 2013 20:25:53 +0000 (21:25 +0100)]
Ship test data.
Jelmer Vernooij [Sun, 22 Sep 2013 20:12:21 +0000 (21:12 +0100)]
Install bin-receive-pack and bin-upload-pack.
Jelmer Vernooij [Sun, 22 Sep 2013 20:06:46 +0000 (21:06 +0100)]
Drop download_url - now hosting on pypi.
Jelmer Vernooij [Sun, 22 Sep 2013 19:59:34 +0000 (20:59 +0100)]
Install dulwich.tests.compat.
Jelmer Vernooij [Sun, 22 Sep 2013 19:43:52 +0000 (20:43 +0100)]
Ship all docs and examples.
Jelmer Vernooij [Sun, 22 Sep 2013 16:14:49 +0000 (17:14 +0100)]
Raise appropriate NotImplementedError when encountering dumb HTTP servers.
Jelmer Vernooij [Tue, 17 Sep 2013 23:21:42 +0000 (00:21 +0100)]
Add example for clone.
Jelmer Vernooij [Tue, 17 Sep 2013 22:48:14 +0000 (23:48 +0100)]
Add example invocation for diff.py.
Jelmer Vernooij [Tue, 17 Sep 2013 19:28:50 +0000 (20:28 +0100)]
Add --backend flag to dul-daemon.
Jelmer Vernooij [Sat, 14 Sep 2013 14:22:23 +0000 (15:22 +0100)]
Provide fallback for SSHVendor.connect_ssh().
Jelmer Vernooij [Sun, 8 Sep 2013 21:51:17 +0000 (22:51 +0100)]
Add ObjectStore.close.
Jelmer Vernooij [Sat, 7 Sep 2013 08:36:35 +0000 (09:36 +0100)]
Add abort return value to ObjectStore.add_pack.
Jelmer Vernooij [Wed, 4 Sep 2013 22:20:34 +0000 (23:20 +0100)]
Skip remove branch test for dumb web case.
Jelmer Vernooij [Wed, 4 Sep 2013 22:17:07 +0000 (23:17 +0100)]
Add some compat tests for removing refs during push.
Jelmer Vernooij [Wed, 4 Sep 2013 22:05:45 +0000 (23:05 +0100)]
Remove some trailing whitespace.
Jelmer Vernooij [Wed, 4 Sep 2013 22:03:32 +0000 (23:03 +0100)]
Support running 'dulwich.server' and 'dulwich.web' using 'python -m'.
Fabien Boucher [Tue, 3 Sep 2013 09:29:59 +0000 (11:29 +0200)]
Add unittest for issue del ref (issue #108)
Add a test for _apply_pack of ReceivePackHandler
in order to test deleting a ref.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Fabien Boucher [Sun, 1 Sep 2013 18:09:09 +0000 (20:09 +0200)]
Fix delete remote refs
Skip waiting for pack data if only one pull
command is received and this is a delete
command.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Wed, 4 Sep 2013 21:16:39 +0000 (22:16 +0100)]
Remove unused import.
Jelmer Vernooij [Mon, 2 Sep 2013 01:11:13 +0000 (02:11 +0100)]
Actually, enforce determine_wants() returns an empty list.
Fabien Boucher [Sun, 1 Sep 2013 16:37:52 +0000 (18:37 +0200)]
Handle case that client does not send wanted refs.
Determine_wants can return empty dict if client
does not send wanted refs. Avoid stack trace.
Fixes #106
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Mon, 26 Aug 2013 14:12:25 +0000 (14:12 +0000)]
Add 'dulwich diff' command.
Jelmer Vernooij [Mon, 26 Aug 2013 14:09:18 +0000 (14:09 +0000)]
Add example showing the use of diff.
Jelmer Vernooij [Mon, 26 Aug 2013 13:24:28 +0000 (13:24 +0000)]
Rename SSHVendor.connect_ssh to SSHVendor.run_command.
Aaron O'Mullan [Mon, 26 Aug 2013 12:52:39 +0000 (12:52 +0000)]
Add ParamikoSSHVendor.
David Bennett [Mon, 19 Aug 2013 17:37:09 +0000 (12:37 -0500)]
Add add_pack and add_thin_pack methods to MemoryObjectStore.
Closes #97.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Conflicts:
NEWS
William Grant [Mon, 19 Aug 2013 04:51:09 +0000 (14:51 +1000)]
Update NEWS.
William Grant [Mon, 19 Aug 2013 04:31:50 +0000 (14:31 +1000)]
Pack's constructor now takes resolve_ext_ref.
William Grant [Mon, 19 Aug 2013 04:19:50 +0000 (14:19 +1000)]
Support thin packs in Pack.iterobjects(), Pack.get_raw().
Jelmer Vernooij [Sun, 18 Aug 2013 16:27:30 +0000 (16:27 +0000)]
Add Repo.get_description method.
Jelmer Vernooij [Thu, 15 Aug 2013 17:30:15 +0000 (17:30 +0000)]
Merge branch 'http-fetch-capa' of git://github.com/wgrant/dulwich
Conflicts:
NEWS
William Grant [Thu, 15 Aug 2013 01:49:14 +0000 (11:49 +1000)]
Fix run_git_or_fail to let stderr be overridden.
GitHTTPServer relies on stderr being sent to nowhere, but
run_git_or_fail always sent it to stdout, causing non-side-band clients
to fail.
William Grant [Wed, 14 Aug 2013 04:23:54 +0000 (14:23 +1000)]
Fix capability negotiation when fetching packs over HTTP.
Jelmer Vernooij [Tue, 13 Aug 2013 00:05:25 +0000 (00:05 +0000)]
Add SSHVendor abstraction class.
Jelmer Vernooij [Sat, 10 Aug 2013 13:17:20 +0000 (13:17 +0000)]
Update NEWS.
milki [Sat, 6 Oct 2012 19:09:27 +0000 (12:09 -0700)]
Remove delete commands when no delete=refs
Add check for no 'delete-refs' from server and remove commands.
Additionally, report as if these commands failed.
According to the pack protocol for receive-pack at
https://www.kernel.org/pub/software/scm/git/docs/v1.7.1/technical/pack-protocol.txt
If the receiving end does not support delete-refs, the sending end MUST
NOT ask for delete command.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
milki [Wed, 3 Oct 2012 06:08:58 +0000 (23:08 -0700)]
send a packfile if there is an update/create cmd
Add check for update/create commands (non delete commands)
when deciding to send a packfile on send_pack.
According to the pack protocol for receive-pack at
https://www.kernel.org/pub/software/scm/git/docs/v1.7.1/technical/pack-protocol.txt
A pack-file MUST be sent if either create or update command is used,
even if the server already has all the necessary objects. In this
case the client MUST send an empty pack-file. The only time this
is likely to happen is if the client is creating
a new branch or a tag that points to an existing obj-id.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Sat, 3 Aug 2013 12:25:24 +0000 (12:25 +0000)]
Update NEWS.
Alberto Ruiz [Thu, 1 Aug 2013 16:08:29 +0000 (18:08 +0200)]
Add test case for using a single string instead of an iterable as a valid argument for BaseRepo.get_walker
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Alberto Ruiz [Thu, 1 Aug 2013 14:47:26 +0000 (16:47 +0200)]
If a string is passed in BaseRepo.get_walker we turn it into a one item list instead of iterating over the string itself
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Tue, 18 Jun 2013 07:00:12 +0000 (00:00 -0700)]
Update NEWS, add test for fetch pack with side-band-64k disabled.
David Keijser [Mon, 17 Jun 2013 08:41:51 +0000 (10:41 +0200)]
Fix error in fetching with side-band-64k disabled
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Mon, 3 Jun 2013 21:58:48 +0000 (22:58 +0100)]
Update NEWS.
Jelmer Vernooij [Mon, 3 Jun 2013 21:54:09 +0000 (22:54 +0100)]
Fix tests after adding support for 40 character refs.
Chow Loong Jin [Mon, 3 Jun 2013 04:39:19 +0000 (12:39 +0800)]
Catch ValueError in BaseRepo.__getitem__ when querying object store
This allows us to fall back on querying the refs when looking up 40-character
refs.
Fixes: #82
Chow Loong Jin [Mon, 3 Jun 2013 03:55:47 +0000 (11:55 +0800)]
Raise a ValueError for invalid shas
When hex_to_sha is passed an invalid sha, raise a ValueError instead of a
TypeError. This exception is more appropriate since the sha is still a string.
Jelmer Vernooij [Fri, 31 May 2013 00:12:17 +0000 (01:12 +0100)]
Start on 0.9.1.
Jelmer Vernooij [Thu, 30 May 2013 23:54:36 +0000 (00:54 +0100)]
Release 0.9.0.
milki [Sun, 26 May 2013 20:40:56 +0000 (13:40 -0700)]
Update NEWS
milki [Tue, 21 Aug 2012 19:33:09 +0000 (12:33 -0700)]
Add shell hook tests
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
Jelmer Vernooij [Sat, 25 May 2013 15:29:00 +0000 (16:29 +0100)]
Update NEWS, AUTHORS.
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>
Jelmer Vernooij [Sat, 25 May 2013 15:14:48 +0000 (16:14 +0100)]
Update NEWS.
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>
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>
Jelmer Vernooij [Fri, 24 May 2013 21:37:31 +0000 (22:37 +0100)]
Ask for forgiveness, not permission.
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>
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>
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>
Jelmer Vernooij [Sun, 19 May 2013 15:03:29 +0000 (16:03 +0100)]
Fix formatting of docstrings in dulwich._compat.
Jelmer Vernooij [Sun, 19 May 2013 15:01:03 +0000 (16:01 +0100)]
Update NEWS about tag chapter in tutorial.
rfaulk [Mon, 6 May 2013 01:54:09 +0000 (18:54 -0700)]
add. Initial draft of git tag documentation in dulwich.
Jelmer Vernooij [Sat, 4 May 2013 16:15:28 +0000 (17:15 +0100)]
Update NEWS for alternate paths patch.
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>
Jelmer Vernooij [Sat, 4 May 2013 16:10:04 +0000 (17:10 +0100)]
Add bug # and author for relative path SSH patch.
Jelmer Vernooij [Sat, 4 May 2013 16:07:24 +0000 (17:07 +0100)]
Update NEWS for SSH client ~ expansion patch.
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>
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>
Jelmer Vernooij [Sat, 4 May 2013 15:17:23 +0000 (16:17 +0100)]
Clarify HACKING, add note on unit tests.
Jelmer Vernooij [Sat, 4 May 2013 14:58:55 +0000 (15:58 +0100)]
Provide OrderedDict fallback for Python < 2.6, fix test.
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>
Jelmer Vernooij [Sat, 4 May 2013 14:41:26 +0000 (15:41 +0100)]
Add support for honoring core/filemode when building trees.
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>
Jelmer Vernooij [Sat, 4 May 2013 14:28:36 +0000 (15:28 +0100)]
Update NEWS for get_transport_and_path relative path fix.
Jelmer Vernooij [Sat, 4 May 2013 14:26:37 +0000 (15:26 +0100)]
Update NEWS, provide way to force diffing of 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>
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>
Jelmer Vernooij [Thu, 2 May 2013 23:03:18 +0000 (00:03 +0100)]
test_client: Put separate tests into their own methods.
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>
Jelmer Vernooij [Thu, 2 May 2013 22:56:17 +0000 (23:56 +0100)]
web: Some formatting fixes.
Jelmer Vernooij [Thu, 2 May 2013 22:33:37 +0000 (23:33 +0100)]
Fix PEP8 compatibility of setup.py.
Jelmer Vernooij [Thu, 2 May 2013 22:14:11 +0000 (23:14 +0100)]
Simplify parsing for multi-line fields.
milki [Thu, 2 May 2013 21:26:53 +0000 (22:26 +0100)]
Add support for mergetags.
Bug: https://bugs.launchpad.net/dulwich/+bug/963525
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
Jelmer Vernooij [Wed, 5 Dec 2012 04:36:52 +0000 (05:36 +0100)]
Replace docstring with comments; breaks epydoc.
Jelmer Vernooij [Wed, 5 Dec 2012 04:31:07 +0000 (05:31 +0100)]
Merge push efficiency fixes from Artem Tikhomirov.
Jelmer Vernooij [Wed, 5 Dec 2012 04:29:34 +0000 (05:29 +0100)]
Some more formatting fixes.
Jelmer Vernooij [Wed, 5 Dec 2012 04:29:26 +0000 (05:29 +0100)]
Update NEWS.
Jelmer Vernooij [Wed, 5 Dec 2012 04:25:07 +0000 (05:25 +0100)]
formatting fixes, trailing whitespace, unused imports.
Artem Tikhomirov [Wed, 5 Dec 2012 04:21:44 +0000 (05:21 +0100)]
Bug 562676: Push efficiency - report missing objects only.
Fix with tests.
Jelmer Vernooij [Tue, 27 Nov 2012 15:56:24 +0000 (16:56 +0100)]
Start on 0.9.0 (again).