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