/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/en/release-notes/bzr-2.4.txt

  • Committer: Vincent Ladeuil
  • Date: 2011-06-15 11:36:05 UTC
  • mto: This revision was merged to the branch mainline in revision 5975.
  • Revision ID: v.ladeuil+lp@free.fr-20110615113605-p7zyyfry9wy1hquc
Make ContentConflict resolution more robust

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
####################
 
2
Bazaar Release Notes
 
3
####################
 
4
 
 
5
.. toctree::
 
6
   :maxdepth: 1
 
7
 
 
8
bzr 2.4b4
 
9
#########
 
10
 
 
11
:2.4b4: NOT RELEASED YET
 
12
 
 
13
External Compatibility Breaks
 
14
*****************************
 
15
 
 
16
.. These may require users to change the way they use Bazaar.
 
17
 
 
18
* Do not treat configuration option 'check_signatures = require' as if
 
19
  it were 'create_signatures = always' (Jonathan Riddell)
 
20
 
 
21
New Features
 
22
************
 
23
 
 
24
.. New commands, options, etc that users may wish to try out.
 
25
 
 
26
* New hook server_exception in bzrlib.smart.server to catch any
 
27
  exception caused while running bzr serve.  (Jonathan Riddell,
 
28
  #274578)
 
29
 
 
30
* New hook set_commit_message in bzrlib.msgeditor to set
 
31
  a commit message and revision properties.  (Jonathan Riddell,
 
32
  #274578)
 
33
 
 
34
* Support ``-S`` as an alias for ``--short`` for the ``log`` and
 
35
  ``missing`` commands. (Martin von Gagern, #38655)
 
36
 
 
37
Improvements
 
38
************
 
39
 
 
40
.. Improvements to existing commands, especially improved performance 
 
41
   or memory usage, or better results.
 
42
 
 
43
* ``bzr annotate`` can be run without setting whoami data first. (Jonathan
 
44
  Riddell, #667408)
 
45
 
 
46
Bug Fixes
 
47
*********
 
48
 
 
49
.. Fixes for situations where bzr would previously crash or give incorrect
 
50
   or undesirable results.
 
51
 
 
52
* Bazaar can now detect when a lock file is held by a dead process
 
53
  originating from the same machine, and steal the lock after printing a
 
54
  message to the user.  This is off by default, for safety, but can be
 
55
  turned on by setting the configuration variable ``locks.steal_dead`` to
 
56
  ``True``.
 
57
  (Martin Pool, #220464)
 
58
 
 
59
* Credentials in the log output produced by ``-Dhttp`` are masked so users
 
60
  can more freely post them in bug reports. (Vincent Ladeuil, #723074)
 
61
 
 
62
* Fix a race condition for ``server_started`` hooks leading to a spurious
 
63
  test failure. (Vincent Ladeuil, #789167)
 
64
 
 
65
* Handle files that get created but don't get used during TreeTransform.
 
66
  ``open()`` can create a file, and still raise an exception before it
 
67
  returns. So anything we might have created, make sure we destroy during
 
68
  ``finalize()``. (Martin [gz], #597686)
 
69
 
 
70
* ``pack_repo`` now uses ``Transport.move`` instead of
 
71
  ``Transport.rename``, deleting any existing targets even on SFTP.
 
72
  (Martin von Gagern, #421776)
 
73
 
 
74
* Pass the ``build_mo`` command to the rest of the setup() calls in
 
75
  setup.py. The ``bdist_wininst`` and ``py2exe`` code paths were failing
 
76
  because ``build_mo`` became a required step that they didn't know about.
 
77
  (John Arbash Meinel, #787122)
 
78
 
 
79
* Reports the original error when an InvalidHttpResponse exception is
 
80
  encountered to facilitate debug. (Vincent Ladeuil, #788530)
 
81
 
 
82
* Reports a non-existant file error when trying to merge in a file
 
83
  that does not exist. (Jonathan Riddell, #330063)
 
84
 
 
85
* ``UIFactory.prompt``, ``UIFactory.get_username``,
 
86
  ``UIFactory.get_password`` and ``UIFactory.get_boolean`` now require a
 
87
  unicode prompt to be passed in. (Jelmer Vernooij, #592083)
 
88
 
 
89
* Support merging into the empty tree. (Aaron Bentley, #595328)
 
90
 
 
91
Documentation
 
92
*************
 
93
 
 
94
.. Improved or updated documentation.
 
95
 
 
96
* Improve documentation of ``bzr merge --force``.
 
97
  (Neil Martinsen-Burrell, #767307)
 
98
 
 
99
* Make docs for configuration options for digital signatures match 
 
100
  reality. (Jonathan Riddell)
 
101
 
 
102
* Add user-guide page on GPG signatures. (Jonathan Riddell)
 
103
 
 
104
API Changes
 
105
***********
 
106
 
 
107
.. Changes that may require updates in plugins or other code that uses
 
108
   bzrlib.
 
109
 
 
110
* Information about held lockdir locks returned from eg `LockDir.peek` is
 
111
  now represented as a `LockHeldInfo` object, rather than a plain Python
 
112
  dict.
 
113
 
 
114
Internals
 
115
*********
 
116
 
 
117
.. Major internal changes, unlikely to be visible to users or plugin 
 
118
   developers, but interesting for bzr developers.
 
119
 
 
120
* ``tools/check-newsbugs.py`` accepts a ``--browser`` option to open
 
121
  corresponding launchpad pages in a browser. (Vincent Ladeuil)
 
122
 
 
123
Testing
 
124
*******
 
125
 
 
126
.. Fixes and changes that are only relevant to bzr's test framework and 
 
127
   suite.  This can include new facilities for writing tests, fixes to 
 
128
   spurious test failures and changes to the way things should be tested.
 
129
 
 
130
* A `ImportTariffTestCase` base class has been added in
 
131
  ``bzrlib.tests.test_import_tariff``, which can be used for import tariff
 
132
  tests in plugins. (Jelmer Vernooij, #793465)
 
133
 
 
134
* Fix deadlock in `TestImportTariffs.test_simple_serve` when stderr gets
 
135
  more output than fits in the default buffer.  This was happening on the
 
136
  Windows buildslave, and could easily happen in other circumstances where
 
137
  the default OS buffer size for pipes is small or the ``python -v``
 
138
  output is large.  (Andrew Bennetts, #784802)
 
139
 
 
140
* Fix spurious test failure on OSX for WorkingTreeFormat2.
 
141
  (Vincent Ladeuil, #787942)
 
142
 
 
143
* Re-target ``bb.test_merge.TestMerge.test_merge_reversed_revision_range``
 
144
  and rewrite it as a parameterized test to avoid unrelated failures.
 
145
  (Vincent Ladeuil, #795456)
 
146
 
 
147
* Show log file contents from subprocesses started by
 
148
  `start_bzr_subprocess` in test failure details.  This may help diagnose
 
149
  strange hangs and failures involving subprocesses.  (Andrew Bennetts)
 
150
 
 
151
* Skip ``utextwrap`` tests when ``sphinx`` breaks text_wrap by an hostile
 
152
  monkeypatch to textwrap.TextWrapper.wordsep_re.
 
153
  (Vincent Ladeuil, #785098)
 
154
 
 
155
* Multiple ``selftest --exclude`` options are now combined instead of
 
156
  overriding each other. (Vincent Ladeuil, #746991)
 
157
 
 
158
* Restore some ``FTPTransport`` test coverage by allowing ``pyftpdlib
 
159
  0.6.0`` to be used. Also restore ``medusa`` support while leaving it
 
160
  disabled to make it easier to use if/when we can in the future.
 
161
  (Vincent Ladeuil, #781140)
 
162
 
 
163
* `TestImportTariffs` no longer uses the real ``$HOME``.  This prevents it
 
164
  from polluting ``$HOME/.bzr.log`` or being accidentally influenced by
 
165
  user configuration such as aliases.  It still runs with all the user's
 
166
  plugins enabled, as intended.
 
167
  (Vincent Ladeuil, Andrew Bennetts, #789505)
 
168
 
 
169
 
 
170
bzr 2.4b3
 
171
#########
 
172
 
 
173
:2.4b3: 2011-05-26
 
174
 
 
175
This is the third beta of the 2.4 series, leading to a 2.4.0 release in
 
176
August 2011. Beta releases are suitable for everyday use but may cause some
 
177
incompatibilities with plugins.
 
178
 
 
179
This release includes all bug fixed in previous series known at the time of
 
180
this release.
 
181
 
 
182
 
 
183
External Compatibility Breaks
 
184
*****************************
 
185
 
 
186
.. These may require users to change the way they use Bazaar.
 
187
 
 
188
* ``bzr-2.4`` has officially dropped support for python2.4 and python2.5.
 
189
  We will continue to maintain ``bzr-2.3`` for people who still need to
 
190
  use those versions of python. (John Arbash Meinel)
 
191
 
 
192
New Features
 
193
************
 
194
 
 
195
.. New commands, options, etc that users may wish to try out.
 
196
 
 
197
* The text compressor used for 2a repositories now has a tweakable
 
198
  parameter that can be set in bazaar.conf.
 
199
  ``bzr.groupcompress.max_entries_per_source`` default of 65536.
 
200
  When doing compression, we build up an index of locations to match
 
201
  against. Setting this higher will result in slightly better compression,
 
202
  at a cost of more memory. Note that a value of 65k represents fully
 
203
  sampling a 1MB file. So this only has an effect when compressing texts
 
204
  larger than N*16 bytes. (John Arbash Meinel, #602614)
 
205
 
 
206
Improvements
 
207
************
 
208
 
 
209
.. Improvements to existing commands, especially improved performance 
 
210
   or memory usage, or better results.
 
211
 
 
212
* ``bzr branch --stacked`` from a smart server uses the network a little
 
213
  more efficiently.  For a simple branch it reduces the number of
 
214
  round-trips by about 20%.  (Andrew Bennetts)
 
215
 
 
216
* ``bzr log --line`` scales the width of the author field with the size of
 
217
  the line.  This means that the full author name is shown when the
 
218
  environment variable BZR_COLUMNS=0.  (Neil Martinsen-Burrell)
 
219
 
 
220
* ``bzr pull`` now properly triggers the fast
 
221
  ``CHKInventory.iter_changes`` rather than the slow generic
 
222
  inter-Inventory changes. It used to use a ``DirStateRevisionTree`` as
 
223
  one of the source trees, which is faster when we have to read the whole
 
224
  inventory anyway, but much slower when we can get just the delta out of
 
225
  the repository. On a 70k record tree, this changes ``bzr pull`` from 28s
 
226
  down to 17s. (John Arbash Meinel, #780677)
 
227
 
 
228
* Slightly reduced memory consumption when fetching into a 2a repository
 
229
  by reusing existing caching a little better.  (Andrew Bennetts)
 
230
 
 
231
* Speed up ``bzr status`` by a little bit when there are a couple of
 
232
  modified files. We now track how many files we have seen that need
 
233
  updating, and only rewrite the dirstate file if enough of them have
 
234
  changed. The default is 10, and can be overridden by setting the branch
 
235
  option "``bzr.workingtree.worth_saving_limit``".
 
236
  (Ian Clatworthy, John Arbash Meinel, #380202)
 
237
 
 
238
* Speed up ``bzr uncommit``. Instead of resetting the dirstate from
 
239
  scratch, use ``update_basis_by_delta``, computing the delta from the
 
240
  repository. (John Arbash Meinel, #780544)
 
241
 
 
242
Bug Fixes
 
243
*********
 
244
 
 
245
.. Fixes for situations where bzr would previously crash or give incorrect
 
246
   or undesirable results.
 
247
 
 
248
* All Tree types can now be exported as tar.*, zip or directories.
 
249
  (Aaron Bentley)
 
250
  
 
251
* ``bzr merge --no-remember location`` never sets ``submit_branch``.
 
252
  (Vincent Ladeuil, #782169)
 
253
 
 
254
* ``bzr pull --no-remember location`` never sets
 
255
  ``parent_location``.  ``bzr push --no-remember location`` never
 
256
  sets ``push_location``.  ``bzr send --no-remember
 
257
  submit_location public_location`` never sets ``submit_branch``
 
258
  nor ``public_branch``.  (Vincent Ladeuil)
 
259
 
 
260
* Conflicts involving non-ascii filenames are now properly reported rather
 
261
  than failing with a UnicodeEncodeError. (Martin [GZ], #686161)
 
262
 
 
263
* Correct parent is now set when using 'switch -b' with bound branches.
 
264
  (A. S. Budden, #513709)
 
265
 
 
266
* Fix `bzr plugins` regression in bzr 2.4 which resulted in a traceback
 
267
  from writelines on ckj terminals. (Martin [GZ], #754082)
 
268
 
 
269
* ``WT.inventory`` and ``WT.iter_entries_by_dir()`` was not correctly
 
270
  reporting subdirectories that were tree references (in formats that
 
271
  supported them). (John Arbash Meinel, #764677)
 
272
 
 
273
* Merging into empty branches now gives an error as this is currently
 
274
  not supported. (Jonathan Riddell, #242175)
 
275
 
 
276
* Do not show exception to user on pointless commit error (Jonathan
 
277
  Riddell #317357)
 
278
 
 
279
* ``WT.update_basis_by_delta`` no longer requires that the deltas match
 
280
  the current WT state. This allows ``update_basis_by_delta`` to be used
 
281
  by more commands than just commit. Updating with a delta allows us to
 
282
  not load the whole inventory, which can take 10+s with large trees.
 
283
  (Jonathan Riddell, John Arbash Meinel, #781168)
 
284
 
 
285
 
 
286
Documentation
 
287
*************
 
288
 
 
289
.. Improved or updated documentation.
 
290
 
 
291
* Restore the workaround for option names including dots (--1.14) which was
 
292
  disabled when we stopped listing --1.9 as a format.
 
293
  (Vincent Ladeuil, #782289)
 
294
 
 
295
API Changes
 
296
***********
 
297
 
 
298
.. Changes that may require updates in plugins or other code that uses
 
299
   bzrlib.
 
300
 
 
301
* ``annotate_file`` has been deprecated in favor of
 
302
  ``annotate_file_revision_tree``. (Jelmer Vernooij, #775598)
 
303
 
 
304
* ``Branch.fetch`` now takes an optional ``limit`` argument.
 
305
  (Andrew Bennetts, Jelmer Vernooij, #750175)
 
306
 
 
307
* ``Inter.get`` now raises ``NoCompatibleInter`` if there are no
 
308
  compatible optimisers rather than an instance of the class it is called
 
309
  on. (Jelmer Vernooij)
 
310
 
 
311
* ``Branch.push`` now takes a ``lossy`` argument.
 
312
  ``Branch.lossy_push`` has been removed.
 
313
  (Jelmer Vernooij)
 
314
 
 
315
* New method ``Repository.get_file_graph`` which can return the
 
316
  per-file revision graph. (Jelmer Vernooij, #775578)
 
317
 
 
318
* The default implementation of ``Branch`` is now oriented to
 
319
  storing the branch tip. Branch implementations which store the full
 
320
  history should now subclass ``FullHistoryBzrBranch``.
 
321
  ``Branch._last_revision_info`` has been renamed to
 
322
  ``Branch._read_last_revision_info`` (Jelmer Vernooij)
 
323
 
 
324
* ``Tree.__iter__`` has been deprecated; use ``Tree.all_file_ids``
 
325
  instead.  (Jelmer Vernooij)
 
326
 
 
327
* ``Tree.get_symlink_target`` now takes an optional ``path``
 
328
  argument. (Jelmer Vernooij)
 
329
 
 
330
Internals
 
331
*********
 
332
 
 
333
.. Major internal changes, unlikely to be visible to users or plugin 
 
334
   developers, but interesting for bzr developers.
 
335
 
 
336
* ``MutableTree.smart_add`` now uses inventory deltas.
 
337
  (Jelmer Vernooij, #146165)
 
338
 
 
339
* Removed ``bzrlib.branch._run_with_write_locked_target`` as
 
340
  ``bzrlib.cleanup`` provides the same functionality in a more general
 
341
  way.  (Andrew Bennetts)
 
342
 
 
343
Testing
 
344
*******
 
345
 
 
346
.. Fixes and changes that are only relevant to bzr's test framework and 
 
347
   suite.  This can include new facilities for writing tests, fixes to 
 
348
   spurious test failures and changes to the way things should be tested.
 
349
 
 
350
* A test that was expected to fail but passes instead now counts as a failure
 
351
  catching up with new testtools and subunit handling. (Martin [GZ], #654474)
 
352
 
 
353
* Make it easier for plugins to reuse the per_workingtree scenarios by
 
354
  restoring the wt_scenarios helper that was accidentally deleted.
 
355
  (Vincent Ladeuil, #783472)
 
356
 
 
357
* Removed ``test_breakin`` tests that were excessively prone to hanging,
 
358
  did not work on Wine, and partly already disabled.
 
359
  (Martin Pool, #408814, #746985)
 
360
 
 
361
* Windows locations are different and should be tested accordingly.
 
362
  (Vincent Ladeuil, #788131)
 
363
 
 
364
bzr 2.4b2
 
365
#########
 
366
 
 
367
:2.4b2: 2011-04-28
 
368
 
 
369
This is the second beta of the 2.4 series, leading to a 2.4.0 release in
 
370
August 2011. Beta releases are suitable for everyday use but may cause some
 
371
incompatibilities with plugins.
 
372
 
 
373
This release includes all bug fixed in previous series known at the time of
 
374
this release.
 
375
 
 
376
 
 
377
External Compatibility Breaks
 
378
*****************************
 
379
 
 
380
.. These may require users to change the way they use Bazaar.
 
381
 
 
382
* Two command synonyms for ``bzr branch`` have been deprecated, to avoid
 
383
  confusion and to allow the names to later be reused.  The removed names
 
384
  are: ``get`` and ``clone``.   (Martin Pool, #506265)
 
385
 
 
386
New Features
 
387
************
 
388
 
 
389
.. New commands, options, etc that users may wish to try out.
 
390
 
 
391
* ``bzr commit`` now supports a ``--lossy`` argument that can be used
 
392
  to discard any data that can not be natively represented when committing
 
393
  to a foreign VCS. (Jelmer Vernooij, #587721)
 
394
 
 
395
Improvements
 
396
************
 
397
 
 
398
.. Improvements to existing commands, especially improved performance 
 
399
   or memory usage, or better results.
 
400
 
 
401
* ``bzr merge`` in large trees is now significantly faster. On a 70k entry
 
402
  tree, the time went from ~3min down to 30s. This also effects ``bzr pull``
 
403
  and ``bzr update`` since they use the same merge logic to update the
 
404
  WorkingTree.  (John Arbash Meinel, #759091)
 
405
 
 
406
* ``bzr revert`` now properly uses ``bzr status``'s optimized
 
407
  ``iter_changes``. This can be a significant performance difference (33s
 
408
  to 5s on large trees). (John Arbash Meinel, #759096)
 
409
 
 
410
* Resolve ``lp:FOO`` urls locally rather than doing an XMLRPC request if
 
411
  the user has done ``bzr launchpad-login``. The bzr+ssh URLs were already
 
412
  being handed off to the remote server anyway (xmlrpc has been mapping
 
413
  ``lp:bzr`` to ``bzr+ssh://bazaar.launchpad.net/+branch/bzr``, rather
 
414
  than ``bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev`` for a few
 
415
  months now.) By doing it ourselves, we can cut out substantial startup
 
416
  time. From Netherlands to London it was taking 368ms to do the XMLRPC
 
417
  call as much as 2s from Sydney. You can test the local logic by using
 
418
  ``-Dlaunchpad``.  (John Arbash Meinel, #397739)
 
419
 
 
420
* When building a new WorkingTree (such as during ``bzr co`` or
 
421
  ``bzr branch``) we now properly store the stat and hash of files that
 
422
  are old enough. This saves a fair amount of time on the first
 
423
  ``bzr status`` (on a 500MB tree, it saves about 30+s).
 
424
  (John Arbash Meinel, #740932)
 
425
 
 
426
 
 
427
Bug Fixes
 
428
*********
 
429
 
 
430
.. Fixes for situations where bzr would previously crash or give incorrect
 
431
   or undesirable results.
 
432
 
 
433
* Arguments that can't be decoded to unicode in the current posix locale give
 
434
  a clearer error message without a traceback. (Martin [gz], #745712)
 
435
 
 
436
* ``bzrlib.log._DEFAULT_REQUEST_PARAMS`` is no longer accidentally
 
437
  mutated by ``bzrlib.log._apply_log_request_defaults``.  In practice
 
438
  these default values aren't relied on very often so this probably
 
439
  wasn't causing any trouble.  (Andrew Bennetts)
 
440
 
 
441
* ``bzr log`` now works on revisions which are not in the current branch.
 
442
  (Matt Giuca, #241998)
 
443
 
 
444
* Don't rewrite the dirstate file when non-interesting changes have
 
445
  occurred. This can significantly improve 'bzr status' times when there
 
446
  are only small changes to a large tree.
 
447
  (Ian Clatworthy, John Arbash Meinel, #380202)
 
448
 
 
449
* Lazy hooks are now reset between test runs. (Jelmer Vernooij, #745566)
 
450
 
 
451
* ``bzrlib.merge.Merge`` now calls ``iter_changes`` without
 
452
  ``include_unversioned=True``. This makes it significantly faster in many
 
453
  cases, because it only looks at modified files, rather than building
 
454
  information about all files. This can cause failures in other
 
455
  TreeTransform code, because it had been expecting to know the names of
 
456
  things which had not changed (such as parent directories). All cases we
 
457
  know about so far have been fixed, but there may be fallout for edge
 
458
  cases that we are missing. (John Arbash Meinel, #759091)
 
459
 
 
460
* ``SFTPTransport`` is more pro-active about closing file-handles. This
 
461
  reduces the chance of having threads fail from async requests while
 
462
  running the test suite. (John Arbash Meinel, #656170)
 
463
 
 
464
* Standalone bzr.exe installation on Windows: user can put additional python 
 
465
  libraries into ``site-packages`` subdirectory of the installation directory,
 
466
  this might be required for "installing" extra dependencies for some plugins.
 
467
  (Alexander Belchenko, #743256)
 
468
 
 
469
* ``transform.revert()`` has been updated to use
 
470
  ``wt.iter_changes(basis_tree)`` rather than
 
471
  ``basis_tree.iter_changes(wt)``. This allows the optimized code path to
 
472
  kick in, improving ``bzr revert`` times significantly (33s to 4s on
 
473
  large trees, 0.7s to 0.3s on small trees.) (John Arbash Meinel, #759096)
 
474
 
 
475
* ``TreeTransform.create_file/new_file`` can now take an optional ``sha1``
 
476
  parameter. If supplied, when the transform is applied, it will then call
 
477
  ``self._tree._observed_sha1`` for those files. This lets us update the
 
478
  hash-cache for content that we create, preventing us from re-reading the
 
479
  content in the next ``bzr status``.  (John Arbash Meinel, #740932)
 
480
 
 
481
Documentation
 
482
*************
 
483
 
 
484
* Added a section about using a shared SSH account on a server for bzr+ssh
 
485
  access.  (Russell Smith)
 
486
 
 
487
* The documentation now recommends using SSH rather than SFTP in the
 
488
  tutorials and the examples, because that will generally be much faster
 
489
  and better in cases where it can be used.  SFTP is still available and
 
490
  mentioned as an alternative.  (Martin Pool, #636712)
 
491
 
 
492
API Changes
 
493
***********
 
494
 
 
495
.. Changes that may require updates in plugins or other code that uses
 
496
   bzrlib.
 
497
 
 
498
* ``Branch.update_revisions`` has been made private and should no
 
499
  longer be used by external users. Use ``Branch.pull`` or ``Branch.push``
 
500
  instead. (Jelmer Vernooij, #771765)
 
501
 
 
502
* Commands now have an `invoked_as` attribute, showing the name under
 
503
  which they were called before alias expansion.
 
504
  (Martin Pool)
 
505
 
 
506
* ``Hooks.create_hook`` is now deprecated in favour of ``Hooks.add_hook``.
 
507
  (Jelmer Vernooij)
 
508
 
 
509
* If you call `bzrlib.initialize` but forget to enter the resulting object
 
510
  as a context manager, bzrlib will now be initialized anyhow.
 
511
  (Previously simple programs calling bzrlib might find the library was
 
512
  mysteriously silent.)
 
513
  (Martin Pool)
 
514
 
 
515
* Inventory-specific functionality has been split out of ``Tree`` into
 
516
  a new ``InventoryTree`` class. Tree instances no longer
 
517
  necessarily provide an ``inventory`` attribute. (Jelmer Vernooij)
 
518
 
 
519
* Inventory-specific functionality has been split out of ``RevisionTree``
 
520
  into a new ``InventoryRevisionTree`` class. RevisionTree instances no
 
521
  longer necessarily provide an ``inventory`` attribute. (Jelmer Vernooij)
 
522
 
 
523
* New method ``Hooks.uninstall_named_hook``. (Jelmer Vernooij, #301472)
 
524
 
 
525
* ``revision_graph_can_have_wrong_parents`` is now an attribute
 
526
  on ``RepositoryFormat`` rather than a method on ``Repository``.
 
527
  (Jelmer Vernooij)
 
528
 
 
529
* ``Testament`` now takes a ``tree`` rather than an
 
530
  ``inventory``. (Jelmer Vernooij, #762608)
 
531
 
 
532
* ``TestCase.failUnlessExists`` and ``failIfExists`` are deprecated in
 
533
  favour of ``assertPathExists`` and ``assertPathDoesNotExist`` 
 
534
  respectively.
 
535
  (Martin Pool)
 
536
 
 
537
* The ``revno`` parameter of ``log.LogRevision`` may now be None,
 
538
  representing a revision which is not in the current branch.
 
539
  (Matt Giuca, #241998)
 
540
 
 
541
* The various knit pack repository format classes have been moved
 
542
  from ``bzrlib.repofmt.pack_repo`` to
 
543
  ``bzrlib.repofmt.knitpack_repo``. (Jelmer Vernooij)
 
544
 
 
545
* ``RevisionTree`` now has a new method ``get_file_revision``.
 
546
  (Jelmer Vernooij)
 
547
 
 
548
* ``WorkingTree`` no longer provides an ``inventory``. Instead,
 
549
  all inventory-related functionality is now on the subclass
 
550
  ``InventoryWorkingTree`` that all native Bazaar working tree
 
551
  implementations derive from. (Jelmer Vernooij)
 
552
 
 
553
Internals
 
554
*********
 
555
 
 
556
.. Major internal changes, unlikely to be visible to users or plugin 
 
557
   developers, but interesting for bzr developers.
 
558
 
 
559
* Added ``osutils.lstat`` and ``osutils.fstat``. These are just the ``os``
 
560
  functions on Linux, but they are wrapped on Windows so that fstat
 
561
  matches lstat results across all python versions.
 
562
  (John Arbash Meinel)
 
563
 
 
564
* ``WorkingTree._observed_sha1`` also updates the 'size' column. It
 
565
  happened to be updated as a side-effect of commit, but if we start using
 
566
  the function elsewhere we might as well do it directly.
 
567
  (John Arbash Meinel)
 
568
 
 
569
Testing
 
570
*******
 
571
 
 
572
.. Fixes and changes that are only relevant to bzr's test framework and 
 
573
   suite.  This can include new facilities for writing tests, fixes to 
 
574
   spurious test failures and changes to the way things should be tested.
 
575
 
 
576
* Stop using `failIf`, `failUnless`, `failIfEqual`, etc, that give
 
577
  `PendingDeprecationWarnings` on Python2.7. 
 
578
  (Martin Pool, #760435)
 
579
 
 
580
 
 
581
bzr 2.4b1
 
582
#########
 
583
 
 
584
:2.4b1: 2011-03-17
 
585
 
 
586
This is the first beta of the 2.4 series, leading up to a 2.4.0
 
587
release in August 2011.  Beta releases are suitable for everyday use
 
588
but may cause some incompatibilities with plugins.  Some plugins may need
 
589
small updates to work with 2.4b1.
 
590
 
 
591
External Compatibility Breaks
 
592
*****************************
 
593
 
 
594
(none)
 
595
 
 
596
New Features
 
597
************
 
598
 
 
599
* Added ``changelog_merge`` plugin for merging changes to ``Changelog`` files
 
600
  in GNU format.  See ``bzr help changelog_merge`` for details.
 
601
  (Andrew Bennetts)
 
602
  
 
603
* Configuration options can now use references to other options in the same
 
604
  file by enclosing them with curly brackets (``{other_opt}``). This makes it
 
605
  possible to use, for example,
 
606
  ``push_location=lp:~vila/bzr/config-{nickname}`` in ``branch.conf`` when
 
607
  using a loom. During the beta period, the default behaviour is to disable
 
608
  this feature. It can be activated by declaring ``bzr.config.expand = True``
 
609
  in ``bazaar.conf``. (Vincent Ladeuil)
 
610
 
 
611
* External merge tools can now be configured in bazaar.conf. See
 
612
  ``bzr help configuration`` for more information.  (Gordon Tyler, #489915)
 
613
 
 
614
* The ``lp:`` directory service now supports Launchpad's QA staging.
 
615
  (Jelmer Vernooij, #667483)
 
616
 
 
617
Improvements
 
618
************
 
619
 
 
620
* A new hidden command ``bzr repair-workingtree``. This is a way to force
 
621
  the dirstate file to be rebuilt, rather than using a ``bzr checkout``
 
622
  workaround. (John Arbash Meinel)
 
623
 
 
624
* Added a ``Branch.heads_to_fetch`` RPC to the smart server protocol.
 
625
  This allows formats from plugins (such as looms) to efficiently tell the
 
626
  client which revisions need to be fetched.  (Andrew Bennetts)
 
627
 
 
628
* Branching, merging and pulling a branch now copies revisions named in
 
629
  tags, not just the tag metadata.  (Andrew Bennetts, #309682)
 
630
 
 
631
* ``bzr cat-revision`` no longer requires a working tree.
 
632
  (Jelmer Vernooij, #704405)
 
633
 
 
634
* ``bzr export --per-file-timestamps`` for .tar.gz files will now
 
635
  override the mtime for trees exported on Python 2.7 and later, which
 
636
  expose the 'mtime' field in gzip files. This makes the output of
 
637
  ``bzr export --per-file-timestamps`` for a particular tree
 
638
  deterministic.  (Jelmer Vernooij, #711226)
 
639
 
 
640
* ``bzr export --format=zip`` can now export to standard output,
 
641
  like the other exporters can. (Jelmer Vernooij, #513752)
 
642
 
 
643
* ``bzr export`` can now create ``.tar.xz`` and ``.tar.lzma`` files.
 
644
  (Jelmer Vernooij, #551714)
 
645
 
 
646
* Getting all entries from ``CHKInventory.iter_entries_by_dir()`` has been
 
647
  sped up dramatically for large trees. Iterating by dir is not the best
 
648
  way to load data from a CHK inventory, so it preloads all the items in
 
649
  the correct order. (With the gcc-tree, this changes it (re)reading 8GB
 
650
  of CHK data, down to just 150MB.) This has noticeable affects for things
 
651
  like building checkouts, etc.  (John Arbash Meinel, #737234)
 
652
 
 
653
Bug Fixes
 
654
*********
 
655
 
 
656
* A MemoryError thrown on the server during a remote operation will now be
 
657
  usefully reported, and other unexpected errors will include the class name.
 
658
  (Martin [gz], #722416)
 
659
 
 
660
* ``bzr annotate -r-1 file`` will now properly annotate a deleted file.
 
661
  (Andrew King, #537442)
 
662
 
 
663
* ``bzr export`` to zip files will now set a mode on directories.
 
664
  (Jelmer Vernooij, #207253)
 
665
 
 
666
* ``bzr export`` to tgz files will only write out the basename of the
 
667
  tarfile to the gzip file. (Jelmer Vernooij, #102234)
 
668
 
 
669
* ``bzr push --overwrite`` with an older revision specified will now correctly
 
670
  roll back the target branch. (Jelmer Vernooij, #386576)
 
671
 
 
672
* ``bzr lp-propose`` can now propose merges against packaging branches on
 
673
  Launchpad without requiring the target branch to be specified.
 
674
  (Jelmer Vernooij, #704647)
 
675
 
 
676
* ``bzr lp-propose`` no longer requires a reviewer to be specified. It will
 
677
  instead leave setting the reviewer up to Launchpad if it was not specified.
 
678
  (Jelmer Vernooij, #583772)
 
679
 
 
680
* ``bzr pull`` will now exit with exit code 1 if there were tag conflicts.
 
681
  (Jelmer Vernooij, #213185)
 
682
 
 
683
* ``bzr mv`` user errors no longer throw UnicodeEncodeError with non-ascii
 
684
  paths, however they may still print junk if not on a UTF-8 terminal.
 
685
  (Martin [gz], #707954)
 
686
 
 
687
* ``bzr reconfigure --unstacked`` now copies revisions (and their
 
688
  ancestors) named in tags into the unstacked repository, not just the
 
689
  ancestry of the branch's tip.  (Andrew Bennetts, #401646)
 
690
 
 
691
* ``bzr serve`` no longer crashes when a server_started hook is installed and
 
692
  IPv6 support is available on the system. (Jelmer Vernooij, #293697)
 
693
 
 
694
* ``bzr status`` will not rewrite the dirstate file if it only has
 
695
  'trivial' changes. (Currently limited to dir updates and newly-added
 
696
  files changing state.) This saves a bit of time for regular operations.
 
697
  eg. ``bzr status`` in a 100k tree takes 1.4s to compute the status, but 1s
 
698
  to re-save the dirstate file. (John Arbash Meinel, #765881)
 
699
 
 
700
* ``bzr tags`` will no longer choke on branches with ghost revisions in
 
701
  their mainline and tags on revisions not in the branch ancestry. 
 
702
  (Jelmer Vernooij, #397556)
 
703
 
 
704
* ``bzr whoami`` will now display an error if both a new identity and
 
705
  ``--email`` were specified. (Jelmer Vernooij, #680449)
 
706
 
 
707
* ``launchpadlib`` doesn't provide the ``uris`` module in some old versions.
 
708
  (Vincent Ladeuil, #706835)
 
709
 
 
710
* Empty entries in the ``NO_PROXY`` variable are no longer treated as matching
 
711
  every host.
 
712
  (Martin Pool, #586341)
 
713
 
 
714
* Plugins incompatible with the current version of bzr no longer produce a
 
715
  warning on every command invocation.  Instead, a message is shown by
 
716
  ``bzr plugins`` and in crash reports.
 
717
  (#704195, Martin Pool)
 
718
 
 
719
* The "pretty" version of ``needs_read_lock`` and ``needs_write_lock`` now
 
720
  preserves the identity of default parameter values.
 
721
  (Andrew Bennetts, #718569)
 
722
 
 
723
* ``bzr dump-btree --raw`` no longer tracebacks on a B-Tree file
 
724
  containing no rows. (Eric Siegerman, #715508)
 
725
 
 
726
* Fix ``bzr lp-mirror`` to work on command line branch URLs and branches
 
727
  without an explicit public location. (Max Bowsher)
 
728
 
 
729
* On Python 2.6 and higher, use multiprocessing.cpu_count() to retrieve the
 
730
  number of available processors. (Jelmer Vernooij, #693140)
 
731
 
 
732
API Changes
 
733
***********
 
734
 
 
735
* Added ``Branch.heads_to_fetch`` method.  Implementations of the Branch API
 
736
  must now inherit or implement this method.  (Andrew Bennetts, #721328)
 
737
  
 
738
* Added ``bzrlib.mergetools`` module with helper functions for working with
 
739
  the list of external merge tools. (Gordon Tyler, #489915)
 
740
 
 
741
* All methods and arguments that were deprecated before 2.0
 
742
  have been removed. (Jelmer Vernooij)
 
743
 
 
744
* Branch formats should now be registered on the format registry
 
745
  (``bzrlib.branch.format_registry``) rather than using the class
 
746
  methods on ``BranchFormat``. (Jelmer Vernooij, #714729)
 
747
 
 
748
* ``Branch.set_revision_history`` is now deprecated.
 
749
  (Jelmer Vernooij)
 
750
 
 
751
* ``BranchFormat.supports_leaving_lock()`` and
 
752
  ``RepositoryFormat.supports_leaving_lock`` flags have been added.
 
753
  (Jelmer Vernooij)
 
754
 
 
755
* ``Branch.fetch`` implementations must now accept an optional
 
756
  ``fetch_tags`` keyword argument. (Andrew Bennetts)
 
757
 
 
758
* ``Branch.import_last_revision_info`` is deprecated.  Use the
 
759
  ``import_last_revision_info_and_tags`` method instead.
 
760
  (Andrew Bennetts)
 
761
 
 
762
* Because it was too specific to BzrDir implementations,
 
763
  ``ControlDir.sprout`` no longer has a default implementation; it now
 
764
  raises ``NotImplementedError``. (Jelmer Vernooij, #717937)
 
765
 
 
766
* ``bzrlib.deprecated_graph`` has been removed. ``bzrlib.graph``
 
767
  scales better tree and should be used instead.
 
768
  (Jelmer Vernooij, #733612)
 
769
 
 
770
* ``ControlDirFormat.register_format`` has been removed. Instead,
 
771
  ``Prober`` implementations should now implement a ``known_formats``
 
772
  method. (Jelmer Vernooij)
 
773
 
 
774
* ControlDirFormats can now provide a ``check_status`` method and
 
775
  raise a custom exception or warning when an unsupported or deprecated
 
776
  format is being opened.  (Jelmer Vernooij, #731311)
 
777
 
 
778
* ``bzrlib.revionspec.dwim_revspecs`` is deprecated.
 
779
  Use ``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_revspec`` and
 
780
  ``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_lazy_revspec``
 
781
  instead.  (Jelmer Vernooij, #721971)
 
782
 
 
783
* ``BzrDirFormat`` has a new attribute ``fixed_components`` that
 
784
  indicates whether the components of the bzrdir can be upgraded
 
785
  independent of the ``BzrDir``. (Jelmer Vernooij)
 
786
 
 
787
* ``BzrProber.register_format`` and ``BzrProber.unregister_format`` are
 
788
  now deprecated in favour of the ``BzrProber.formats`` format registry.
 
789
  (Jelmer Vernooij)
 
790
 
 
791
* ``ControlDir`` implementations no longer have to provide the
 
792
  ``get_branch_transport``, ``get_workingtree_transport`` and
 
793
  ``get_repository_transport`` methods.  (Jelmer Vernooij, #730325)
 
794
 
 
795
* ``Converter`` has been moved from ``bzrlib.bzrdir`` to
 
796
  ``bzrlib.controldir``. (Jelmer Vernooij)
 
797
 
 
798
* Repository formats can now provide
 
799
  ``_get_extra_interrepo_test_combinations`` in the same module 
 
800
  to provide extra test combinations for ``bzrlib.tests.per_repository``.
 
801
  (Jelmer Vernooij)
 
802
 
 
803
* Repository formats should now be registered on the format registry
 
804
  (``bzrlib.repository.format_registry``) rather than using the class
 
805
  methods on ``RepositoryFormat``. (Jelmer Vernooij)
 
806
 
 
807
* Repository formats can now indicate they do not support the full
 
808
  VersionedFiles API by setting the ``supports_full_versioned_files``
 
809
  attribute to False. A subset of the VersionedFiles API
 
810
  (signatures and text graphs) still needs to be supported.
 
811
  (Jelmer Vernooij)
 
812
 
 
813
* Repository formats have a new method ``is_deprecated`` that
 
814
  implementations can override to return True to trigger a deprecation
 
815
  warning. (Jelmer Vernooij)
 
816
 
 
817
* The ``revision_id`` parameter of
 
818
  ``Repository.search_missing_revision_ids`` and
 
819
  ``InterRepository.search_missing_revision_ids`` is deprecated.  It is
 
820
  replaced by the ``revision_ids`` parameter.  (Andrew Bennetts)
 
821
 
 
822
* Working tree formats should now be registered on the format registry
 
823
  (``bzrlib.working_tree.format_registry``) rather than using the class
 
824
  methods on ``WorkingTreeFormat``. (Jelmer Vernooij, #714730)
 
825
 
 
826
* Exporting may now be done with a generator
 
827
  (``bzrlib.export.get_export_generator``) (Geoff/xaav, #791005)
 
828
 
 
829
Internals
 
830
*********
 
831
 
 
832
* ``CatchingExceptionThread`` (formerly ThreadWithException) has been moved
 
833
  out of the ``bzrlib.tests`` hierarchy to make it clearer that it can be used
 
834
  outside of tests. This class makes it easier to track exceptions in threads
 
835
  by catching them so they can be re-raised in the controlling thread. It's
 
836
  available in the ``bzrlib.cethread`` module.  (Vincent Ladeuil)
 
837
 
 
838
* Correctly propogate malloc failures from diff-delta.c code as MemoryError
 
839
  so OOM conditions during groupcompress are clearly reported. This entailed a
 
840
  change to several function signatures. (Martin [gz], #633336)
 
841
 
 
842
* ``HookPoint.lazy_hook`` and ``Hooks.install_named_lazy_hook`` can install 
 
843
  hooks for which the callable is loaded lazily.  (Jelmer Vernooij)
 
844
 
 
845
Testing
 
846
*******
 
847
 
 
848
* The Range parsing for HTTP requests will correctly parse incomplete ranges.
 
849
  (Vincent Ladeuil, #731240)
 
850
 
 
851
..
 
852
   vim: tw=74 ft=rst ff=unix