NEWS 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. 0.8.2 UNRELEASED
  2. BUG FIXES
  3. * Cope with different zlib buffer sizes in sha1 file parser.
  4. (Jelmer Vernooij)
  5. * Fix get_transport_and_path for HTTP/HTTPS URLs.
  6. (Bruno Renié)
  7. * Avoid calling free_objects() on NULL in error cases. (Chris Eberle)
  8. * Fix use --bare argument to 'dulwich init'. (Chris Eberle)
  9. FEATURES
  10. * Add support for retrieving tarballs from remote servers.
  11. (Jelmer Vernooij, #379087)
  12. 0.8.1 2011-10-31
  13. FEATURES
  14. * Repo.do_commit has a new argument 'ref'.
  15. * Repo.do_commit has a new argument 'merge_heads'. (Jelmer Vernooij)
  16. * New ``Repo.get_walker`` method. (Jelmer Vernooij)
  17. * New ``Repo.clone`` method. (Jelmer Vernooij, #725369)
  18. * ``GitClient.send_pack`` now supports the 'side-band-64k' capability.
  19. (Jelmer Vernooij)
  20. * ``HttpGitClient`` which supports the smart server protocol over
  21. HTTP. "dumb" access is not yet supported. (Jelmer Vernooij, #373688)
  22. * Add basic support for alternates. (Jelmer Vernooij, #810429)
  23. CHANGES
  24. * unittest2 or python >= 2.7 is now required for the testsuite.
  25. testtools is no longer supported. (Jelmer Vernooij, #830713)
  26. BUG FIXES
  27. * Fix compilation with older versions of MSVC. (Martin gz)
  28. * Special case 'refs/stash' as a valid ref. (Jelmer Vernooij, #695577)
  29. * Smart protocol clients can now change refs even if they are
  30. not uploading new data. (Jelmer Vernooij, #855993)
  31. * Don't compile C extensions when running in pypy.
  32. (Ronny Pfannschmidt, #881546)
  33. * Use different name for strnlen replacement function to avoid clashing
  34. with system strnlen. (Jelmer Vernooij, #880362)
  35. API CHANGES
  36. * ``Repo.revision_history`` is now deprecated in favor of ``Repo.get_walker``.
  37. (Jelmer Vernooij)
  38. 0.8.0 2011-08-07
  39. FEATURES
  40. * New DeltaChainIterator abstract class for quickly iterating all objects in
  41. a pack, with implementations for pack indexing and inflation.
  42. (Dave Borowitz)
  43. * New walk module with a Walker class for customizable commit walking.
  44. (Dave Borowitz)
  45. * New tree_changes_for_merge function in diff_tree. (Dave Borowitz)
  46. * Easy rename detection in RenameDetector even without find_copies_harder.
  47. (Dave Borowitz)
  48. BUG FIXES
  49. * Avoid storing all objects in memory when writing pack.
  50. (Jelmer Vernooij, #813268)
  51. * Support IPv6 for git:// connections. (Jelmer Vernooij, #801543)
  52. * Improve performance of Repo.revision_history(). (Timo Schmid, #535118)
  53. * Fix use of SubprocessWrapper on Windows. (Paulo Madeira, #670035)
  54. * Fix compilation on newer versions of Mac OS X (Lion and up). (Ryan McKern, #794543)
  55. * Prevent raising ValueError for correct refs in RefContainer.__delitem__.
  56. * Correctly return a tuple from MemoryObjectStore.get_raw. (Dave Borowitz)
  57. * Fix a bug in reading the pack checksum when there are fewer than 20 bytes
  58. left in the buffer. (Dave Borowitz)
  59. * Support ~ in git:// URL paths. (Jelmer Vernooij, #813555)
  60. * Make ShaFile.__eq__ work when other is not a ShaFile. (Dave Borowitz)
  61. * ObjectStore.get_graph_walker() now no longer yields the same
  62. revision more than once. This has a significant improvement for
  63. performance when wide revision graphs are involved.
  64. (Jelmer Vernooij, #818168)
  65. * Teach ReceivePackHandler how to read empty packs. (Dave Borowitz)
  66. * Don't send a pack with duplicates of the same object. (Dave Borowitz)
  67. * Teach the server how to serve a clone of an empty repo. (Dave Borowitz)
  68. * Correctly advertise capabilities during receive-pack. (Dave Borowitz)
  69. * Fix add/add and add/rename conflicts in tree_changes_for_merge.
  70. (Dave Borowitz)
  71. * Use correct MIME types in web server. (Dave Borowitz)
  72. API CHANGES
  73. * write_pack no longer takes the num_objects argument and requires an object
  74. to be passed in that is iterable (rather than an iterator) and that
  75. provides __len__. (Jelmer Vernooij)
  76. * write_pack_data has been renamed to write_pack_objects and no longer takes a
  77. num_objects argument. (Jelmer Vernooij)
  78. * take_msb_bytes, read_zlib_chunks, unpack_objects, and
  79. PackStreamReader.read_objects now take an additional argument indicating a
  80. crc32 to compute. (Dave Borowitz)
  81. * PackObjectIterator was removed; its functionality is still exposed by
  82. PackData.iterobjects. (Dave Borowitz)
  83. * Add a sha arg to write_pack_object to incrementally compute a SHA.
  84. (Dave Borowitz)
  85. * Include offset in PackStreamReader results. (Dave Borowitz)
  86. * Move PackStreamReader from server to pack. (Dave Borowitz)
  87. * Extract a check_length_and_checksum, compute_file_sha, and
  88. pack_object_header pack helper functions. (Dave Borowitz)
  89. * Extract a compute_file_sha function. (Dave Borowitz)
  90. * Remove move_in_thin_pack as a separate method; add_thin_pack now completes
  91. the thin pack and moves it in in one step. Remove ThinPackData as well.
  92. (Dave Borowitz)
  93. * Custom buffer size in read_zlib_chunks. (Dave Borowitz)
  94. * New UnpackedObject data class that replaces ad-hoc tuples in the return
  95. value of unpack_object and various DeltaChainIterator methods.
  96. (Dave Borowitz)
  97. * Add a lookup_path convenience method to Tree. (Dave Borowitz)
  98. * Optionally create RenameDetectors without passing in tree SHAs.
  99. (Dave Borowitz)
  100. * Optionally include unchanged entries in RenameDetectors. (Dave Borowitz)
  101. * Optionally pass a RenameDetector to tree_changes. (Dave Borowitz)
  102. * Optionally pass a request object through to server handlers. (Dave Borowitz)
  103. TEST CHANGES
  104. * If setuptools is installed, "python setup.py test" will now run the testsuite.
  105. (Jelmer Vernooij)
  106. * Add a new build_pack test utility for building packs from a simple spec.
  107. (Dave Borowitz)
  108. * Add a new build_commit_graph test utility for building commits from a
  109. simple spec. (Dave Borowitz)
  110. 0.7.1 2011-04-12
  111. BUG FIXES
  112. * Fix double decref in _diff_tree.c. (Ted Horst, #715528)
  113. * Fix the build on Windows. (Pascal Quantin)
  114. * Fix get_transport_and_path compatibility with pre-2.6.5 versions of Python.
  115. (Max Bowsher, #707438)
  116. * BaseObjectStore.determine_wants_all no longer breaks on zero SHAs.
  117. (Jelmer Vernooij)
  118. * write_tree_diff() now supports submodules.
  119. (Jelmer Vernooij)
  120. * Fix compilation for XCode 4 and older versions of distutils.sysconfig.
  121. (Daniele Sluijters)
  122. IMPROVEMENTS
  123. * Sphinxified documentation. (Lukasz Balcerzak)
  124. * Add Pack.keep.(Marc Brinkmann)
  125. API CHANGES
  126. * The order of the parameters to Tree.add(name, mode, sha) has changed, and
  127. is now consistent with the rest of Dulwich. Existing code will still
  128. work but print a DeprecationWarning. (Jelmer Vernooij, #663550)
  129. * Tree.entries() is now deprecated in favour of Tree.items() and
  130. Tree.iteritems(). (Jelmer Vernooij)
  131. 0.7.0 2011-01-21
  132. FEATURES
  133. * New `dulwich.diff_tree` module for simple content-based rename detection.
  134. (Dave Borowitz)
  135. * Add Tree.items(). (Jelmer Vernooij)
  136. * Add eof() and unread_pkt_line() methods to Protocol. (Dave Borowitz)
  137. * Add write_tree_diff(). (Jelmer Vernooij)
  138. * Add `serve_command` function for git server commands as executables.
  139. (Jelmer Vernooij)
  140. * dulwich.client.get_transport_and_path now supports rsync-style repository URLs.
  141. (Dave Borowitz, #568493)
  142. BUG FIXES
  143. * Correct short-circuiting operation for no-op fetches in the server.
  144. (Dave Borowitz)
  145. * Support parsing git mbox patches without a version tail, as generated by
  146. Mercurial. (Jelmer Vernooij)
  147. * Fix dul-receive-pack and dul-upload-pack. (Jelmer Vernooij)
  148. * Zero-padded file modes in Tree objects no longer trigger an exception but
  149. the check code warns about them. (Augie Fackler, #581064)
  150. * Repo.init() now honors the mkdir flag. (#671159)
  151. * The ref format is now checked when setting a ref rather than when reading it back.
  152. (Dave Borowitz, #653527)
  153. * Make sure pack files are closed correctly. (Tay Ray Chuan)
  154. DOCUMENTATION
  155. * Run the tutorial inside the test suite. (Jelmer Vernooij)
  156. * Reorganized and updated the tutorial. (Jelmer Vernooij, Dave Borowitz, #610550,
  157. #610540)
  158. 0.6.2 2010-10-16
  159. BUG FIXES
  160. * HTTP server correctly handles empty CONTENT_LENGTH. (Dave Borowitz)
  161. * Don't error when creating GitFiles with the default mode. (Dave Borowitz)
  162. * ThinPackData.from_file now works with resolve_ext_ref callback.
  163. (Dave Borowitz)
  164. * Provide strnlen() on mingw32 which doesn't have it. (Hans Kolek)
  165. * Set bare=true in the configuratin for bare repositories. (Dirk Neumann)
  166. FEATURES
  167. * Use slots for core objects to save up on memory. (Jelmer Vernooij)
  168. * Web server supports streaming progress/pack output. (Dave Borowitz)
  169. * New public function dulwich.pack.write_pack_header. (Dave Borowitz)
  170. * Distinguish between missing files and read errors in HTTP server.
  171. (Dave Borowitz)
  172. * Initial work on support for fastimport using python-fastimport.
  173. (Jelmer Vernooij)
  174. * New dulwich.pack.MemoryPackIndex class. (Jelmer Vernooij)
  175. * Delegate SHA peeling to the object store. (Dave Borowitz)
  176. TESTS
  177. * Use GitFile when modifying packed-refs in tests. (Dave Borowitz)
  178. * New tests in test_web with better coverage and fewer ad-hoc mocks.
  179. (Dave Borowitz)
  180. * Standardize quote delimiters in test_protocol. (Dave Borowitz)
  181. * Fix use when testtools is installed. (Jelmer Vernooij)
  182. * Add trivial test for write_pack_header. (Jelmer Vernooij)
  183. * Refactor some of dulwich.tests.compat.server_utils. (Dave Borowitz)
  184. * Allow overwriting id property of objects in test utils. (Dave Borowitz)
  185. * Use real in-memory objects rather than stubs for server tests.
  186. (Dave Borowitz)
  187. * Clean up MissingObjectFinder. (Dave Borowitz)
  188. API CHANGES
  189. * ObjectStore.iter_tree_contents now walks contents in depth-first, sorted
  190. order. (Dave Borowitz)
  191. * ObjectStore.iter_tree_contents can optionally yield tree objects as well.
  192. (Dave Borowitz).
  193. * Add side-band-64k support to ReceivePackHandler. (Dave Borowitz)
  194. * Change server capabilities methods to classmethods. (Dave Borowitz)
  195. * Tweak server handler injection. (Dave Borowitz)
  196. * PackIndex1 and PackIndex2 now subclass FilePackIndex, which is
  197. itself a subclass of PackIndex. (Jelmer Vernooij)
  198. DOCUMENTATION
  199. * Add docstrings for various functions in dulwich.objects. (Jelmer Vernooij)
  200. * Clean up docstrings in dulwich.protocol. (Dave Borowitz)
  201. * Explicitly specify allowed protocol commands to
  202. ProtocolGraphWalker.read_proto_line. (Dave Borowitz)
  203. * Add utility functions to DictRefsContainer. (Dave Borowitz)
  204. 0.6.1 2010-07-22
  205. BUG FIXES
  206. * Fix memory leak in C implementation of sorted_tree_items. (Dave Borowitz)
  207. * Use correct path separators for named repo files. (Dave Borowitz)
  208. * python > 2.7 and testtools-based test runners will now also pick up skipped
  209. tests correctly. (Jelmer Vernooij)
  210. FEATURES
  211. * Move named file initilization to BaseRepo. (Dave Borowitz)
  212. * Add logging utilities and git/HTTP server logging. (Dave Borowitz)
  213. * The GitClient interface has been cleaned up and instances are now reusable.
  214. (Augie Fackler)
  215. * Allow overriding paths to executables in GitSSHClient.
  216. (Ross Light, Jelmer Vernooij, #585204)
  217. * Add PackBasedObjectStore.pack_loose_objects(). (Jelmer Vernooij)
  218. TESTS
  219. * Add tests for sorted_tree_items and C implementation. (Dave Borowitz)
  220. * Add a MemoryRepo that stores everything in memory. (Dave Borowitz)
  221. * Quiet logging output from web tests. (Dave Borowitz)
  222. * More flexible version checking for compat tests. (Dave Borowitz)
  223. * Compat tests for servers with and without side-band-64k. (Dave Borowitz)
  224. CLEANUP
  225. * Clean up file headers. (Dave Borowitz)
  226. TESTS
  227. * Use GitFile when modifying packed-refs in tests. (Dave Borowitz)
  228. API CHANGES
  229. * dulwich.pack.write_pack_index_v{1,2} now take a file-like object
  230. rather than a filename. (Jelmer Vernooij)
  231. * Make dul-daemon/dul-web trivial wrappers around server functionality.
  232. (Dave Borowitz)
  233. * Move reference WSGI handler to web.py. (Dave Borowitz)
  234. * Factor out _report_status in ReceivePackHandler. (Dave Borowitz)
  235. * Factor out a function to convert a line to a pkt-line. (Dave Borowitz)
  236. 0.6.0 2010-05-22
  237. note: This list is most likely incomplete for 0.6.0.
  238. BUG FIXES
  239. * Fix ReceivePackHandler to disallow removing refs without delete-refs.
  240. (Dave Borowitz)
  241. * Deal with capabilities required by the client, even if they
  242. can not be disabled in the server. (Dave Borowitz)
  243. * Fix trailing newlines in generated patch files.
  244. (Jelmer Vernooij)
  245. * Implement RefsContainer.__contains__. (Jelmer Vernooij)
  246. * Cope with \r in ref files on Windows. (
  247. http://github.com/jelmer/dulwich/issues/#issue/13, Jelmer Vernooij)
  248. * Fix GitFile breakage on Windows. (Anatoly Techtonik, #557585)
  249. * Support packed ref deletion with no peeled refs. (Augie Fackler)
  250. * Fix send pack when there is nothing to fetch. (Augie Fackler)
  251. * Fix fetch if no progress function is specified. (Augie Fackler)
  252. * Allow double-staging of files that are deleted in the index.
  253. (Dave Borowitz)
  254. * Fix RefsContainer.add_if_new to support dangling symrefs.
  255. (Dave Borowitz)
  256. * Non-existant index files in non-bare repositories are now treated as
  257. empty. (Dave Borowitz)
  258. * Always update ShaFile.id when the contents of the object get changed.
  259. (Jelmer Vernooij)
  260. * Various Python2.4-compatibility fixes. (Dave Borowitz)
  261. * Fix thin pack handling. (Dave Borowitz)
  262. FEATURES
  263. * Add include-tag capability to server. (Dave Borowitz)
  264. * New dulwich.fastexport module that can generate fastexport
  265. streams. (Jelmer Vernooij)
  266. * Implemented BaseRepo.__contains__. (Jelmer Vernooij)
  267. * Add __setitem__ to DictRefsContainer. (Dave Borowitz)
  268. * Overall improvements checking Git objects. (Dave Borowitz)
  269. * Packs are now verified while they are received. (Dave Borowitz)
  270. TESTS
  271. * Add framework for testing compatibility with C Git. (Dave Borowitz)
  272. * Add various tests for the use of non-bare repositories. (Dave Borowitz)
  273. * Cope with diffstat not being available on all platforms.
  274. (Tay Ray Chuan, Jelmer Vernooij)
  275. * Add make_object and make_commit convenience functions to test utils.
  276. (Dave Borowitz)
  277. API BREAKAGES
  278. * The 'committer' and 'message' arguments to Repo.do_commit() have
  279. been swapped. 'committer' is now optional. (Jelmer Vernooij)
  280. * Repo.get_blob, Repo.commit, Repo.tag and Repo.tree are now deprecated.
  281. (Jelmer Vernooij)
  282. * RefsContainer.set_ref() was renamed to RefsContainer.set_symbolic_ref(),
  283. for clarity. (Jelmer Vernooij)
  284. API CHANGES
  285. * The primary serialization APIs in dulwich.objects now work
  286. with chunks of strings rather than with full-text strings.
  287. (Jelmer Vernooij)
  288. 0.5.02010-03-03
  289. BUG FIXES
  290. * Support custom fields in commits (readonly). (Jelmer Vernooij)
  291. * Improved ref handling. (Dave Borowitz)
  292. * Rework server protocol to be smarter and interoperate with cgit client.
  293. (Dave Borowitz)
  294. * Add a GitFile class that uses the same locking protocol for writes as
  295. cgit. (Dave Borowitz)
  296. * Cope with forward slashes correctly in the index on Windows.
  297. (Jelmer Vernooij, #526793)
  298. FEATURES
  299. * --pure option to setup.py to allow building/installing without the C
  300. extensions. (Hal Wine, Anatoly Techtonik, Jelmer Vernooij, #434326)
  301. * Implement Repo.get_config(). (Jelmer Vernooij, Augie Fackler)
  302. * HTTP dumb and smart server. (Dave Borowitz)
  303. * Add abstract baseclass for Repo that does not require file system
  304. operations. (Dave Borowitz)
  305. 0.4.1 2010-01-03
  306. FEATURES
  307. * Add ObjectStore.iter_tree_contents(). (Jelmer Vernooij)
  308. * Add Index.changes_from_tree(). (Jelmer Vernooij)
  309. * Add ObjectStore.tree_changes(). (Jelmer Vernooij)
  310. * Add functionality for writing patches in dulwich.patch.
  311. (Jelmer Vernooij)
  312. 0.4.0 2009-10-07
  313. DOCUMENTATION
  314. * Added tutorial.
  315. API CHANGES
  316. * dulwich.object_store.tree_lookup_path will now return the mode and
  317. sha of the object found rather than the object itself.
  318. BUG FIXES
  319. * Use binascii.hexlify / binascii.unhexlify for better performance.
  320. * Cope with extra unknown data in index files by ignoring it (for now).
  321. * Add proper error message when server unexpectedly hangs up. (#415843)
  322. * Correctly write opcode for equal in create_delta.
  323. 0.3.3 2009-07-23
  324. FEATURES
  325. * Implement ShaFile.__hash__().
  326. * Implement Tree.__len__()
  327. BUG FIXES
  328. * Check for 'objects' and 'refs' directories
  329. when looking for a Git repository. (#380818)
  330. 0.3.2 2009-05-20
  331. BUG FIXES
  332. * Support the encoding field in Commits.
  333. * Some Windows compatibility fixes.
  334. * Fixed several issues in commit support.
  335. FEATURES
  336. * Basic support for handling submodules.
  337. 0.3.1 2009-05-13
  338. FEATURES
  339. * Implemented Repo.__getitem__, Repo.__setitem__ and Repo.__delitem__ to
  340. access content.
  341. API CHANGES
  342. * Removed Repo.set_ref, Repo.remove_ref, Repo.tags, Repo.get_refs and
  343. Repo.heads in favor of Repo.refs, a dictionary-like object for accessing
  344. refs.
  345. BUG FIXES
  346. * Removed import of 'sha' module in objects.py, which was causing
  347. deprecation warnings on Python 2.6.
  348. 0.3.0 2009-05-10
  349. FEATURES
  350. * A new function 'commit_tree' has been added that can commit a tree
  351. based on an index.
  352. BUG FIXES
  353. * The memory usage when generating indexes has been significantly reduced.
  354. * A memory leak in the C implementation of parse_tree has been fixed.
  355. * The send-pack smart server command now works. (Thanks Scott Chacon)
  356. * The handling of short timestamps (less than 10 digits) has been fixed.
  357. * The handling of timezones has been fixed.
  358. 0.2.1 2009-04-30
  359. BUG FIXES
  360. * Fix compatibility with Python2.4.
  361. 0.2.0 2009-04-30
  362. FEATURES
  363. * Support for activity reporting in smart protocol client.
  364. * Optional C extensions for better performance in a couple of
  365. places that are performance-critical.
  366. 0.1.1 2009-03-13
  367. BUG FIXES
  368. * Fixed regression in Repo.find_missing_objects()
  369. * Don't fetch ^{} objects from remote hosts, as requesting them
  370. causes a hangup.
  371. * Always write pack to disk completely before calculating checksum.
  372. FEATURES
  373. * Allow disabling thin packs when talking to remote hosts.
  374. 0.1.0 2009-01-24
  375. * Initial release.