Jelmer Vernooij [Mon, 28 Oct 2013 12:40:27 +0000 (13:40 +0100)]
Reimplement iteritems.
Jelmer Vernooij [Mon, 28 Oct 2013 12:32:16 +0000 (13:32 +0100)]
Add test for ConfigDict.iteritems.
Jelmer Vernooij [Mon, 28 Oct 2013 11:57:45 +0000 (12:57 +0100)]
Add wrapper for commit-tree.
Jelmer Vernooij [Sun, 27 Oct 2013 08:25:02 +0000 (09:25 +0100)]
Add porcelain for diff-tree.
max [Tue, 24 Sep 2013 01:56:07 +0000 (03:56 +0200)]
Properly close pack files on exceptions.
Cherry-picked from max0d41 @ GitHub.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Marcin Kuzminski [Tue, 22 Oct 2013 23:45:00 +0000 (01:45 +0200)]
Python 2.4+ compat
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Marcin Kuzminski [Thu, 17 Oct 2013 17:24:54 +0000 (19:24 +0200)]
Added_symbolic_ref function into porcelain module.
This implements `git symbolic-ref` command via Dulwich porcelain.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Marcin Kuźmiński [Tue, 22 Oct 2013 22:06:10 +0000 (00:06 +0200)]
Update hooks.py
python2.4 compat for hooks.py
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Thu, 17 Oct 2013 05:57:56 +0000 (22:57 -0700)]
Fix dulwich._compat docstring to make pydoctor happy.
Jelmer Vernooij [Thu, 17 Oct 2013 05:53:10 +0000 (22:53 -0700)]
Update NEWS.
Jelmer Vernooij [Thu, 17 Oct 2013 05:52:46 +0000 (22:52 -0700)]
Merge branch 'porcelain' of git://git.samba.org/jelmer/dulwich
Jelmer Vernooij [Thu, 17 Oct 2013 04:37:44 +0000 (21:37 -0700)]
Remove some unnecessary code, update NEWS.
Víðir Valberg Guðmundsson [Wed, 16 Oct 2013 22:34:07 +0000 (00:34 +0200)]
Making set_description method compatible with python 2.4 by not using 'with'
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Víðir Valberg Guðmundsson [Wed, 16 Oct 2013 13:53:17 +0000 (15:53 +0200)]
Added Repo.set_description method.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Thu, 17 Oct 2013 04:34:21 +0000 (21:34 -0700)]
Return Repo from porcelain.clone().
Jelmer Vernooij [Fri, 4 Oct 2013 14:01:34 +0000 (15:01 +0100)]
Support author and committer options to commit.
Jelmer Vernooij [Sun, 29 Sep 2013 21:23:41 +0000 (22:23 +0100)]
Add implementation of 'show' for porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 21:16:31 +0000 (22:16 +0100)]
Add log command to porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 21:07:31 +0000 (22:07 +0100)]
Clarify porcelain module behaviour.
Jelmer Vernooij [Sun, 29 Sep 2013 20:27:12 +0000 (21:27 +0100)]
Provide a rm command in porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 01:36:06 +0000 (02:36 +0100)]
Add 'add' command to porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 01:27:37 +0000 (02:27 +0100)]
Support passing in repositories for repo arguments in porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 01:16:42 +0000 (02:16 +0100)]
Add clone to porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 01:09:05 +0000 (02:09 +0100)]
Add init support to porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 01:05:02 +0000 (02:05 +0100)]
Add basic commit support to porcelain.
Jelmer Vernooij [Sun, 29 Sep 2013 01:02:24 +0000 (02:02 +0100)]
Add notes about supporting environment variables.
Jelmer Vernooij [Sun, 29 Sep 2013 00:33:26 +0000 (01:33 +0100)]
Add porcelain for update_server_info.
Jelmer Vernooij [Sun, 29 Sep 2013 00:26:02 +0000 (01:26 +0100)]
Add porcelain for 'archive' command.
Jelmer Vernooij [Sat, 28 Sep 2013 23:57:38 +0000 (00:57 +0100)]
Add config example.
milki [Sat, 28 Sep 2013 14:48:57 +0000 (15:48 +0100)]
Update NEWS.
milki [Sat, 28 Sep 2013 06:24:58 +0000 (23:24 -0700)]
Add ssh_kwargs attribute to ParamikoSSHVendor
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
milki [Sat, 28 Sep 2013 06:24:32 +0000 (23:24 -0700)]
Default paramiko port to 22 explicitly
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Fri, 27 Sep 2013 21:19:43 +0000 (22:19 +0100)]
Start on 0.9.4.
Jelmer Vernooij [Fri, 27 Sep 2013 21:17:02 +0000 (22:17 +0100)]
Release 0.9.3.
Jelmer Vernooij [Fri, 27 Sep 2013 21:16:33 +0000 (22:16 +0100)]
Fix stdint.h path in MANIFEST.in.
Jelmer Vernooij [Thu, 26 Sep 2013 22:28:31 +0000 (23:28 +0100)]
Start on 0.9.3.
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>