5 * Add ssh_kwargs attribute to ParamikoSSHVendor. (milki)
7 * Add Repo.set_description(). (Víðir Valberg Guðmundsson)
9 * Add a basic `dulwich.porcelain` module. (Jelmer Vernooij, Marcin Kuzminski)
11 * Various performance improvements for object access.
14 * New function `get_transport_and_path_from_url`,
15 similar to `get_transport_and_path` but only
19 * Add support for file:// URLs in `get_transport_and_path_from_url`.
22 * Add LocalGitClient implementation.
27 * Support filesystems with 64bit inode and device numbers.
32 * Ref handling has been moved to dulwich.refs.
37 * Remove long deprecated RefsContainer.set_ref().
40 * Repo.ref() is now deprecated in favour of Repo.refs[].
45 * Add support for graftpoints. (milki)
51 * Fix path for stdint.h in MANIFEST.in. (Jelmer Vernooij)
57 * Include stdint.h in MANIFEST.in (Mark Mikofski)
63 * Support lookups of 40-character refs in BaseRepo.__getitem__. (Chow Loong Jin, Jelmer Vernooij)
65 * Fix fetching packs with side-band-64k capability disabled. (David Keijser, Jelmer Vernooij)
67 * Several fixes in send-pack protocol behaviour - handling of empty pack files and deletes.
70 * Fix capability negotiation when fetching packs over HTTP.
71 (#1072461, William Grant)
73 * Enforce determine_wants returning an empty list rather than None. (Fabien Boucher, Jelmer Vernooij)
75 * In the server, support pushes just removing refs. (Fabien Boucher, Jelmer Vernooij)
79 * Support passing a single revision to BaseRepo.get_walker() rather than a list of revisions.
82 * Add `Repo.get_description` method. (Jelmer Vernooij)
84 * Support thin packs in Pack.iterobjects() and Pack.get_raw().
87 * Add `MemoryObjectStore.add_pack` and `MemoryObjectStore.add_thin_pack` methods.
90 * Add paramiko-based SSH vendor. (Aaron O'Mullan)
92 * Support running 'dulwich.server' and 'dulwich.web' using 'python -m'.
95 * Add ObjectStore.close(). (Jelmer Vernooij)
97 * Raise appropriate NotImplementedError when encountering dumb HTTP servers.
102 * SSHVendor.connect_ssh has been renamed to SSHVendor.run_command.
105 * ObjectStore.add_pack() now returns a 3-tuple. The last element will be an
106 abort() method that can be used to cancel the pack operation.
113 * Push efficiency - report missing objects only. (#562676, Artem Tikhomirov)
115 * Use indentation consistent with C Git in config files.
116 (#1031356, Curt Moore, Jelmer Vernooij)
118 * Recognize and skip binary files in diff function.
121 * Fix handling of relative paths in dulwich.client.get_transport_and_path.
122 (Brian Visel, #1169368)
124 * Preserve ordering of entries in configuration.
127 * Support ~ expansion in SSH client paths. (milki, #1083439)
129 * Support relative paths in alternate paths.
130 (milki, Michel Lespinasse, #1175007)
132 * Log all error messages from wsgiref server to the logging module. This
133 makes the test suit quiet again. (Gary van der Merwe)
135 * Support passing None for empty tree in changes_from_tree.
138 * Support fetching empty repository in client. (milki, #1060462)
142 * Add optional honor_filemode flag to build_index_from_tree.
145 * Support core/filemode setting when building trees. (Jelmer Vernooij)
147 * Add chapter on tags in tutorial. (Ryan Faulkner)
151 * Add support for mergetags. (milki, #963525)
153 * Add support for posix shell hooks. (milki)
159 * Fix use of alternates in ``DiskObjectStore``.{__contains__,__iter__}.
162 * Fix compatibility with Python 2.4. (David Carr)
168 * dulwich.__init__ no longer imports client, protocol, repo and
169 server modules. (Jelmer Vernooij)
173 * ConfigDict now behaves more like a dictionary.
174 (Adam 'Cezar' Jenkins, issue #58)
176 * HTTPGitApplication now takes an optional
177 `fallback_app` argument. (Jonas Haag, issue #67)
179 * Support for large pack index files. (Jameson Nash)
183 * Make index entry tests a little bit less strict, to cope with
184 slightly different behaviour on various platforms.
187 * ``setup.py test`` (available when setuptools is installed) now
188 runs all tests, not just the basic unit tests.
193 * Commit._deserialize now actually deserializes the current state rather than
194 the previous one. (Yifan Zhang, issue #59)
196 * Handle None elements in lists of TreeChange objects. (Alex Holmes)
198 * Support cloning repositories without HEAD set.
199 (D-Key, Jelmer Vernooij, issue #69)
201 * Support ``MemoryRepo.get_config``. (Jelmer Vernooij)
203 * In ``get_transport_and_path``, pass extra keyword arguments on to
204 HttpGitClient. (Jelmer Vernooij)
210 * Avoid use of 'with' in dulwich.index. (Jelmer Vernooij)
212 * Be a little bit strict about OS behaviour in index tests.
213 Should fix the tests on Debian GNU/kFreeBSD. (Jelmer Vernooij)
219 * Options on the same line as sections in config files are now supported.
220 (Jelmer Vernooij, #920553)
222 * Only negotiate capabilities that are also supported by the server.
223 (Rod Cloutier, Risto Kankkunen)
225 * Fix parsing of invalid timezone offsets with two minus signs.
226 (Jason R. Coombs, #697828)
228 * Reset environment variables during tests, to avoid
229 test isolation leaks reading ~/.gitconfig. (Risto Kankkunen)
233 * $HOME is now explicitly specified for tests that use it to read
234 ``~/.gitconfig``, to prevent test isolation issues.
235 (Jelmer Vernooij, #920330)
239 * Additional arguments to get_transport_and_path are now passed
240 on to the constructor of the transport. (Sam Vilain)
242 * The WSGI server now transparently handles when a git client submits data
243 using Content-Encoding: gzip.
244 (David Blewett, Jelmer Vernooij)
246 * Add dulwich.index.build_index_from_tree(). (milki)
252 * The config parser now supports the git-config file format as
253 described in git-config(1) and can write git config files.
254 (Jelmer Vernooij, #531092, #768687)
256 * ``Repo.do_commit`` will now use the user identity from
257 .git/config or ~/.gitconfig if none was explicitly specified.
262 * Allow ``determine_wants`` methods to include the zero sha in their
263 return value. (Jelmer Vernooij)
269 * Cope with different zlib buffer sizes in sha1 file parser.
272 * Fix get_transport_and_path for HTTP/HTTPS URLs.
275 * Avoid calling free_objects() on NULL in error cases. (Chris Eberle)
277 * Fix use --bare argument to 'dulwich init'. (Chris Eberle)
279 * Properly abort connections when the determine_wants function
280 raises an exception. (Jelmer Vernooij, #856769)
282 * Tweak xcodebuild hack to deal with more error output.
283 (Jelmer Vernooij, #903840)
287 * Add support for retrieving tarballs from remote servers.
288 (Jelmer Vernooij, #379087)
290 * New method ``update_server_info`` which generates data
291 for dumb server access. (Jelmer Vernooij, #731235)
297 * Repo.do_commit has a new argument 'ref'.
299 * Repo.do_commit has a new argument 'merge_heads'. (Jelmer Vernooij)
301 * New ``Repo.get_walker`` method. (Jelmer Vernooij)
303 * New ``Repo.clone`` method. (Jelmer Vernooij, #725369)
305 * ``GitClient.send_pack`` now supports the 'side-band-64k' capability.
308 * ``HttpGitClient`` which supports the smart server protocol over
309 HTTP. "dumb" access is not yet supported. (Jelmer Vernooij, #373688)
311 * Add basic support for alternates. (Jelmer Vernooij, #810429)
315 * unittest2 or python >= 2.7 is now required for the testsuite.
316 testtools is no longer supported. (Jelmer Vernooij, #830713)
320 * Fix compilation with older versions of MSVC. (Martin gz)
322 * Special case 'refs/stash' as a valid ref. (Jelmer Vernooij, #695577)
324 * Smart protocol clients can now change refs even if they are
325 not uploading new data. (Jelmer Vernooij, #855993)
327 * Don't compile C extensions when running in pypy.
328 (Ronny Pfannschmidt, #881546)
330 * Use different name for strnlen replacement function to avoid clashing
331 with system strnlen. (Jelmer Vernooij, #880362)
335 * ``Repo.revision_history`` is now deprecated in favor of ``Repo.get_walker``.
342 * New DeltaChainIterator abstract class for quickly iterating all objects in
343 a pack, with implementations for pack indexing and inflation.
346 * New walk module with a Walker class for customizable commit walking.
349 * New tree_changes_for_merge function in diff_tree. (Dave Borowitz)
351 * Easy rename detection in RenameDetector even without find_copies_harder.
356 * Avoid storing all objects in memory when writing pack.
357 (Jelmer Vernooij, #813268)
359 * Support IPv6 for git:// connections. (Jelmer Vernooij, #801543)
361 * Improve performance of Repo.revision_history(). (Timo Schmid, #535118)
363 * Fix use of SubprocessWrapper on Windows. (Paulo Madeira, #670035)
365 * Fix compilation on newer versions of Mac OS X (Lion and up). (Ryan McKern, #794543)
367 * Prevent raising ValueError for correct refs in RefContainer.__delitem__.
369 * Correctly return a tuple from MemoryObjectStore.get_raw. (Dave Borowitz)
371 * Fix a bug in reading the pack checksum when there are fewer than 20 bytes
372 left in the buffer. (Dave Borowitz)
374 * Support ~ in git:// URL paths. (Jelmer Vernooij, #813555)
376 * Make ShaFile.__eq__ work when other is not a ShaFile. (Dave Borowitz)
378 * ObjectStore.get_graph_walker() now no longer yields the same
379 revision more than once. This has a significant improvement for
380 performance when wide revision graphs are involved.
381 (Jelmer Vernooij, #818168)
383 * Teach ReceivePackHandler how to read empty packs. (Dave Borowitz)
385 * Don't send a pack with duplicates of the same object. (Dave Borowitz)
387 * Teach the server how to serve a clone of an empty repo. (Dave Borowitz)
389 * Correctly advertise capabilities during receive-pack. (Dave Borowitz)
391 * Fix add/add and add/rename conflicts in tree_changes_for_merge.
394 * Use correct MIME types in web server. (Dave Borowitz)
398 * write_pack no longer takes the num_objects argument and requires an object
399 to be passed in that is iterable (rather than an iterator) and that
400 provides __len__. (Jelmer Vernooij)
402 * write_pack_data has been renamed to write_pack_objects and no longer takes a
403 num_objects argument. (Jelmer Vernooij)
405 * take_msb_bytes, read_zlib_chunks, unpack_objects, and
406 PackStreamReader.read_objects now take an additional argument indicating a
407 crc32 to compute. (Dave Borowitz)
409 * PackObjectIterator was removed; its functionality is still exposed by
410 PackData.iterobjects. (Dave Borowitz)
412 * Add a sha arg to write_pack_object to incrementally compute a SHA.
415 * Include offset in PackStreamReader results. (Dave Borowitz)
417 * Move PackStreamReader from server to pack. (Dave Borowitz)
419 * Extract a check_length_and_checksum, compute_file_sha, and
420 pack_object_header pack helper functions. (Dave Borowitz)
422 * Extract a compute_file_sha function. (Dave Borowitz)
424 * Remove move_in_thin_pack as a separate method; add_thin_pack now completes
425 the thin pack and moves it in in one step. Remove ThinPackData as well.
428 * Custom buffer size in read_zlib_chunks. (Dave Borowitz)
430 * New UnpackedObject data class that replaces ad-hoc tuples in the return
431 value of unpack_object and various DeltaChainIterator methods.
434 * Add a lookup_path convenience method to Tree. (Dave Borowitz)
436 * Optionally create RenameDetectors without passing in tree SHAs.
439 * Optionally include unchanged entries in RenameDetectors. (Dave Borowitz)
441 * Optionally pass a RenameDetector to tree_changes. (Dave Borowitz)
443 * Optionally pass a request object through to server handlers. (Dave Borowitz)
447 * If setuptools is installed, "python setup.py test" will now run the testsuite.
450 * Add a new build_pack test utility for building packs from a simple spec.
453 * Add a new build_commit_graph test utility for building commits from a
454 simple spec. (Dave Borowitz)
460 * Fix double decref in _diff_tree.c. (Ted Horst, #715528)
462 * Fix the build on Windows. (Pascal Quantin)
464 * Fix get_transport_and_path compatibility with pre-2.6.5 versions of Python.
465 (Max Bowsher, #707438)
467 * BaseObjectStore.determine_wants_all no longer breaks on zero SHAs.
470 * write_tree_diff() now supports submodules.
473 * Fix compilation for XCode 4 and older versions of distutils.sysconfig.
478 * Sphinxified documentation. (Lukasz Balcerzak)
480 * Add Pack.keep.(Marc Brinkmann)
484 * The order of the parameters to Tree.add(name, mode, sha) has changed, and
485 is now consistent with the rest of Dulwich. Existing code will still
486 work but print a DeprecationWarning. (Jelmer Vernooij, #663550)
488 * Tree.entries() is now deprecated in favour of Tree.items() and
489 Tree.iteritems(). (Jelmer Vernooij)
495 * New `dulwich.diff_tree` module for simple content-based rename detection.
498 * Add Tree.items(). (Jelmer Vernooij)
500 * Add eof() and unread_pkt_line() methods to Protocol. (Dave Borowitz)
502 * Add write_tree_diff(). (Jelmer Vernooij)
504 * Add `serve_command` function for git server commands as executables.
507 * dulwich.client.get_transport_and_path now supports rsync-style repository URLs.
508 (Dave Borowitz, #568493)
512 * Correct short-circuiting operation for no-op fetches in the server.
515 * Support parsing git mbox patches without a version tail, as generated by
516 Mercurial. (Jelmer Vernooij)
518 * Fix dul-receive-pack and dul-upload-pack. (Jelmer Vernooij)
520 * Zero-padded file modes in Tree objects no longer trigger an exception but
521 the check code warns about them. (Augie Fackler, #581064)
523 * Repo.init() now honors the mkdir flag. (#671159)
525 * The ref format is now checked when setting a ref rather than when reading it back.
526 (Dave Borowitz, #653527)
528 * Make sure pack files are closed correctly. (Tay Ray Chuan)
532 * Run the tutorial inside the test suite. (Jelmer Vernooij)
534 * Reorganized and updated the tutorial. (Jelmer Vernooij, Dave Borowitz, #610550,
542 * HTTP server correctly handles empty CONTENT_LENGTH. (Dave Borowitz)
544 * Don't error when creating GitFiles with the default mode. (Dave Borowitz)
546 * ThinPackData.from_file now works with resolve_ext_ref callback.
549 * Provide strnlen() on mingw32 which doesn't have it. (Hans Kolek)
551 * Set bare=true in the configuratin for bare repositories. (Dirk Neumann)
555 * Use slots for core objects to save up on memory. (Jelmer Vernooij)
557 * Web server supports streaming progress/pack output. (Dave Borowitz)
559 * New public function dulwich.pack.write_pack_header. (Dave Borowitz)
561 * Distinguish between missing files and read errors in HTTP server.
564 * Initial work on support for fastimport using python-fastimport.
567 * New dulwich.pack.MemoryPackIndex class. (Jelmer Vernooij)
569 * Delegate SHA peeling to the object store. (Dave Borowitz)
573 * Use GitFile when modifying packed-refs in tests. (Dave Borowitz)
575 * New tests in test_web with better coverage and fewer ad-hoc mocks.
578 * Standardize quote delimiters in test_protocol. (Dave Borowitz)
580 * Fix use when testtools is installed. (Jelmer Vernooij)
582 * Add trivial test for write_pack_header. (Jelmer Vernooij)
584 * Refactor some of dulwich.tests.compat.server_utils. (Dave Borowitz)
586 * Allow overwriting id property of objects in test utils. (Dave Borowitz)
588 * Use real in-memory objects rather than stubs for server tests.
591 * Clean up MissingObjectFinder. (Dave Borowitz)
595 * ObjectStore.iter_tree_contents now walks contents in depth-first, sorted
596 order. (Dave Borowitz)
598 * ObjectStore.iter_tree_contents can optionally yield tree objects as well.
601 * Add side-band-64k support to ReceivePackHandler. (Dave Borowitz)
603 * Change server capabilities methods to classmethods. (Dave Borowitz)
605 * Tweak server handler injection. (Dave Borowitz)
607 * PackIndex1 and PackIndex2 now subclass FilePackIndex, which is
608 itself a subclass of PackIndex. (Jelmer Vernooij)
612 * Add docstrings for various functions in dulwich.objects. (Jelmer Vernooij)
614 * Clean up docstrings in dulwich.protocol. (Dave Borowitz)
616 * Explicitly specify allowed protocol commands to
617 ProtocolGraphWalker.read_proto_line. (Dave Borowitz)
619 * Add utility functions to DictRefsContainer. (Dave Borowitz)
626 * Fix memory leak in C implementation of sorted_tree_items. (Dave Borowitz)
628 * Use correct path separators for named repo files. (Dave Borowitz)
630 * python > 2.7 and testtools-based test runners will now also pick up skipped
631 tests correctly. (Jelmer Vernooij)
635 * Move named file initilization to BaseRepo. (Dave Borowitz)
637 * Add logging utilities and git/HTTP server logging. (Dave Borowitz)
639 * The GitClient interface has been cleaned up and instances are now reusable.
642 * Allow overriding paths to executables in GitSSHClient.
643 (Ross Light, Jelmer Vernooij, #585204)
645 * Add PackBasedObjectStore.pack_loose_objects(). (Jelmer Vernooij)
649 * Add tests for sorted_tree_items and C implementation. (Dave Borowitz)
651 * Add a MemoryRepo that stores everything in memory. (Dave Borowitz)
653 * Quiet logging output from web tests. (Dave Borowitz)
655 * More flexible version checking for compat tests. (Dave Borowitz)
657 * Compat tests for servers with and without side-band-64k. (Dave Borowitz)
661 * Clean up file headers. (Dave Borowitz)
665 * Use GitFile when modifying packed-refs in tests. (Dave Borowitz)
669 * dulwich.pack.write_pack_index_v{1,2} now take a file-like object
670 rather than a filename. (Jelmer Vernooij)
672 * Make dul-daemon/dul-web trivial wrappers around server functionality.
675 * Move reference WSGI handler to web.py. (Dave Borowitz)
677 * Factor out _report_status in ReceivePackHandler. (Dave Borowitz)
679 * Factor out a function to convert a line to a pkt-line. (Dave Borowitz)
684 note: This list is most likely incomplete for 0.6.0.
688 * Fix ReceivePackHandler to disallow removing refs without delete-refs.
691 * Deal with capabilities required by the client, even if they
692 can not be disabled in the server. (Dave Borowitz)
694 * Fix trailing newlines in generated patch files.
697 * Implement RefsContainer.__contains__. (Jelmer Vernooij)
699 * Cope with \r in ref files on Windows. (
700 http://github.com/jelmer/dulwich/issues/#issue/13, Jelmer Vernooij)
702 * Fix GitFile breakage on Windows. (Anatoly Techtonik, #557585)
704 * Support packed ref deletion with no peeled refs. (Augie Fackler)
706 * Fix send pack when there is nothing to fetch. (Augie Fackler)
708 * Fix fetch if no progress function is specified. (Augie Fackler)
710 * Allow double-staging of files that are deleted in the index.
713 * Fix RefsContainer.add_if_new to support dangling symrefs.
716 * Non-existant index files in non-bare repositories are now treated as
717 empty. (Dave Borowitz)
719 * Always update ShaFile.id when the contents of the object get changed.
722 * Various Python2.4-compatibility fixes. (Dave Borowitz)
724 * Fix thin pack handling. (Dave Borowitz)
728 * Add include-tag capability to server. (Dave Borowitz)
730 * New dulwich.fastexport module that can generate fastexport
731 streams. (Jelmer Vernooij)
733 * Implemented BaseRepo.__contains__. (Jelmer Vernooij)
735 * Add __setitem__ to DictRefsContainer. (Dave Borowitz)
737 * Overall improvements checking Git objects. (Dave Borowitz)
739 * Packs are now verified while they are received. (Dave Borowitz)
743 * Add framework for testing compatibility with C Git. (Dave Borowitz)
745 * Add various tests for the use of non-bare repositories. (Dave Borowitz)
747 * Cope with diffstat not being available on all platforms.
748 (Tay Ray Chuan, Jelmer Vernooij)
750 * Add make_object and make_commit convenience functions to test utils.
755 * The 'committer' and 'message' arguments to Repo.do_commit() have
756 been swapped. 'committer' is now optional. (Jelmer Vernooij)
758 * Repo.get_blob, Repo.commit, Repo.tag and Repo.tree are now deprecated.
761 * RefsContainer.set_ref() was renamed to RefsContainer.set_symbolic_ref(),
762 for clarity. (Jelmer Vernooij)
766 * The primary serialization APIs in dulwich.objects now work
767 with chunks of strings rather than with full-text strings.
774 * Support custom fields in commits (readonly). (Jelmer Vernooij)
776 * Improved ref handling. (Dave Borowitz)
778 * Rework server protocol to be smarter and interoperate with cgit client.
781 * Add a GitFile class that uses the same locking protocol for writes as
782 cgit. (Dave Borowitz)
784 * Cope with forward slashes correctly in the index on Windows.
785 (Jelmer Vernooij, #526793)
789 * --pure option to setup.py to allow building/installing without the C
790 extensions. (Hal Wine, Anatoly Techtonik, Jelmer Vernooij, #434326)
792 * Implement Repo.get_config(). (Jelmer Vernooij, Augie Fackler)
794 * HTTP dumb and smart server. (Dave Borowitz)
796 * Add abstract baseclass for Repo that does not require file system
797 operations. (Dave Borowitz)
803 * Add ObjectStore.iter_tree_contents(). (Jelmer Vernooij)
805 * Add Index.changes_from_tree(). (Jelmer Vernooij)
807 * Add ObjectStore.tree_changes(). (Jelmer Vernooij)
809 * Add functionality for writing patches in dulwich.patch.
820 * dulwich.object_store.tree_lookup_path will now return the mode and
821 sha of the object found rather than the object itself.
825 * Use binascii.hexlify / binascii.unhexlify for better performance.
827 * Cope with extra unknown data in index files by ignoring it (for now).
829 * Add proper error message when server unexpectedly hangs up. (#415843)
831 * Correctly write opcode for equal in create_delta.
837 * Implement ShaFile.__hash__().
839 * Implement Tree.__len__()
843 * Check for 'objects' and 'refs' directories
844 when looking for a Git repository. (#380818)
850 * Support the encoding field in Commits.
852 * Some Windows compatibility fixes.
854 * Fixed several issues in commit support.
858 * Basic support for handling submodules.
864 * Implemented Repo.__getitem__, Repo.__setitem__ and Repo.__delitem__ to
869 * Removed Repo.set_ref, Repo.remove_ref, Repo.tags, Repo.get_refs and
870 Repo.heads in favor of Repo.refs, a dictionary-like object for accessing
875 * Removed import of 'sha' module in objects.py, which was causing
876 deprecation warnings on Python 2.6.
882 * A new function 'commit_tree' has been added that can commit a tree
887 * The memory usage when generating indexes has been significantly reduced.
889 * A memory leak in the C implementation of parse_tree has been fixed.
891 * The send-pack smart server command now works. (Thanks Scott Chacon)
893 * The handling of short timestamps (less than 10 digits) has been fixed.
895 * The handling of timezones has been fixed.
901 * Fix compatibility with Python2.4.
907 * Support for activity reporting in smart protocol client.
909 * Optional C extensions for better performance in a couple of
910 places that are performance-critical.
916 * Fixed regression in Repo.find_missing_objects()
918 * Don't fetch ^{} objects from remote hosts, as requesting them
921 * Always write pack to disk completely before calculating checksum.
925 * Allow disabling thin packs when talking to remote hosts.