/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: Canonical.com Patch Queue Manager
  • Date: 2011-04-19 04:37:48 UTC
  • mfrom: (5741.3.8 506265-command-deprecation)
  • Revision ID: pqm@pqm.ubuntu.com-20110419043748-qq4lsmc50cckqzp7
(mbp) Deprecate 'bzr clone' and 'bzr get' (bug 506265) (Martin Pool)

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.4b2
 
9
#########
 
10
 
 
11
:2.4b2: NOT RELEASED YET
 
12
 
 
13
External Compatibility Breaks
 
14
*****************************
 
15
 
 
16
.. These may require users to change the way they use Bazaar.
 
17
 
 
18
* Two command synonyms for ``bzr branch`` have been deprecated, to avoid
 
19
  confusion and to allow the names to later be reused.  The removed names
 
20
  are: ``get`` and ``clone``.   (Martin Pool, #506265)
 
21
 
 
22
New Features
 
23
************
 
24
 
 
25
.. New commands, options, etc that users may wish to try out.
 
26
 
 
27
* ``bzr commit`` now supports a ``--lossy`` argument that can be used
 
28
  to discard any data that can not be natively represented when committing
 
29
  to a foreign VCS. (Jelmer Vernooij, #587721)
 
30
 
 
31
Improvements
 
32
************
 
33
 
 
34
.. Improvements to existing commands, especially improved performance 
 
35
   or memory usage, or better results.
 
36
 
 
37
* ``bzr merge`` in large trees is now significantly faster. On a 70k entry
 
38
  tree, the time went from ~3min down to 30s.
 
39
  (John Arbash Meinel, #759091)
 
40
 
 
41
* Resolve ``lp:FOO`` urls locally rather than doing an XMLRPC request if
 
42
  the user has done ``bzr launchpad-login``. The bzr+ssh URLs were already
 
43
  being handed off to the remote server anyway (xmlrpc has been mapping
 
44
  ``lp:bzr`` to ``bzr+ssh://bazaar.launchpad.net/+branch/bzr``, rather
 
45
  than ``bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev`` for a few
 
46
  months now.) By doing it ourselves, we can cut out substantial startup
 
47
  time. From Netherlands to London it was taking 368ms to do the XMLRPC
 
48
  call as much as 2s from Sydney. You can test the local logic by using
 
49
  ``-Dlaunchpad``.  (John Arbash Meinel, #397739)
 
50
 
 
51
* When building a new WorkingTree (such as during ``bzr co`` or
 
52
  ``bzr branch``) we now properly store the stat and hash of files that
 
53
  are old enough. This saves a fair amount of time on the first
 
54
  ``bzr status`` (on a 500MB tree, it saves about 30+s).
 
55
  (John Arbash Meinel, #740932)
 
56
 
 
57
 
 
58
Bug Fixes
 
59
*********
 
60
 
 
61
.. Fixes for situations where bzr would previously crash or give incorrect
 
62
   or undesirable results.
 
63
 
 
64
* Arguments that can't be decoded to unicode in the current posix locale give
 
65
  a clearer error message without a traceback. (Martin [gz], #745712)
 
66
 
 
67
* ``bzrlib.log._DEFAULT_REQUEST_PARAMS`` is no longer accidentally
 
68
  mutated by ``bzrlib.log._apply_log_request_defaults``.  In practice
 
69
  these default values aren't relied on very often so this probably
 
70
  wasn't causing any trouble.  (Andrew Bennetts)
 
71
 
 
72
* ``bzr log`` now works on revisions which are not in the current branch.
 
73
  (Matt Giuca, #241998)
 
74
 
 
75
* Lazy hooks are now reset between test runs. (Jelmer Vernooij, #745566)
 
76
 
 
77
* ``bzrlib.merge.Merge`` now calls ``iter_changes`` without
 
78
  ``include_unversioned=True``. This makes it significantly faster in many
 
79
  cases, because it only looks at modified files, rather than building
 
80
  information about all files. This can cause failures in other
 
81
  TreeTransform code, because it had been expecting to know the names of
 
82
  things which had not changed (such as parent directories). All cases we
 
83
  know about so far have been fixed, but there may be fallout for edge
 
84
  cases that we are missing. (John Arbash Meinel, #759091)
 
85
 
 
86
* Standalone bzr.exe installation on Windows: user can put additional python 
 
87
  libraries into ``site-packages`` subdirectory of the installation directory,
 
88
  this might be required for "installing" extra dependencies for some plugins.
 
89
  (Alexander Belchenko, #743256)
 
90
 
 
91
* ``TreeTransform.create_file/new_file`` can now take an optional ``sha1``
 
92
  parameter. If supplied, when the transform is applied, it will then call
 
93
  ``self._tree._observed_sha1`` for those files. This lets us update the
 
94
  hash-cache for content that we create, preventing us from re-reading the
 
95
  content in the next ``bzr status``.  (John Arbash Meinel, #740932)
 
96
 
 
97
Documentation
 
98
*************
 
99
 
 
100
* Added a section about using a shared SSH account on a server for bzr+ssh
 
101
  access.  (Russell Smith)
 
102
 
 
103
* The documentation now recommends using SSH rather than SFTP in the
 
104
  tutorials and the examples, because that will generally be much faster
 
105
  and better in cases where it can be used.  SFTP is still available and
 
106
  mentioned as an alternative.  (Martin Pool, #636712)
 
107
 
 
108
API Changes
 
109
***********
 
110
 
 
111
.. Changes that may require updates in plugins or other code that uses
 
112
   bzrlib.
 
113
 
 
114
* Commands now have an `invoked_as` attribute, showing the name under
 
115
  which they were called before alias expansion.
 
116
  (Martin Pool)
 
117
 
 
118
* ``Hooks.create_hook`` is now deprecated in favour of ``Hooks.add_hook``.
 
119
  (Jelmer Vernooij)
 
120
 
 
121
* If you call `bzrlib.initialize` but forget to enter the resulting object
 
122
  as a context manager, bzrlib will now be initialized anyhow.
 
123
  (Previously simple programs calling bzrlib might find the library was
 
124
  mysteriously silent.)
 
125
  (Martin Pool)
 
126
 
 
127
* Inventory-specific functionality has been split out of ``Tree`` into
 
128
  a new ``InventoryTree`` class. Tree instances no longer
 
129
  necessarily provide an ``inventory`` attribute. (Jelmer Vernooij)
 
130
 
 
131
* Inventory-specific functionality has been split out of ``RevisionTree``
 
132
  into a new ``InventoryRevisionTree`` class. RevisionTree instances no
 
133
  longer necessarily provide an ``inventory`` attribute. (Jelmer Vernooij)
 
134
 
 
135
* New method ``Hooks.uninstall_named_hook``. (Jelmer Vernooij, #301472)
 
136
 
 
137
* ``revision_graph_can_have_wrong_parents`` is now an attribute
 
138
  on ``RepositoryFormat`` rather than a method on ``Repository``.
 
139
  (Jelmer Vernooij)
 
140
 
 
141
* ``TestCase.failUnlessExists`` and ``failIfExists`` are deprecated in
 
142
  favour of ``assertPathExists`` and ``assertPathDoesNotExist`` 
 
143
  respectively.
 
144
  (Martin Pool)
 
145
 
 
146
* The ``revno`` parameter of ``log.LogRevision`` may now be None,
 
147
  representing a revision which is not in the current branch.
 
148
  (Matt Giuca, #241998)
 
149
 
 
150
* The various knit pack repository format classes have been moved
 
151
  from ``bzrlib.repofmt.pack_repo`` to
 
152
  ``bzrlib.repofmt.knitpack_repo``. (Jelmer Vernooij)
 
153
 
 
154
* ``WorkingTree`` no longer provides an ``inventory``. Instead,
 
155
  all inventory-related functionality is now on the subclass
 
156
  ``InventoryWorkingTree`` that all native Bazaar working tree
 
157
  implementations derive from. (Jelmer Vernooij)
 
158
 
 
159
Internals
 
160
*********
 
161
 
 
162
.. Major internal changes, unlikely to be visible to users or plugin 
 
163
   developers, but interesting for bzr developers.
 
164
 
 
165
* Added ``osutils.lstat`` and ``osutils.fstat``. These are just the ``os``
 
166
  functions on Linux, but they are wrapped on Windows so that fstat
 
167
  matches lstat results across all python versions.
 
168
  (John Arbash Meinel)
 
169
 
 
170
* ``WorkingTree._observed_sha1`` also updates the 'size' column. It
 
171
  happened to be updated as a side-effect of commit, but if we start using
 
172
  the function elsewhere we might as well do it directly.
 
173
  (John Arbash Meinel)
 
174
 
 
175
Testing
 
176
*******
 
177
 
 
178
.. Fixes and changes that are only relevant to bzr's test framework and 
 
179
   suite.  This can include new facilities for writing tests, fixes to 
 
180
   spurious test failures and changes to the way things should be tested.
 
181
 
 
182
* Stop using `failIf`, `failUnless`, `failIfEqual`, etc, that give
 
183
  `PendingDeprecationWarnings` on Python2.7. 
 
184
  (Martin Pool, #760435)
 
185
 
 
186
 
 
187
bzr 2.4b1
 
188
#########
 
189
 
 
190
:2.4b1: 2011-04-17
 
191
 
 
192
This is the first beta of the 2.4 series, leading up to a 2.4.0
 
193
release in August 2011.  Beta releases are suitable for everyday use
 
194
but may cause some incompatibilities with plugins.  Some plugins may need
 
195
small updates to work with 2.4b1.
 
196
 
 
197
External Compatibility Breaks
 
198
*****************************
 
199
 
 
200
(none)
 
201
 
 
202
New Features
 
203
************
 
204
 
 
205
* Added ``changelog_merge`` plugin for merging changes to ``Changelog`` files
 
206
  in GNU format.  See ``bzr help changelog_merge`` for details.
 
207
  (Andrew Bennetts)
 
208
  
 
209
* Configuration options can now use references to other options in the same
 
210
  file by enclosing them with curly brackets (``{other_opt}``). This makes it
 
211
  possible to use, for example,
 
212
  ``push_location=lp:~vila/bzr/config-{nickname}`` in ``branch.conf`` when
 
213
  using a loom. During the beta period, the default behaviour is to disable
 
214
  this feature. It can be activated by declaring ``bzr.config.expand = True``
 
215
  in ``bazaar.conf``. (Vincent Ladeuil)
 
216
 
 
217
* External merge tools can now be configured in bazaar.conf. See
 
218
  ``bzr help configuration`` for more information.  (Gordon Tyler, #489915)
 
219
 
 
220
* The ``lp:`` directory service now supports Launchpad's QA staging.
 
221
  (Jelmer Vernooij, #667483)
 
222
 
 
223
Improvements
 
224
************
 
225
 
 
226
* A new hidden command ``bzr repair-workingtree``. This is a way to force
 
227
  the dirstate file to be rebuilt, rather than using a ``bzr checkout``
 
228
  workaround. (John Arbash Meinel)
 
229
 
 
230
* Added a ``Branch.heads_to_fetch`` RPC to the smart server protocol.
 
231
  This allows formats from plugins (such as looms) to efficiently tell the
 
232
  client which revisions need to be fetched.  (Andrew Bennetts)
 
233
 
 
234
* Branching, merging and pulling a branch now copies revisions named in
 
235
  tags, not just the tag metadata.  (Andrew Bennetts, #309682)
 
236
 
 
237
* ``bzr cat-revision`` no longer requires a working tree.
 
238
  (Jelmer Vernooij, #704405)
 
239
 
 
240
* ``bzr export --per-file-timestamps`` for .tar.gz files will now
 
241
  override the mtime for trees exported on Python 2.7 and later, which
 
242
  expose the 'mtime' field in gzip files. This makes the output of
 
243
  ``bzr export --per-file-timestamps`` for a particular tree
 
244
  deterministic.  (Jelmer Vernooij, #711226)
 
245
 
 
246
* ``bzr export --format=zip`` can now export to standard output,
 
247
  like the other exporters can. (Jelmer Vernooij, #513752)
 
248
 
 
249
* ``bzr export`` can now create ``.tar.xz`` and ``.tar.lzma`` files.
 
250
  (Jelmer Vernooij, #551714)
 
251
 
 
252
* Getting all entries from ``CHKInventory.iter_entries_by_dir()`` has been
 
253
  sped up dramatically for large trees. Iterating by dir is not the best
 
254
  way to load data from a CHK inventory, so it preloads all the items in
 
255
  the correct order. (With the gcc-tree, this changes it (re)reading 8GB
 
256
  of CHK data, down to just 150MB.) This has noticeable affects for things
 
257
  like building checkouts, etc.  (John Arbash Meinel, #737234)
 
258
 
 
259
 
 
260
Bug Fixes
 
261
*********
 
262
 
 
263
* A MemoryError thrown on the server during a remote operation will now be
 
264
  usefully reported, and other unexpected errors will include the class name.
 
265
  (Martin [gz], #722416)
 
266
 
 
267
* ``bzr annotate -r-1 file`` will now properly annotate a deleted file.
 
268
  (Andrew King, #537442)
 
269
 
 
270
* ``bzr export`` to zip files will now set a mode on directories.
 
271
  (Jelmer Vernooij, #207253)
 
272
 
 
273
* ``bzr export`` to tgz files will only write out the basename of the
 
274
  tarfile to the gzip file. (Jelmer Vernooij, #102234)
 
275
 
 
276
* ``bzr push --overwrite`` with an older revision specified will now correctly
 
277
  roll back the target branch. (Jelmer Vernooij, #386576)
 
278
 
 
279
* ``bzr lp-propose`` can now propose merges against packaging branches on
 
280
  Launchpad without requiring the target branch to be specified.
 
281
  (Jelmer Vernooij, #704647)
 
282
 
 
283
* ``bzr lp-propose`` no longer requires a reviewer to be specified. It will
 
284
  instead leave setting the reviewer up to Launchpad if it was not specified.
 
285
  (Jelmer Vernooij, #583772)
 
286
 
 
287
* ``bzr pull`` will now exit with exit code 1 if there were tag conflicts.
 
288
  (Jelmer Vernooij, #213185)
 
289
 
 
290
* ``bzr mv`` user errors no longer throw UnicodeEncodeError with non-ascii
 
291
  paths, however they may still print junk if not on a UTF-8 terminal.
 
292
  (Martin [gz], #707954)
 
293
 
 
294
* ``bzr reconfigure --unstacked`` now copies revisions (and their
 
295
  ancestors) named in tags into the unstacked repository, not just the
 
296
  ancestry of the branch's tip.  (Andrew Bennetts, #401646)
 
297
 
 
298
* ``bzr serve`` no longer crashes when a server_started hook is installed and
 
299
  IPv6 support is available on the system. (Jelmer Vernooij, #293697)
 
300
 
 
301
* ``bzr tags`` will no longer choke on branches with ghost revisions in
 
302
  their mainline and tags on revisions not in the branch ancestry. 
 
303
  (Jelmer Vernooij, #397556)
 
304
 
 
305
* ``bzr whoami`` will now display an error if both a new identity and
 
306
  ``--email`` were specified. (Jelmer Vernooij, #680449)
 
307
 
 
308
* ``launchpadlib`` doesn't provide the ``uris`` module in some old versions.
 
309
  (Vincent Ladeuil, #706835)
 
310
 
 
311
* Empty entries in the ``NO_PROXY`` variable are no longer treated as matching
 
312
  every host.
 
313
  (Martin Pool, #586341)
 
314
 
 
315
* Plugins incompatible with the current version of bzr no longer produce a
 
316
  warning on every command invocation.  Instead, a message is shown by
 
317
  ``bzr plugins`` and in crash reports.
 
318
  (#704195, Martin Pool)
 
319
 
 
320
* The "pretty" version of ``needs_read_lock`` and ``needs_write_lock`` now
 
321
  preserves the identity of default parameter values.
 
322
  (Andrew Bennetts, #718569)
 
323
 
 
324
* ``bzr dump-btree --raw`` no longer tracebacks on a B-Tree file
 
325
  containing no rows. (Eric Siegerman, #715508)
 
326
 
 
327
* Fix ``bzr lp-mirror`` to work on command line branch URLs and branches
 
328
  without an explicit public location. (Max Bowsher)
 
329
 
 
330
* On Python 2.6 and higher, use multiprocessing.cpu_count() to retrieve the
 
331
  number of available processors. (Jelmer Vernooij, #693140)
 
332
 
 
333
API Changes
 
334
***********
 
335
 
 
336
* Added ``Branch.heads_to_fetch`` method.  Implementations of the Branch API
 
337
  must now inherit or implement this method.  (Andrew Bennetts, #721328)
 
338
  
 
339
* Added ``bzrlib.mergetools`` module with helper functions for working with
 
340
  the list of external merge tools. (Gordon Tyler, #489915)
 
341
 
 
342
* All methods and arguments that were deprecated before 2.0
 
343
  have been removed. (Jelmer Vernooij)
 
344
 
 
345
* Branch formats should now be registered on the format registry
 
346
  (``bzrlib.branch.format_registry``) rather than using the class
 
347
  methods on ``BranchFormat``. (Jelmer Vernooij, #714729)
 
348
 
 
349
* ``BranchFormat.supports_leaving_lock()`` and
 
350
  ``RepositoryFormat.supports_leaving_lock`` flags have been added.
 
351
  (Jelmer Vernooij)
 
352
 
 
353
* ``Branch.fetch`` implementations must now accept an optional
 
354
  ``fetch_spec`` keyword argument. (Andrew Bennetts)
 
355
 
 
356
* ``Branch.import_last_revision_info`` is deprecated.  Use the
 
357
  ``import_last_revision_info_and_tags`` method instead.
 
358
  (Andrew Bennetts)
 
359
 
 
360
* Because it was too specific to BzrDir implementations,
 
361
  ``ControlDir.sprout`` no longer has a default implementation; it now
 
362
  raises ``NotImplementedError``. (Jelmer Vernooij, #717937)
 
363
 
 
364
* ``ControlDirFormat.register_format`` has been removed. Instead,
 
365
  ``Prober`` implementations should now implement a ``known_formats``
 
366
  method. (Jelmer Vernooij)
 
367
 
 
368
* ControlDirFormats can now provide a ``check_status`` method and
 
369
  raise a custom exception or warning when an unsupported or deprecated
 
370
  format is being opened.  (Jelmer Vernooij, #731311)
 
371
 
 
372
* ``bzrlib.revionspec.dwim_revspecs`` is deprecated.
 
373
  Use ``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_revspec`` and
 
374
  ``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_lazy_revspec``
 
375
  instead.  (Jelmer Vernooij, #721971)
 
376
 
 
377
* ``BzrDirFormat`` has a new attribute ``fixed_components`` that
 
378
  indicates whether the components of the bzrdir can be upgraded
 
379
  independent of the ``BzrDir``. (Jelmer Vernooij)
 
380
 
 
381
* ``BzrProber.register_format`` and ``BzrProber.unregister_format`` are
 
382
  now deprecated in favour of the ``BzrProber.formats`` format registry.
 
383
  (Jelmer Vernooij)
 
384
 
 
385
* ``ControlDir`` implementations no longer have to provide the
 
386
  ``get_branch_transport``, ``get_workingtree_transport`` and
 
387
  ``get_repository_transport`` methods.  (Jelmer Vernooij, #730325)
 
388
 
 
389
* ``Converter`` has been moved from ``bzrlib.bzrdir`` to
 
390
  ``bzrlib.controldir``. (Jelmer Vernooij)
 
391
 
 
392
* Repository formats can now provide
 
393
  ``_get_extra_interrepo_test_combinations`` in the same module 
 
394
  to provide extra test combinations for ``bzrlib.tests.per_repository``.
 
395
  (Jelmer Vernooij)
 
396
 
 
397
* Repository formats should now be registered on the format registry
 
398
  (``bzrlib.repository.format_registry``) rather than using the class
 
399
  methods on ``RepositoryFormat``. (Jelmer Vernooij)
 
400
 
 
401
* Repository formats can now indicate they do not support the full
 
402
  VersionedFiles API by setting the ``supports_full_versioned_files``
 
403
  attribute to False. A subset of the VersionedFiles API
 
404
  (signatures and text graphs) still needs to be supported.
 
405
  (Jelmer Vernooij)
 
406
 
 
407
* Repository formats have a new method ``is_deprecated`` that
 
408
  implementations can override to return True to trigger a deprecation
 
409
  warning. (Jelmer Vernooij)
 
410
 
 
411
* The ``revision_id`` parameter of
 
412
  ``Repository.search_missing_revision_ids`` and
 
413
  ``InterRepository.search_missing_revision_ids`` is deprecated.  It is
 
414
  replaced by the ``revision_ids`` parameter.  (Andrew Bennetts)
 
415
 
 
416
* Working tree formats should now be registered on the format registry
 
417
  (``bzrlib.working_tree.format_registry``) rather than using the class
 
418
  methods on ``WorkingTreeFormat``. (Jelmer Vernooij, #714730)
 
419
 
 
420
Internals
 
421
*********
 
422
 
 
423
* ``CatchingExceptionThread`` (formerly ThreadWithException) has been moved
 
424
  out of the ``bzrlib.tests`` hierarchy to make it clearer that it can be used
 
425
  outside of tests. This class makes it easier to track exceptions in threads
 
426
  by catching them so they can be re-raised in the controlling thread. It's
 
427
  available in the ``bzrlib.cethread`` module.  (Vincent Ladeuil)
 
428
 
 
429
* Correctly propogate malloc failures from diff-delta.c code as MemoryError
 
430
  so OOM conditions during groupcompress are clearly reported. This entailed a
 
431
  change to several function signatures. (Martin [gz], #633336)
 
432
 
 
433
* ``HookPoint.lazy_hook`` and ``Hooks.install_named_lazy_hook`` can install 
 
434
  hooks for which the callable is loaded lazily.  (Jelmer Vernooij)
 
435
 
 
436
Testing
 
437
*******
 
438
 
 
439
* The Range parsing for HTTP requests will correctly parse incomplete ranges.
 
440
  (Vincent Ladeuil, #731240)
 
441
 
 
442
..
 
443
   vim: tw=74 ft=rst ff=unix