Fix order of arguments to Tree.add.
[jelmer/dulwich.git] / NEWS
1 0.7.1   UNRELEASED
2
3  BUG FIXES
4
5   * Fix double decref in _diff_tree.c. (Ted Horst, #715528)
6
7   * Fix the build on Windows. (Pascal Quantin)
8
9   * Fix get_transport_and_path compatibility with pre-2.6.5 versions of Python.
10     (Max Bowsher, #707438)
11
12   * BaseObjectStore.determine_wants_all no longer breaks on zero SHAs.
13     (Jelmer Vernooij)
14
15  IMPROVEMENTS
16
17   * Sphinxified documentation. (Lukasz Balcerzak)
18
19  API CHANGES
20
21   * The order of the parameters to Tree.add(name, mode, sha) has changed, and
22     is now consistent with the rest of Dulwich. Existing code will still
23     work but print a DeprecationWarning. (Jelmer Vernooij, #663550)
24
25 0.7.0   2011-01-21
26
27  FEATURES
28
29   * New `dulwich.diff_tree` module for simple content-based rename detection.
30     (Dave Borowitz)
31
32   * Add Tree.items(). (Jelmer Vernooij)
33
34   * Add eof() and unread_pkt_line() methods to Protocol. (Dave Borowitz)
35
36   * Add write_tree_diff(). (Jelmer Vernooij)
37
38   * Add `serve_command` function for git server commands as executables.
39     (Jelmer Vernooij)
40
41   * dulwich.client.get_transport_and_path now supports rsync-style repository URLs.
42     (Dave Borowitz, #568493)
43
44  BUG FIXES
45
46   * Correct short-circuiting operation for no-op fetches in the server.
47     (Dave Borowitz)
48
49   * Support parsing git mbox patches without a version tail, as generated by
50     Mercurial.  (Jelmer Vernooij)
51
52   * Fix dul-receive-pack and dul-upload-pack. (Jelmer Vernooij)
53
54   * Zero-padded file modes in Tree objects no longer trigger an exception but
55     the check code warns about them. (Augie Fackler, #581064)
56
57   * Repo.init() now honors the mkdir flag. (#671159)
58
59   * The ref format is now checked when setting a ref rather than when reading it back.
60     (Dave Borowitz, #653527)
61
62   * Make sure pack files are closed correctly. (Tay Ray Chuan)
63
64  DOCUMENTATION
65
66   * Run the tutorial inside the test suite. (Jelmer Vernooij)
67
68   * Reorganized and updated the tutorial. (Jelmer Vernooij, Dave Borowitz, #610550,
69      #610540)
70
71
72 0.6.2   2010-10-16
73
74  BUG FIXES
75
76   * HTTP server correctly handles empty CONTENT_LENGTH. (Dave Borowitz)
77
78   * Don't error when creating GitFiles with the default mode. (Dave Borowitz)
79
80   * ThinPackData.from_file now works with resolve_ext_ref callback.
81     (Dave Borowitz)
82
83   * Provide strnlen() on mingw32 which doesn't have it. (Hans Kolek)
84
85   * Set bare=true in the configuratin for bare repositories. (Dirk Neumann)
86
87  FEATURES
88
89   * Use slots for core objects to save up on memory. (Jelmer Vernooij)
90
91   * Web server supports streaming progress/pack output. (Dave Borowitz)
92
93   * New public function dulwich.pack.write_pack_header. (Dave Borowitz)
94
95   * Distinguish between missing files and read errors in HTTP server.
96     (Dave Borowitz)
97
98   * Initial work on support for fastimport using python-fastimport.
99     (Jelmer Vernooij)
100
101   * New dulwich.pack.MemoryPackIndex class. (Jelmer Vernooij)
102
103   * Delegate SHA peeling to the object store.  (Dave Borowitz)
104
105  TESTS
106
107   * Use GitFile when modifying packed-refs in tests. (Dave Borowitz)
108
109   * New tests in test_web with better coverage and fewer ad-hoc mocks.
110     (Dave Borowitz)
111
112   * Standardize quote delimiters in test_protocol. (Dave Borowitz)
113
114   * Fix use when testtools is installed. (Jelmer Vernooij)
115
116   * Add trivial test for write_pack_header. (Jelmer Vernooij)
117
118   * Refactor some of dulwich.tests.compat.server_utils. (Dave Borowitz)
119
120   * Allow overwriting id property of objects in test utils. (Dave Borowitz)
121
122   * Use real in-memory objects rather than stubs for server tests.
123     (Dave Borowitz)
124
125   * Clean up MissingObjectFinder. (Dave Borowitz)
126
127  API CHANGES
128
129   * ObjectStore.iter_tree_contents now walks contents in depth-first, sorted
130     order. (Dave Borowitz)
131
132   * ObjectStore.iter_tree_contents can optionally yield tree objects as well.
133     (Dave Borowitz).
134
135   * Add side-band-64k support to ReceivePackHandler. (Dave Borowitz)
136
137   * Change server capabilities methods to classmethods. (Dave Borowitz)
138
139   * Tweak server handler injection. (Dave Borowitz)
140
141   * PackIndex1 and PackIndex2 now subclass FilePackIndex, which is 
142     itself a subclass of PackIndex. (Jelmer Vernooij)
143
144  DOCUMENTATION
145
146   * Add docstrings for various functions in dulwich.objects. (Jelmer Vernooij)
147
148   * Clean up docstrings in dulwich.protocol. (Dave Borowitz)
149
150   * Explicitly specify allowed protocol commands to
151     ProtocolGraphWalker.read_proto_line.  (Dave Borowitz)
152
153   * Add utility functions to DictRefsContainer. (Dave Borowitz)
154
155
156 0.6.1   2010-07-22
157
158  BUG FIXES
159
160   * Fix memory leak in C implementation of sorted_tree_items. (Dave Borowitz)
161
162   * Use correct path separators for named repo files. (Dave Borowitz)
163
164   * python > 2.7 and testtools-based test runners will now also pick up skipped
165     tests correctly. (Jelmer Vernooij)
166
167  FEATURES
168
169   * Move named file initilization to BaseRepo. (Dave Borowitz)
170
171   * Add logging utilities and git/HTTP server logging. (Dave Borowitz)
172
173   * The GitClient interface has been cleaned up and instances are now reusable.
174     (Augie Fackler)
175
176   * Allow overriding paths to executables in GitSSHClient. 
177     (Ross Light, Jelmer Vernooij, #585204)
178
179   * Add PackBasedObjectStore.pack_loose_objects(). (Jelmer Vernooij)
180
181  TESTS
182
183   * Add tests for sorted_tree_items and C implementation. (Dave Borowitz)
184
185   * Add a MemoryRepo that stores everything in memory. (Dave Borowitz)
186
187   * Quiet logging output from web tests. (Dave Borowitz)
188
189   * More flexible version checking for compat tests. (Dave Borowitz)
190
191   * Compat tests for servers with and without side-band-64k. (Dave Borowitz)
192
193  CLEANUP
194
195   * Clean up file headers. (Dave Borowitz)
196
197  TESTS
198
199   * Use GitFile when modifying packed-refs in tests. (Dave Borowitz)
200
201  API CHANGES
202
203   * dulwich.pack.write_pack_index_v{1,2} now take a file-like object
204     rather than a filename. (Jelmer Vernooij)
205
206   * Make dul-daemon/dul-web trivial wrappers around server functionality.
207     (Dave Borowitz)
208
209   * Move reference WSGI handler to web.py. (Dave Borowitz)
210
211   * Factor out _report_status in ReceivePackHandler. (Dave Borowitz)
212
213   * Factor out a function to convert a line to a pkt-line. (Dave Borowitz)
214
215
216 0.6.0   2010-05-22
217
218 note: This list is most likely incomplete for 0.6.0.
219
220  BUG FIXES
221  
222   * Fix ReceivePackHandler to disallow removing refs without delete-refs.
223     (Dave Borowitz)
224
225   * Deal with capabilities required by the client, even if they 
226     can not be disabled in the server. (Dave Borowitz)
227
228   * Fix trailing newlines in generated patch files.
229     (Jelmer Vernooij)
230
231   * Implement RefsContainer.__contains__. (Jelmer Vernooij)
232
233   * Cope with \r in ref files on Windows. (
234     http://github.com/jelmer/dulwich/issues/#issue/13, Jelmer Vernooij)
235
236   * Fix GitFile breakage on Windows. (Anatoly Techtonik, #557585)
237
238   * Support packed ref deletion with no peeled refs. (Augie Fackler)
239
240   * Fix send pack when there is nothing to fetch. (Augie Fackler)
241
242   * Fix fetch if no progress function is specified. (Augie Fackler)
243
244   * Allow double-staging of files that are deleted in the index. 
245     (Dave Borowitz)
246
247   * Fix RefsContainer.add_if_new to support dangling symrefs.
248     (Dave Borowitz)
249
250   * Non-existant index files in non-bare repositories are now treated as 
251     empty. (Dave Borowitz)
252
253   * Always update ShaFile.id when the contents of the object get changed. 
254     (Jelmer Vernooij)
255
256   * Various Python2.4-compatibility fixes. (Dave Borowitz)
257
258   * Fix thin pack handling. (Dave Borowitz)
259  
260  FEATURES
261
262   * Add include-tag capability to server. (Dave Borowitz)
263
264   * New dulwich.fastexport module that can generate fastexport 
265     streams. (Jelmer Vernooij)
266
267   * Implemented BaseRepo.__contains__. (Jelmer Vernooij)
268
269   * Add __setitem__ to DictRefsContainer. (Dave Borowitz)
270
271   * Overall improvements checking Git objects. (Dave Borowitz)
272
273   * Packs are now verified while they are received. (Dave Borowitz)
274
275  TESTS
276
277   * Add framework for testing compatibility with C Git. (Dave Borowitz)
278
279   * Add various tests for the use of non-bare repositories. (Dave Borowitz)
280
281   * Cope with diffstat not being available on all platforms. 
282     (Tay Ray Chuan, Jelmer Vernooij)
283
284   * Add make_object and make_commit convenience functions to test utils.
285     (Dave Borowitz)
286
287  API BREAKAGES
288
289   * The 'committer' and 'message' arguments to Repo.do_commit() have 
290     been swapped. 'committer' is now optional. (Jelmer Vernooij)
291
292   * Repo.get_blob, Repo.commit, Repo.tag and Repo.tree are now deprecated.
293     (Jelmer Vernooij)
294
295   * RefsContainer.set_ref() was renamed to RefsContainer.set_symbolic_ref(),
296     for clarity. (Jelmer Vernooij)
297
298  API CHANGES
299
300   * The primary serialization APIs in dulwich.objects now work 
301     with chunks of strings rather than with full-text strings. 
302     (Jelmer Vernooij)
303
304 0.5.02010-03-03
305
306  BUG FIXES
307
308   * Support custom fields in commits (readonly). (Jelmer Vernooij)
309
310   * Improved ref handling. (Dave Borowitz)
311
312   * Rework server protocol to be smarter and interoperate with cgit client.
313     (Dave Borowitz)
314
315   * Add a GitFile class that uses the same locking protocol for writes as 
316     cgit. (Dave Borowitz)
317
318   * Cope with forward slashes correctly in the index on Windows.
319     (Jelmer Vernooij, #526793)
320
321  FEATURES
322
323   * --pure option to setup.py to allow building/installing without the C 
324     extensions. (Hal Wine, Anatoly Techtonik, Jelmer Vernooij, #434326)
325
326   * Implement Repo.get_config(). (Jelmer Vernooij, Augie Fackler)
327
328   * HTTP dumb and smart server. (Dave Borowitz)
329
330   * Add abstract baseclass for Repo that does not require file system 
331     operations. (Dave Borowitz)
332
333 0.4.1   2010-01-03
334
335  FEATURES
336
337   * Add ObjectStore.iter_tree_contents(). (Jelmer Vernooij)
338
339   * Add Index.changes_from_tree(). (Jelmer Vernooij)
340
341   * Add ObjectStore.tree_changes(). (Jelmer Vernooij)
342
343   * Add functionality for writing patches in dulwich.patch.
344     (Jelmer Vernooij)
345
346 0.4.0   2009-10-07
347
348  DOCUMENTATION
349
350   * Added tutorial.
351
352  API CHANGES
353
354   * dulwich.object_store.tree_lookup_path will now return the mode and 
355     sha of the object found rather than the object itself.
356
357  BUG FIXES
358
359   * Use binascii.hexlify / binascii.unhexlify for better performance.
360
361   * Cope with extra unknown data in index files by ignoring it (for now).
362
363   * Add proper error message when server unexpectedly hangs up. (#415843)
364
365   * Correctly write opcode for equal in create_delta.
366
367 0.3.3   2009-07-23
368
369  FEATURES
370
371   * Implement ShaFile.__hash__().
372
373   * Implement Tree.__len__()
374
375  BUG FIXES
376   
377   * Check for 'objects' and 'refs' directories
378     when looking for a Git repository. (#380818)
379
380 0.3.2   2009-05-20
381
382  BUG FIXES
383
384   * Support the encoding field in Commits.
385   
386   * Some Windows compatibility fixes.
387
388   * Fixed several issues in commit support.
389
390  FEATURES
391
392   * Basic support for handling submodules.
393
394 0.3.1   2009-05-13
395
396  FEATURES
397
398   * Implemented Repo.__getitem__, Repo.__setitem__ and Repo.__delitem__ to 
399     access content.
400
401  API CHANGES
402
403   * Removed Repo.set_ref, Repo.remove_ref, Repo.tags, Repo.get_refs and 
404     Repo.heads in favor of Repo.refs, a dictionary-like object for accessing
405     refs.
406
407  BUG FIXES
408
409   * Removed import of 'sha' module in objects.py, which was causing 
410     deprecation warnings on Python 2.6.
411
412 0.3.0   2009-05-10
413
414  FEATURES
415
416   * A new function 'commit_tree' has been added that can commit a tree 
417     based on an index.
418
419  BUG FIXES
420
421   * The memory usage when generating indexes has been significantly reduced.
422  
423   * A memory leak in the C implementation of parse_tree has been fixed.
424
425   * The send-pack smart server command now works. (Thanks Scott Chacon)
426
427   * The handling of short timestamps (less than 10 digits) has been fixed.
428
429   * The handling of timezones has been fixed.
430
431 0.2.1   2009-04-30
432
433  BUG FIXES
434
435   * Fix compatibility with Python2.4.
436
437 0.2.0   2009-04-30
438
439  FEATURES
440
441   * Support for activity reporting in smart protocol client.
442
443   * Optional C extensions for better performance in a couple of 
444     places that are performance-critical.
445
446 0.1.1   2009-03-13
447
448  BUG FIXES
449
450   * Fixed regression in Repo.find_missing_objects()
451
452   * Don't fetch ^{} objects from remote hosts, as requesting them 
453     causes a hangup.
454
455   * Always write pack to disk completely before calculating checksum.
456
457  FEATURES
458
459   * Allow disabling thin packs when talking to remote hosts.
460
461 0.1.0   2009-01-24
462
463  * Initial release.