/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.5.txt

Avoid using revision_history in the testsuite, in preparation of deprecating it.

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.5b2
 
9
#########
 
10
 
 
11
:2.5b2: NOT RELEASED YET
 
12
 
 
13
External Compatibility Breaks
 
14
*****************************
 
15
 
 
16
.. These may require users to change the way they use Bazaar.
 
17
 
 
18
New Features
 
19
************
 
20
 
 
21
.. New commands, options, etc that users may wish to try out.
 
22
 
 
23
Improvements
 
24
************
 
25
 
 
26
.. Improvements to existing commands, especially improved performance 
 
27
   or memory usage, or better results.
 
28
 
 
29
* Stop reloading all ancestry for each tag when searching tags in a revision
 
30
  range. (Vincent Ladeuil, #857335)
 
31
 
 
32
Bug Fixes
 
33
*********
 
34
 
 
35
.. Fixes for situations where bzr would previously crash or give incorrect
 
36
   or undesirable results.
 
37
 
 
38
* Redirects between http and https no longer discard path information
 
39
  in some cases. (Jelmer Vernooij, #853765)
 
40
 
 
41
* The ``--overwrite`` argument to ``bzr push`` and ``bzr pull`` no longer
 
42
  reports all tags as changed. (Jelmer Vernooij, #845396)
 
43
 
 
44
* ``WorkingTree.get_file_mtime`` now raises NoSuchId if a file id is
 
45
  specified that is unknown. (Jelmer Vernooij, #847435)
 
46
 
 
47
Documentation
 
48
*************
 
49
 
 
50
.. Improved or updated documentation.
 
51
 
 
52
API Changes
 
53
***********
 
54
 
 
55
.. Changes that may require updates in plugins or other code that uses
 
56
   bzrlib.
 
57
 
 
58
Internals
 
59
*********
 
60
 
 
61
.. Major internal changes, unlikely to be visible to users or plugin 
 
62
   developers, but interesting for bzr developers.
 
63
 
 
64
* ``Branch`` objects can now use a config stack with the newly introduced
 
65
  ``get_config_stack()``. Both ``get_config`` and ``get_config_stack`` can
 
66
  be used for the same branch but it's recommended to stick to one for a
 
67
  given option.
 
68
 
 
69
Testing
 
70
*******
 
71
 
 
72
.. Fixes and changes that are only relevant to bzr's test framework and 
 
73
   suite.  This can include new facilities for writing tests, fixes to 
 
74
   spurious test failures and changes to the way things should be tested.
 
75
 
 
76
* Really corrupt the pack file without depending on a special length or value.
 
77
  (Vincent Ladeuil, #807032)
 
78
 
 
79
 
 
80
bzr 2.5b1
 
81
#########
 
82
 
 
83
:2.5b1: 2011-09-15
 
84
 
 
85
This is the first beta of the 2.5 series, leading up to a 2.5.0
 
86
release in February 2012.  Beta releases are suitable for everyday use
 
87
but may cause some incompatibilities with plugins.  Some plugins may need
 
88
small updates to work with 2.5b1.
 
89
 
 
90
External Compatibility Breaks
 
91
*****************************
 
92
 
 
93
None
 
94
 
 
95
New Features
 
96
************
 
97
 
 
98
* A ``from_unicode`` parameter can be specified when registering a config
 
99
  option. This implements boolean, integer and list config options when the
 
100
  provided ``bool_from_store``, ``int_from_store`` and ``list_from_store``
 
101
  are used for this parameter.  (Vincent Ladeuil)
 
102
 
 
103
* Accessing a packaging branch on Launchpad (eg, ``lp:ubuntu/bzr``) now
 
104
  checks to see if the most recent published source package version for
 
105
  that project is present in the branch tags. This should help developers
 
106
  trust whether the packaging branch is up-to-date and can be used for new
 
107
  changes. The level of verbosity is controlled by the config item
 
108
  ``launchpad.packaging_verbosity``. It can be set to one of
 
109
 
 
110
  off
 
111
    disable all checks
 
112
 
 
113
 
 
114
  minimal
 
115
    only display if the branch is out-of-date
 
116
 
 
117
  short
 
118
    also display single-line up-to-date and missing,
 
119
 
 
120
 
 
121
  all
 
122
    (default) display multi-line content for all states
 
123
 
 
124
 
 
125
  (John Arbash Meinel, #609187, #812928)
 
126
 
 
127
* Add a config option gpg_signing_key for setting which GPG key should
 
128
  be used to sign commits. Also default to using the gpg user identity
 
129
  which matches user_email() as set by whoami.
 
130
  (Jonathan Riddell, #68501)
 
131
 
 
132
* An ``invalid`` parameter can be specified when registering a config option
 
133
  to decide what should be done when invalid values are
 
134
  encountered. 'warning' and 'error' will respectively emit a warning and
 
135
  ignore the value or errors out. (Vincent Ladeuil)
 
136
 
 
137
* bzr add now skips large files in recursive mode. The default "large"
 
138
  size is 20MB, and is configurable via the add.maximum_file_size
 
139
  option. A value of 0 disables skipping. Named items passed to add are
 
140
  never skipped. (Shannon Weyrick, #54624)
 
141
 
 
142
* ``bzr help configuration/<option>`` display the help for ``option`` for
 
143
  all registered configuration options. (Vincent Ladeuil, #747050)
 
144
 
 
145
* ``bzr log -m`` now matches message, author, committer and bugs instead
 
146
  of just matching the message.  ``--message`` keeps its original meaning,
 
147
  while ``--match-message, --match-author, --match-committer`` and
 
148
  ``--match-bugs`` match each of those fields. (Jacek Sieka)
 
149
 
 
150
* ``bzr log`` now has an option called ``--omit-merges`` to ommit
 
151
  those commits that merged branches, i.e. those having more than one
 
152
  parent.
 
153
  In order to avoid confusion, the previous command line option
 
154
  ``--include-merges`` has been renamed to ``--include-merged``.
 
155
  The old name of the command line option will still be accepted.
 
156
  The name change also affects ``bzr missing``.
 
157
  (Martin von Gagern)
 
158
 
 
159
* ``config.Option`` can now declare ``default_from_env``, a list of
 
160
  environment variables to get a default value from. (Vincent Ladeuil)
 
161
 
 
162
* ``config.NameMatcher`` can be used to implement config stores and stacks
 
163
  that need to provide specific option values for arbitrary unique IDs (svn
 
164
  repository UUIDs, etc).  (Vincent Ladeuil, #843638)
 
165
 
 
166
* New builtin ``bzr branches`` command, which lists all colocated branches
 
167
  in a directory. (Jelmer Vernooij, #826820)
 
168
 
 
169
* Relative local paths can now be specified in URL syntax by using the
 
170
  "file:" prefix.  (Jelmer Vernooij)
 
171
 
 
172
* Report commits signed with expired keys in ``verify-signatures``.
 
173
  (Jonathan Riddell, #804254)
 
174
 
 
175
* Translations are now enabled for command help, errors and globally
 
176
  for any message using gettext given on output.  (Jonathan Riddell,
 
177
  INADA Naoki, #83941)
 
178
 
 
179
Improvements
 
180
************
 
181
 
 
182
* ``bzr add`` will now warn about nested subtrees that are skipped.
 
183
  (Jelmer Vernooij, #187342)
 
184
 
 
185
* ``bzr commit -m ''`` can now be used to force an empty commit message.
 
186
  Entering an empty commit message in the message editor still triggers
 
187
  an error. (Jelmer Vernooij)
 
188
 
 
189
* ``bzr pull`` will now mention how many tags it has updated.
 
190
  (Jelmer Vernooij, #164450)
 
191
 
 
192
* ``bzr tag`` no longer errors if a tag already exists but refers to the
 
193
  same revision, and will mention when a tag has been updated
 
194
  rather than created. (Jelmer Vernooij, #381203)
 
195
 
 
196
* ``bzr uncommit`` will now remove tags that refer to removed revisions.
 
197
  The ``--keep-tags`` option can be used to prevent this behaviour.
 
198
  (Jelmer Vernooij, #605814)
 
199
 
 
200
* Do not run i18n initialisation twice. (Jonathan Riddell)
 
201
 
 
202
* Install translation .mo files. (Jonathan Riddell)
 
203
 
 
204
* Locations printed by ``bzr upgrade`` are now formatted before display.
 
205
  (Jelmer Vernooij)
 
206
 
 
207
* ``Repository.get_parent_map`` now estimates the size of the returned
 
208
  content more accurately. This means that we get closer to the desired
 
209
  64kB/request. For repositories converted from svn, this can be an
 
210
  improvement of approx 5:1 in round trips to discover the whole history.
 
211
  (John Arbash Meinel)
 
212
 
 
213
* Support a ``bugtracker`` option which is used by ``bzr commit --fixes``
 
214
  if no bug tracker was specified on the command line.
 
215
  (Jelmer Vernooij, #334860)
 
216
 
 
217
* Use gettext.NullTranslations in i18n to allow use of i18n even when
 
218
  translations are not turned on. (Jonathan Riddell)
 
219
 
 
220
Bug Fixes
 
221
*********
 
222
 
 
223
* ``bzr commit`` now correctly reports missing files as "removed", not
 
224
  "modified". (Jelmer Vernooij, #553955)
 
225
 
 
226
* ``bzr reconfigure`` will now allow multiple non-conflicting requests
 
227
  in a single invocation, e.g. ``--branch`` and ``--use-shared``.
 
228
  (Martin von Gagern, #842993)
 
229
 
 
230
* A call to CHKInventory's filter-method will not result in a
 
231
  DuplicateFileId error, if you move a subfolder and change a file in
 
232
  that subfolder.
 
233
  (Bastian Bowe, #809901)
 
234
 
 
235
* Branching from a stacked branch no longer does a ``get_parent_map``
 
236
  request for each revisions that is in the stacked-on repository while
 
237
  determining what revisions need to be fetched. This mostly impacts
 
238
  branching initialy into an empty shared repository when the source is
 
239
  not the development focus.  (John Arbash Meinel, #388269)
 
240
 
 
241
* Decode ``BZR_HOME`` with fs encoding on posix platforms to avoid unicode
 
242
  errors.  (Vincent Ladeuil, #822571)
 
243
 
 
244
* Fix fallout from URL handling changes in 2.5 that caused an IndexError to be
 
245
  raised whenever a transport at the drive root was opened on windows.
 
246
  (Martin [gz], #841322)
 
247
 
 
248
* Fixed loading of external merge tools from config to properly decode
 
249
  command-lines which contain embedded quotes. (Gordon Tyler, #828803)
 
250
 
 
251
* Rather than an error being raised, a warning is now printed when the
 
252
  current user does not have permission to read a configuration file.
 
253
  (Jelmer Vernooij, #837324)
 
254
 
 
255
* The pull command will now always use separate connections for the
 
256
  case where the destination is a heavyweight checkout of some remote
 
257
  branch on the same host as the source branch.
 
258
  (Martin von Gagern, #483661)
 
259
 
 
260
* TreeTransformBase.fixup_new_roots no longer forces trees to have a root, so
 
261
  operations that use it, like merge, can now create trees without a root.
 
262
  (Aaron Bentley)
 
263
 
 
264
Documentation
 
265
*************
 
266
 
 
267
* Release instructions refreshed. (Vincent Ladeuil)
 
268
 
 
269
API Changes
 
270
***********
 
271
 
 
272
* ``BranchFormat.initialize`` now takes a ``append_revisions_only``
 
273
  argument. (Jelmer Vernooij)
 
274
 
 
275
* ``Branch._get_checkout_format`` now takes a ``lightweight`` argument
 
276
  which indicates if the format should be for a lightweight or a
 
277
  heavyweight checkout. (Jelmer Vernooij)
 
278
 
 
279
* ``ControlDir.create_branch`` now takes a ``append_revisions_only`` argument.
 
280
  (Jelmer Vernooij)
 
281
 
 
282
* New class ``URL`` in ``bzrlib.utils`` for managing parsed URLs.
 
283
  (Jelmer Vernooij)
 
284
 
 
285
* New method ``Config.get_user_option_as_int_from_SI`` added for expanding a
 
286
  value in SI format (i.e. "20MB", "1GB") into its integer equivalent. 
 
287
  (Shannon Weyrick)
 
288
 
 
289
* New method ``InterTree.file_content_matches`` which checks that
 
290
  two files in different trees have the same contents.
 
291
  (Jelmer Vernooij)
 
292
 
 
293
* New method ``Tree.get_file_verifier`` which allows tree implementations
 
294
  to return non-sha1 checksums to verify files.
 
295
  (Jelmer Vernooij, #720831)
 
296
 
 
297
* New methods ``get_transport_from_path`` and ``get_transport_from_url``
 
298
  have been added that only support opening from a path or a URL,
 
299
  unlike ``get_transport``. (Jelmer Vernooij)
 
300
 
 
301
* New registry ``OptionRegistry`` specialized for configuration options.
 
302
  (Vincent Ladeuil)
 
303
 
 
304
* Remove ``AtomicFile.closed`` which has been deprecated in bzr 0.10.
 
305
  (Vincent Ladeuil)
 
306
 
 
307
* Remove ``commands._builtin_commands``, ``commands.shlex_split_unicode``,
 
308
  ``Command._maybe_expand_globs`` and ``Command.run_direct`` deprecated in
 
309
  2.10 and 2.2.0. (Vincent Ladeuil)
 
310
 
 
311
* Remove ``diff.get_trees_and_branches_to_diff`` deprecated in 2.2.0.
 
312
 
 
313
* Remove ``log.calculate_view_revisions``, ``log._filter_revision_range``,
 
314
  ``log.get_view_revisions`` which have been deprecated in bzr 2.1.0. Also
 
315
  remove ``log.show_one_log`` which was never properly deprecated but wasn't
 
316
  used and is easy to inline if needed. (Vincent Ladeuil)
 
317
 
 
318
* Remove ``trace.info``, ``trace.error`` and ``trace.show_log_error``
 
319
  deprecated in 2.1.0. (Vincent Ladeuil)
 
320
 
 
321
* Remove ``TransportListRegistry.set_default_transport``, as the concept of
 
322
  a default transport is currently unused. (Jelmer Vernooij)
 
323
 
 
324
* Remove ``UIFactory.warn_cross_format_fetch`` and
 
325
  ``UIFactory.warn_experimental_format_fetch`` in favor of
 
326
  ``UIFactory.show_user_warning``. (Jelmer Vernooij)
 
327
 
 
328
* ``Tags`` containers can now declare whether they support versioned
 
329
  tags and whether tags can refer to ghost tags.
 
330
  (Jelmer Vernooij)
 
331
 
 
332
* ``Tags.merge_to`` now returns a dictionary with the updated tags
 
333
  and a set of conflicts, rather than just conflicts. (Jelmer Vernooij)
 
334
 
 
335
* There is a new class `ContentFilterTree` that provides a facade for 
 
336
  content filtering.  The `filtered` parameter to `export` is deprecated 
 
337
  in favor of passing a filtered tree, and the specific exporter plugins
 
338
  no longer support it.
 
339
  (Martin Pool)
 
340
 
 
341
* ``Transport`` now has a ``_parsed_url`` attribute instead of
 
342
  separate ``_user``, ``_password``, ``_port``, ``_scheme``, ``_host``
 
343
  and ``_path`` attributes. Proxies are provided for the moment but
 
344
  may be removed in the future. (Jelmer Vernooij)
 
345
 
 
346
* The argument ``include_merges`` to ``missing.find_unmerged`` has
 
347
  been renamed to ``include_merged``. The old name is still supported
 
348
  for now but will cause a deprecation warning. (Martin von Gagern)
 
349
 
 
350
 
 
351
Internals
 
352
*********
 
353
 
 
354
* A new debug flag ``hpss_client_no_vfs`` will now cause the HPSS client
 
355
  to raise a ``HpssVfsRequestNotAllowed`` exception when a VFS request
 
356
  is attempted. (Jelmer Vernooij)
 
357
 
 
358
* New method ``ControlDir._get_selected_branch`` which returns the
 
359
  colocated branch selected using path segment parameters.
 
360
  (Jelmer Vernooij, #380871)
 
361
 
 
362
Testing
 
363
*******
 
364
 
 
365
* Blackbox tests (including test scripts) can be debugged interactively (see
 
366
  bzrlib.debug.BzrPdb for details). (Vincent Ladeuil)
 
367
 
 
368
* `BranchBuilder.build_snapshot` now supports a "flush" action.  This
 
369
  cleanly and reliably allows tests using `BranchBuilder` to construct
 
370
  branches that e.g. rename files out of a directory and unversion that
 
371
  directory in the same revision.  Previously some changes were impossible
 
372
  due to the order that `build_snapshot` performs its actions.
 
373
  (Andrew Bennetts)
 
374
 
 
375
* Don't require ``os.fdatasync`` to be defined on all supported OSes
 
376
  (BSD-based OSes don't define it).  (Vincent Ladeuil, #822649)
 
377
 
 
378
* Fix compatibility with testtools 0.9.12. (Jelmer Vernooij, #815423)
 
379
 
 
380
* ``LockDir`` can now be run when the local hostname is ``localhost``.
 
381
  (Jelmer Vernooij, #825994)
 
382
 
 
383
* ``ModuleAvailableFeature`` won't try to import already imported modules,
 
384
  allowing it to be used for modules with side-effects.
 
385
  (Vincent Ladeuil, #712474)
 
386
 
 
387
* Output time stamps while running ``make check`` to get better timings from
 
388
  pqm.  (Vincent Ladeuil, #837926)
 
389
 
 
390
* `TestCaseWithMemoryTransport` is faster now: `_check_safety_net` now
 
391
  just compares the bytes in the dirstate file to its pristine state,
 
392
  rather than opening the WorkingTree and calling ``last_revision()``.
 
393
  This reduces the overall test suite time by about 10% on my laptop.
 
394
  (Andrew Bennetts)
 
395
 
 
396
* Update `TestCase.knownFailure` to the testtools way of handling expected
 
397
  failures to resolve Python 2.7 incompatibility. (Martin [gz], #607400)
 
398
 
 
399
..
 
400
   vim: tw=74 ft=rst ff=unix