jelmer/dulwich.git
7 years agoRelease 0.14.0. dulwich-0.14.0
Jelmer Vernooij [Sun, 3 Jul 2016 19:12:17 +0000 (19:12 +0000)]
Release 0.14.0.

7 years agoAllow ZERO_SHA to mean 'does not exist' when setting/removing refs.
Jelmer Vernooij [Sun, 3 Jul 2016 15:53:45 +0000 (15:53 +0000)]
Allow ZERO_SHA to mean 'does not exist' when setting/removing refs.

7 years agoFix some pyflakes warnings.
Jelmer Vernooij [Sun, 3 Jul 2016 15:41:39 +0000 (15:41 +0000)]
Fix some pyflakes warnings.

7 years agoStop magic protocol ref `capabilities^{}` from leaking out to users.
Jelmer Vernooij [Sun, 3 Jul 2016 13:43:37 +0000 (13:43 +0000)]
Stop magic protocol ref `capabilities^{}` from leaking out to users.

Fixes #254

7 years agoSupport removing refs from porcelain.push(). Fixes #437.
Jelmer Vernooij [Sun, 3 Jul 2016 13:23:02 +0000 (13:23 +0000)]
Support removing refs from porcelain.push(). Fixes #437.

7 years agoAdd some documentation.
Jelmer Vernooij [Sun, 3 Jul 2016 12:50:45 +0000 (12:50 +0000)]
Add some documentation.

7 years agoAdd backwards compatibility wrapper for RefsContainer._follow.
Jelmer Vernooij [Sun, 3 Jul 2016 11:11:23 +0000 (11:11 +0000)]
Add backwards compatibility wrapper for RefsContainer._follow.

7 years agoAllow ZERO_SHA to be used to mean 'ref should not exist'.
Jelmer Vernooij [Sat, 2 Jul 2016 15:22:29 +0000 (15:22 +0000)]
Allow ZERO_SHA to be used to mean 'ref should not exist'.

7 years agoAdd test for pushing of ref deletes.
Jelmer Vernooij [Sat, 2 Jul 2016 15:00:51 +0000 (15:00 +0000)]
Add test for pushing of ref deletes.

7 years agoUse conditional set/remove to cope with race conditions.
Jelmer Vernooij [Sat, 2 Jul 2016 14:49:17 +0000 (14:49 +0000)]
Use conditional set/remove to cope with race conditions.

7 years agoAdd RefsContainer.follow() method. Addresses issue #438.
Jelmer Vernooij [Sat, 2 Jul 2016 14:31:54 +0000 (14:31 +0000)]
Add RefsContainer.follow() method. Addresses issue #438.

7 years agoA test for default tag timing.
Julian Berman [Fri, 24 Jun 2016 20:01:15 +0000 (16:01 -0400)]
A test for default tag timing.

7 years agoFix ref parsing for refs with no left side.
Julian Berman [Fri, 24 Jun 2016 19:55:19 +0000 (15:55 -0400)]
Fix ref parsing for refs with no left side.

7 years agoProperly set default tag times to now when unprovided.
Julian Berman [Thu, 23 Jun 2016 14:53:26 +0000 (10:53 -0400)]
Properly set default tag times to now when unprovided.

7 years agoFix a presumed typo, which breaks deleting refs.
Julian Berman [Wed, 22 Jun 2016 20:08:14 +0000 (16:08 -0400)]
Fix a presumed typo, which breaks deleting refs.

7 years agoFix python3 compatibility.
Jelmer Vernooij [Wed, 8 Jun 2016 00:14:28 +0000 (00:14 +0000)]
Fix python3 compatibility.

7 years agoAdd parse_submodules function.
Jelmer Vernooij [Wed, 8 Jun 2016 00:07:00 +0000 (00:07 +0000)]
Add parse_submodules function.

7 years agoCheck refname/sha1 types.
Jelmer Vernooij [Tue, 7 Jun 2016 23:37:51 +0000 (23:37 +0000)]
Check refname/sha1 types.

7 years agoPresence in the index doesn't imply presence on disk.
Jelmer Vernooij [Tue, 7 Jun 2016 22:27:19 +0000 (22:27 +0000)]
Presence in the index doesn't imply presence on disk.

7 years agofile_like.encoding can be None.
Julian Berman [Tue, 31 May 2016 19:34:10 +0000 (15:34 -0400)]
file_like.encoding can be None.

It is specifically if stdout or stderr is just a regular open file, i.e.
open("foo", "w").encoding == None.

7 years agoFix tests when running in ASCII environment. (#433).
Jelmer Vernooij [Mon, 6 Jun 2016 16:18:07 +0000 (16:18 +0000)]
Fix tests when running in ASCII environment. (#433).

7 years agoFix markdown syntax for installation with pure mode.
Jelmer Vernooij [Wed, 18 May 2016 00:05:11 +0000 (00:05 +0000)]
Fix markdown syntax for installation with pure mode.

7 years agoUpdate protocol.txt
Elan Ruusamäe [Tue, 3 May 2016 18:57:59 +0000 (21:57 +0300)]
Update protocol.txt

typo

7 years agoporcelain add and commit correctly
Kyle Kelly [Fri, 29 Apr 2016 20:49:49 +0000 (13:49 -0700)]
porcelain add and commit correctly

7 years agoFix syntax for dulwich.config.StackedConfig.default_backends docstring.
Jelmer Vernooij [Thu, 28 Apr 2016 21:49:23 +0000 (21:49 +0000)]
Fix syntax for dulwich.config.StackedConfig.default_backends docstring.

7 years agoAdd support for $XDG_CONFIG_HOME/git/config and GIT_CONFIG_NOSYSTEM.
Julian Berman [Thu, 28 Apr 2016 19:44:49 +0000 (15:44 -0400)]
Add support for $XDG_CONFIG_HOME/git/config and GIT_CONFIG_NOSYSTEM.

git also looks here.

8 years agoImprove fix for ShaFile.id behaviour after as_raw_chunks.
Jelmer Vernooij [Wed, 27 Apr 2016 00:44:59 +0000 (00:44 +0000)]
Improve fix for ShaFile.id behaviour after as_raw_chunks.

8 years agoupdated the copy method of ShaFile to make sure that the id is always correct when...
Félix Mattrat [Tue, 26 Apr 2016 08:51:58 +0000 (10:51 +0200)]
updated the copy method of ShaFile to make sure that the id is always correct when it's copied

8 years agoRemove deprecated _needs_parsing logic; never used.
Jelmer Vernooij [Wed, 27 Apr 2016 00:19:17 +0000 (00:19 +0000)]
Remove deprecated _needs_parsing logic; never used.

8 years agoRemove unused ShaFile._make_sha.
Jelmer Vernooij [Wed, 27 Apr 2016 00:13:22 +0000 (00:13 +0000)]
Remove unused ShaFile._make_sha.

8 years agoDisable gevent/greenlet for pypy.
Jelmer Vernooij [Mon, 25 Apr 2016 00:20:23 +0000 (00:20 +0000)]
Disable gevent/greenlet for pypy.

8 years agoAdd dependencies for running test_greenthreads and test_swift on python3.
Jelmer Vernooij [Sun, 24 Apr 2016 22:08:38 +0000 (22:08 +0000)]
Add dependencies for running test_greenthreads and test_swift on python3.

8 years agoAlso fix dulwich.test.test_greenthreads on python3.4.
Jelmer Vernooij [Sun, 24 Apr 2016 21:54:14 +0000 (21:54 +0000)]
Also fix dulwich.test.test_greenthreads on python3.4.

8 years agoFix python3 compatibility in dulwich.greenthreads, enable travis testing. Fixes:...
Jelmer Vernooij [Sun, 24 Apr 2016 21:19:56 +0000 (21:19 +0000)]
Fix python3 compatibility in dulwich.greenthreads, enable travis testing. Fixes: #422

8 years agoStart on 0.14.0.
Jelmer Vernooij [Sun, 24 Apr 2016 15:17:31 +0000 (15:17 +0000)]
Start on 0.14.0.

8 years agoRelease 0.13.0. dulwich-0.13.0
Jelmer Vernooij [Sun, 24 Apr 2016 15:15:04 +0000 (15:15 +0000)]
Release 0.13.0.

8 years agoUpdate NEWS, README.md to reflect fixing of #295.
Jelmer Vernooij [Sun, 24 Apr 2016 15:05:56 +0000 (15:05 +0000)]
Update NEWS, README.md to reflect fixing of #295.

Re-enable compat tests for web on Python3.

8 years agoFix fastimport support on python3.4.
Jelmer Vernooij [Sun, 24 Apr 2016 14:54:09 +0000 (14:54 +0000)]
Fix fastimport support on python3.4.

8 years agoUse assertIn / assertNotIn for easier debugging.
Jelmer Vernooij [Sun, 24 Apr 2016 14:45:42 +0000 (14:45 +0000)]
Use assertIn / assertNotIn for easier debugging.

8 years agoFix unit tests
Jonas Haag [Sat, 23 Apr 2016 22:17:09 +0000 (00:17 +0200)]
Fix unit tests

8 years agoFix #295: Python 3 compatibility for dulwich.web
Jonas Haag [Sat, 23 Apr 2016 21:57:33 +0000 (23:57 +0200)]
Fix #295: Python 3 compatibility for dulwich.web

8 years agoUse copies rather than references in MemoryObjectStore.
Jelmer Vernooij [Fri, 22 Apr 2016 21:57:11 +0000 (21:57 +0000)]
Use copies rather than references in MemoryObjectStore.

8 years agoDon't rely on MemoryObjectStore returning the exact same object.
Jelmer Vernooij [Fri, 22 Apr 2016 21:54:57 +0000 (21:54 +0000)]
Don't rely on MemoryObjectStore returning the exact same object.

8 years agoAdd test to verify objects stored in MemoryObjectStore can not be lost when they...
Félix Mattrat [Fri, 22 Apr 2016 11:01:19 +0000 (13:01 +0200)]
Add test to verify objects stored in MemoryObjectStore can not be lost when they are modified.

8 years agowhen emitting a fastimport.FileModifyCommand referencing a Blob the marker need to...
Félix Mattrat [Tue, 19 Apr 2016 10:58:50 +0000 (12:58 +0200)]
when emitting a fastimport.FileModifyCommand referencing a Blob the marker need to be prefixed by :

8 years agoFastimport python3 support.
Jelmer Vernooij [Mon, 18 Apr 2016 18:36:48 +0000 (18:36 +0000)]
Fastimport python3 support.

8 years agoFix Python3 client web support.
Jelmer Vernooij [Wed, 13 Apr 2016 02:30:00 +0000 (02:30 +0000)]
Fix Python3 client web support.

8 years agoAvoid getheaders() - incompatible with Python3.
Jelmer Vernooij [Wed, 13 Apr 2016 01:39:28 +0000 (01:39 +0000)]
Avoid getheaders() - incompatible with Python3.

8 years agoUse headers.get() to get Content-Type; improves Python3 compatibility.
Jelmer Vernooij [Wed, 13 Apr 2016 01:35:23 +0000 (01:35 +0000)]
Use headers.get() to get Content-Type; improves Python3 compatibility.

8 years agoMerge remote-tracking branch 'jonashaag/fix-140'
Jelmer Vernooij [Wed, 13 Apr 2016 01:03:49 +0000 (01:03 +0000)]
Merge remote-tracking branch 'jonashaag/fix-140'

8 years agoUpdate NEWS.
Jelmer Vernooij [Wed, 13 Apr 2016 01:02:24 +0000 (01:02 +0000)]
Update NEWS.

8 years agoFix hang on Gzip decompression
Jonas Haag [Tue, 12 Apr 2016 13:40:38 +0000 (15:40 +0200)]
Fix hang on Gzip decompression

'LimitedInputFilter' should be applied before the Gzip middleware as
'CONTENT_LENGTH' refers to the size of the *compressed* body.  If
applied in wrong order, this may cause 'copyfileobj()' to try to read
more data from the socket than is available, resulting in a call to
'recv()' that hangs forever.

8 years agoDon't expect 'wsgi.input' to have working 'seek' method
Jonas Haag [Tue, 12 Apr 2016 09:16:44 +0000 (11:16 +0200)]
Don't expect 'wsgi.input' to have working 'seek' method

This is a follow-up to 5a69c46 which misses the fact that even though an
input stream might have 'seek' and 'tell' methods, they do not
necessarily have to be implemented.  See also http://bugs.python.org/issue12877

8 years agoDon't use deprecated assertEquals.
Jelmer Vernooij [Sun, 3 Apr 2016 15:59:47 +0000 (15:59 +0000)]
Don't use deprecated assertEquals.

8 years agoDrop support for python 2.6.
Jelmer Vernooij [Sun, 3 Apr 2016 15:47:16 +0000 (15:47 +0000)]
Drop support for python 2.6.

8 years agoFix 'status' in newly initialized trees.
Jelmer Vernooij [Sun, 21 Feb 2016 19:10:10 +0000 (19:10 +0000)]
Fix 'status' in newly initialized trees.

8 years agoMerge support for empty messages in git commits and tags by Nicolas Dandrimont.
Jelmer Vernooij [Sun, 21 Feb 2016 02:16:26 +0000 (02:16 +0000)]
Merge support for empty messages in git commits and tags by Nicolas Dandrimont.

8 years ago.travis.yml: add Python 3.5
Nicolas Dandrimont [Wed, 17 Feb 2016 11:19:59 +0000 (12:19 +0100)]
.travis.yml: add Python 3.5

8 years agoSupport completely empty messages in git objects
Nicolas Dandrimont [Wed, 17 Feb 2016 10:47:29 +0000 (11:47 +0100)]
Support completely empty messages in git objects

As it turns out, a git object can be terminated by the last header,
without empty lines. In that case, dulwich currently "eats" the last
header line, which is obviously wrong.

When such a case happens, return an object with a None message instead
of an empty line. We make sure that serialization/deserialization
still works as expected.

8 years agotox.ini: add support for Python 3.5
Nicolas Dandrimont [Wed, 17 Feb 2016 11:13:26 +0000 (12:13 +0100)]
tox.ini: add support for Python 3.5

8 years agoFix a couple of compiler warnings
Jonas Haag [Sun, 7 Feb 2016 18:19:09 +0000 (19:19 +0100)]
Fix a couple of compiler warnings

8 years agoserver: trivial comment fix
Damien Tournoud [Mon, 8 Feb 2016 09:37:39 +0000 (10:37 +0100)]
server: trivial comment fix

8 years agoFix typos in the documentation.
Jakub Wilk [Fri, 15 Jan 2016 23:20:42 +0000 (00:20 +0100)]
Fix typos in the documentation.

8 years agoSupport the ssh: URL scheme.
Jelmer Vernooij [Mon, 4 Jan 2016 20:51:25 +0000 (20:51 +0000)]
Support the ssh: URL scheme.

8 years agoProvide abort() when working in thin client mode.
Jelmer Vernooij [Mon, 28 Dec 2015 16:34:15 +0000 (16:34 +0000)]
Provide abort() when working in thin client mode.

8 years agoAgree to relicensing.
Gary van der Merwe [Wed, 16 Dec 2015 08:43:16 +0000 (10:43 +0200)]
Agree to relicensing.

8 years agoShip .travis.yml.
Jelmer Vernooij [Sun, 13 Dec 2015 15:46:16 +0000 (15:46 +0000)]
Ship .travis.yml.

8 years agoStart on 0.12.1.
Jelmer Vernooij [Sun, 13 Dec 2015 15:46:07 +0000 (15:46 +0000)]
Start on 0.12.1.

8 years agoRelease 0.12.0. dulwich-0.12.0
Jelmer Vernooij [Sun, 13 Dec 2015 15:28:59 +0000 (15:28 +0000)]
Release 0.12.0.

8 years agoShip .testr.conf and TODO.
Jelmer Vernooij [Sun, 13 Dec 2015 14:10:00 +0000 (14:10 +0000)]
Ship .testr.conf and TODO.

8 years agoClarify in docstrings that Client.{fetch_pack,fetch} returns all remote
Jelmer Vernooij [Thu, 3 Dec 2015 16:04:56 +0000 (16:04 +0000)]
Clarify in docstrings that Client.{fetch_pack,fetch} returns all remote
refs, not just those fetched.

8 years agoAdd note about performance, update NEWS.
Jelmer Vernooij [Thu, 3 Dec 2015 15:57:40 +0000 (15:57 +0000)]
Add note about performance, update NEWS.

8 years agoFix thinpack support over http
jsbain [Tue, 1 Dec 2015 12:28:34 +0000 (12:28 +0000)]
Fix thinpack support over http

8 years agoUpdate NEWS.
Jelmer Vernooij [Thu, 3 Dec 2015 14:50:06 +0000 (14:50 +0000)]
Update NEWS.

8 years agoRemove unused import.
Jelmer Vernooij [Thu, 3 Dec 2015 14:49:39 +0000 (14:49 +0000)]
Remove unused import.

8 years agoAvoid hasattr.
Jelmer Vernooij [Thu, 3 Dec 2015 14:49:26 +0000 (14:49 +0000)]
Avoid hasattr.

8 years agoMerge branch 'py3-c-modules' of git://github.com/lelit/dulwich
Jelmer Vernooij [Thu, 3 Dec 2015 14:48:41 +0000 (14:48 +0000)]
Merge branch 'py3-c-modules' of git://github.com/lelit/dulwich

8 years agoAvoid deprecation warning due to renamed assertion method in Py3.2+
Lele Gaifax [Thu, 3 Dec 2015 12:38:28 +0000 (13:38 +0100)]
Avoid deprecation warning due to renamed assertion method in Py3.2+

8 years agoTreat pathnames as bytes in the Python 3 C modules
Lele Gaifax [Thu, 3 Dec 2015 12:20:55 +0000 (13:20 +0100)]
Treat pathnames as bytes in the Python 3 C modules

8 years agoMake the C accelerator modules compatible with Python 3
Lele Gaifax [Thu, 3 Dec 2015 09:37:29 +0000 (10:37 +0100)]
Make the C accelerator modules compatible with Python 3

This is just the first step toward full compatibility with Python 3: it
discloses some problems related to bytes-vs-str stricter rules that
needs to be sorted out.

8 years agoAdd missing DECREF on local variable
Lele Gaifax [Thu, 3 Dec 2015 09:31:05 +0000 (10:31 +0100)]
Add missing DECREF on local variable

8 years agoFix tests.
Jelmer Vernooij [Wed, 2 Dec 2015 19:51:50 +0000 (19:51 +0000)]
Fix tests.

8 years agoAdd read_reflog.
Jelmer Vernooij [Wed, 2 Dec 2015 19:39:39 +0000 (19:39 +0000)]
Add read_reflog.

8 years agoAdd parse_reflog_line.
Jelmer Vernooij [Wed, 2 Dec 2015 15:38:15 +0000 (15:38 +0000)]
Add parse_reflog_line.

8 years agoAdd format_reflog_line.
Jelmer Vernooij [Wed, 2 Dec 2015 15:29:07 +0000 (15:29 +0000)]
Add format_reflog_line.

8 years agoUpdate NEWS, fix style.
Jelmer Vernooij [Tue, 1 Dec 2015 00:14:58 +0000 (00:14 +0000)]
Update NEWS, fix style.

8 years agoEnhanced parsing of partial/ambiguous refs based on https://git-scm.com/docs/gitrevisions
Chris Bunney [Mon, 30 Nov 2015 20:40:27 +0000 (20:40 +0000)]
Enhanced parsing of partial/ambiguous refs based on https://git-scm.com/docs/gitrevisions

8 years agoAvoid using regular expressions for gitfile parsing.
Jelmer Vernooij [Mon, 23 Nov 2015 00:40:21 +0000 (00:40 +0000)]
Avoid using regular expressions for gitfile parsing.

8 years agoAdd constant for control dir name.
Jelmer Vernooij [Mon, 23 Nov 2015 00:32:36 +0000 (00:32 +0000)]
Add constant for control dir name.

8 years agoDistinguish code written by and copyright.
Jelmer Vernooij [Sun, 22 Nov 2015 22:41:58 +0000 (22:41 +0000)]
Distinguish code written by and copyright.

8 years agoRemove Chris.
Jelmer Vernooij [Sun, 15 Nov 2015 14:35:01 +0000 (14:35 +0000)]
Remove Chris.

8 years agoAdd basic porcelain page in tutorial.
Jelmer Vernooij [Sat, 7 Nov 2015 15:52:39 +0000 (15:52 +0000)]
Add basic porcelain page in tutorial.

8 years agoClarify that tox and travis can be used for running tests.
Jelmer Vernooij [Sat, 7 Nov 2015 14:52:43 +0000 (14:52 +0000)]
Clarify that tox and travis can be used for running tests.

8 years agosubprocess's mswindows attribute has gone private in 3.5
Stefano Rivera [Wed, 4 Nov 2015 23:27:51 +0000 (23:27 +0000)]
subprocess's mswindows attribute has gone private in 3.5

See: https://bugs.python.org/issue10838
Elsewhere, we look at sys.platform directly, so do it here too.

8 years agoMark archive tests as known failing on python2.6.
Jelmer Vernooij [Wed, 4 Nov 2015 03:04:21 +0000 (03:04 +0000)]
Mark archive tests as known failing on python2.6.

8 years agos/ListCBytesIO/ChunkedBytesIO/g
Jelmer Vernooij [Wed, 4 Nov 2015 02:19:48 +0000 (02:19 +0000)]
s/ListCBytesIO/ChunkedBytesIO/g

8 years agoAdd note saying this will be the last release supporting Python2.6
Jelmer Vernooij [Wed, 4 Nov 2015 02:07:26 +0000 (02:07 +0000)]
Add note saying this will be the last release supporting Python2.6

8 years agoPreviously the following would crash under Python 3.
Steven Myint [Tue, 3 Nov 2015 01:33:56 +0000 (01:33 +0000)]
Previously the following would crash under Python 3.

    $ python examples/clone.py . /tmp/clone

8 years agoSkip second archive test for now, as it's known broken on some platforms and needs...
Jelmer Vernooij [Tue, 3 Nov 2015 01:24:44 +0000 (01:24 +0000)]
Skip second archive test for now, as it's known broken on some platforms and needs more debugging.

8 years agoOnce again, fix tests on python3.
Jelmer Vernooij [Sun, 1 Nov 2015 04:33:02 +0000 (04:33 +0000)]
Once again, fix tests on python3.