5
6
.. contents:: List of Releases
11
:2.2b3: NOT RELEASED YET
16
* An API break has been made to the lock_write method of ``Branch`` and
17
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
18
and ``repository.RepositoryWriteLockResult`` objects. This makes
19
changing the API in future easier and permits some cleaner calling code.
20
The lock_read method has also changed from having no defined return
21
value to returning ``LogicalLockResult`` objects.
24
* ``bzr`` does not try to guess the username as ``username@hostname``
25
and requires it to be explictly set. This can be set using ``bzr
27
(Parth Malwankar, #549310)
32
* ``bzr commit`` accepts ``-p`` (for "patch") as a shorter name for
34
(Parth Malwankar, #571467)
36
* ``bzr ignore`` now supports a ``--default-rules`` option that displays
37
the default ignore rules used by bzr. The flag ``--old-default-rules``
38
is no longer supported by ``ignore``.
39
(Parth Malwankar, #538703)
41
* ``bzr pack`` now supports a ``--clean-obsolete-packs`` option that
42
can save disk space by deleting obsolete pack files created during the
44
(Parth Malwankar, #304320)
46
* New command line option ``--authors`` to ``bzr log`` allows users to
47
select which of the apparent authors and committer should be
48
included in the log. Defaults depend on format. (Martin von Gagern, #513322)
50
* Support ``--directory`` option for a number of additional commands:
51
added, annotate, bind, cat, cat-revision, clean-tree, deleted,
52
export, ignore, ignored, lookup-revision, ls, modified, nick,
53
re-sign, unbind, unknowns.
54
(Martin von Gagern, #527878)
59
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
60
group ownership from the containing directory. This allow bzr to work
62
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
64
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
65
support of bzr-externals and scmproj plugins.
66
(Alexander Belchenko, bug #572098)
68
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
69
(Gordon Tyler, #572092)
71
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
72
are part of Y ancestry but not part of X ancestry (aka the graph
74
(Vincent Ladeuil, #320119)
76
* ``bzr rm`` should not refuse to delete directories which contained a file
77
which has been moved elsewhere in the tree after the previous commit.
78
(Marius Kruger, Daniel Watkins, #129880)
80
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
81
(Vincent Ladeuil, #566670)
83
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
84
(Vincent Ladeuil, #563997)
86
* Don't mention --no-strict when we just issue the warning about unclean trees.
87
(Vincent Ladeuil, #401599)
89
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
91
(Andrew Bennetts, #528041)
93
* Heavyweight checkout operation now shows a message to the user indicating
94
history is being copied.
95
(Parth Malwankar, #538868)
97
* Reduce peak memory by one copy of compressed text.
98
(John Arbash Meinel, #566940)
100
* Show the filenames when a file rename fails so that the error will be
102
(Martin Pool, #491763)
104
* Unicode characters in aliases are now handled correctly and do not cause
105
UnicodeEncodeError exception. (Parth Malwankar, #529930)
107
* Unicode commit messages that are the same as a file name no longer cause
108
UnicodeEncodeError. ``ui.text.show_warning`` now handles unicode
110
(Parth Malwankar, #563646)
112
* Using bzr with `lp:` urls behind an http proxy should work.
113
(Robert Collins, #558343)
118
* ``append_revisions_only`` will now be interpreted as a boolean and a
119
warning emitted if illegal values are used. Note that for projects
120
that needs to maintain compatibility with previsous bzr versions,
121
only 'True' and 'False' strings must be used (previous versions of
122
bzr will interpret all strings differing from 'True'
123
(case-sensitive) as false.
124
(Brian de Alwis, Vincent Ladeuil)
126
* ``bzr ls`` now supports short options for existing long options.
127
``-k/--kind``, ``-i/--ignored``, ``-u/--unknown`` and ``-0/--null``.
128
(Parth Malwankar, #181124)
130
* ``Config.get_user_option_as_bool`` will now warn if a value cannot
131
be interpreted as a boolean.
140
* Added ``bzrlib.merge.PerFileMerger``, a more convenient way to write
141
some kinds of ``merge_file_content`` hook functions.
144
* `BzrDir`, `Branch`, `Repository` and `WorkingTree` now all support `user_url`,
145
`user_transport`, `control_url` and `control_transport` members pointing
146
respectively to the directory containing the ``.bzr`` control directory,
147
and to the directory within ``.bzr`` used for the particular component.
148
All of them inherit from `ControlComponent` which provides default
152
* Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
153
expected to return an object which can be used to unlock them. This reduces
154
duplicate code when using cleanups. The previous 'tokens's returned by
155
``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
156
on the result of the lock_write. ``repository.RepositoryWriteLockResult``
157
and ``branch.BranchWriteLockResult`` document this. (Robert Collins)
159
* ``Repository.refresh_data`` may now be called in a write group on
160
pack-based repositories. Older repositories will still raise an error
161
in this case. Subclasses of ``Repository`` can still override
162
``Repository._refresh_data``, but are now responsible for raising
163
``bzrlib.repository.IsInWriteGroupError`` if they do not support
164
``refresh_data`` during a write group.
165
(Andrew Bennetts, #574236)
170
* ``log._get_info_for_log_files`` now takes an add_cleanup callable.
173
* ``_remember_remote_is_before`` no longer raises AssertionError when
174
suboptimal network behaviour is noticed; instead it just mutters to the
175
log file (and warns the user if they have set the ``hpss`` debug flag).
176
This was causing unnecessary aborts for performance bugs that are minor
178
(Andrew Bennetts, #528041)
180
* Permit bzr to run under ``python -OO`` which reduces the size of bytecode
181
files loaded from disk. To ensure docstrings needed for help are never
182
stripped, the prefix ``__doc__ =`` should now be used.
183
(Martin <gzlist@googlemail.com>)
188
* Added ``bzrlib.tests.matchers`` as a place to put matchers, along with
189
our first in-tree matcher. See the module docstring for details.
192
* ``bzr selftest --parallel=subprocess`` now works correctly on win32.
193
(Gordon Tyler, #551332)
195
* Workaround ``Crypto.Random`` check leading to spurious test
196
failures on Lucid, FreeBSD and gentoo.
197
(Vincent Ladeuil, #528436)
204
This is a somewhat early second beta of the 2.2 series, to fix a python2.4
205
incompatibility in the 2.2b1 release. It also includes a swag of
206
performance, usability and correctness improvements: test feedback on all
207
of these would be welcome.
213
* ``bzr diff`` now supports a --format option, which can be used to
214
select alternative diff formats. (Jelmer Vernooij, #555994)
219
* ``bzr dpush``, ``bzr push`` and ``bzr send`` will now issue a warning
220
instead of failing when dirty trees are involved. The corresponding
221
``dpush_strict``, ``push_strict`` and ``send_strict`` should be set to
222
True explicitly to get the previous behaviour.
223
(Vincent Ladeuil, #519319)
225
* ``bzr export`` to tar file does not fail if any parent directory
226
contains unicode characters. This works around upstream Python bug
227
http://bugs.python.org/issue8396 .
228
(Parth Malwankar, #413406)
230
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
231
(Aaron Bentley, #559436)
233
* ``bzr update`` when a pending merge in the working tree has been merged
234
into the master branch will no longer claim that old commits have become
235
pending merges. (Robert Collins, #562079)
237
* ``bzrlib.mutabletree.MutableTree.commit`` will now support a passed in
238
config as in previous versions of bzrlib. (Robert Collins)
240
* Fix glitch in the warning about unclean trees display.
241
(Vincent Ladeuil, #562665)
243
* Fixed Python2.4 incompatibilities in the bzr2.2b1 source tarball.
246
* Help messages generated by ``RegistryOption.from_kwargs`` list the
247
switches in alphabetical order, rather than in an undefined order.
248
(Martin von Gagern, #559409)
250
* Make sure the ``ExecutablePath`` and ``InterpreterPath`` are set in
251
Apport crash reports, to avoid "This problem report applies to a program
252
which is not installed any more" error.
253
(Martin Pool, James Westby, #528114)
255
* Reset ``siginterrupt`` flag to False every time we handle a signal
256
installed with ``set_signal_handler(..., restart_syscall=True)`` (from
257
``bzrlib.osutils``. Reduces the likelihood of "Interrupted System Call"
258
errors after two window resizes.
261
* When invoked with a range revision, ``bzr log`` doesn't show revisions
262
that are not part of the Y revisions ancestry anymore when invoked with
264
(Vincent Ladeuil, #474807)
266
* Properly handle ``param_name`` attribute for ``ListOption``.
267
(Martin von Gagern, 387117)
272
* ``bzr commit`` will prompt before using a commit message that was
273
generated by a template and not edited by the user.
274
(Robert Collins, #530265)
276
* ``bzr diff`` read-locks the trees and branches only once, saving about
277
10-20ms on ``bzr diff`` in a bzr.dev tree.
280
* ``bzr missing`` read-locks the branches only once.
283
* ``bzr pull`` locks the branches and tree only once.
286
* Index lookups in pack repositories search recently hit pack files first.
287
In repositories with many pack files this can greatly reduce the
288
number of files accessed, the number of bytes read, and the number of
289
read calls. An incremental pull via plain HTTP takes half the time and
290
bytes for a moderately large repository. (Andrew Bennetts)
292
* Index lookups only re-order the indexes when the hit files aren't
293
already first. Reduces the cost of reordering
294
(John Arbash Meinel, #562429)
296
* Less code is loaded at startup. (Cold-cache start time is about 10-20%
298
(Martin Pool, #553017)
303
* ``bzrlib.diff.get_trees_and_branches_to_diff`` is deprecated. Use
304
``get_trees_and_branches_to_diff_locked`` instead.
307
* ``TreeTransform.commit`` supports the full set of commit parameters, and
308
auto-determines branch nick if not supplied. (Aaron Bentley)
313
* ``bzrlib.commands.Command.run_direct`` is no longer needed - the pre
314
2.1 method of calling run() to perform testing or direct use via the API
315
is now possible again. As part of this, the _operation attribute on
316
Command is now transient and only exists for the duration of ``run()``.
327
* BTreeGraphIndex can now take an offset to indicate that the data starts
328
somewhere other than then beginning of the file. (John Arbash Meinel)
330
* Deleted very old hidden commands ``versionedfile-list``,
331
``weave-plan-merge``, ``weave-merge-text``.
334
* ``Repository.get_inventory_sha1()`` and ``Repository.get_revision_xml()``
335
have been removed. (Jelmer Vernooij)
337
* ``Repository.get_revision_inventory()`` has been removed in favor of
338
``Repository.get_inventory()``. (Jelmer Vernooij)
340
* All test servers have been moved out of the bzrlib.transport hierarchy to
341
bzrlib.tests.test_server *except* for MemoryServer, ChrootServer and
342
PathFilteringServer. ``bzrlib`` users may encounter test failures that can
343
be fixed by updating the related imports from ``bzrlib.transport.xxx`` to
344
``bzrlib.tests.test_server``.
347
* ``BranchReferenceFormat.initialize()`` now takes an optional name argument
348
as its second parameter, for consistency with the initialize() method of
349
other formats. (Jelmer Vernooij)
354
* Added ``bzr remove-branch`` command that can remove a local or remote
355
branch. (Jelmer Vernooij, #276295)
357
* ``bzr export`` now takes an optional argument ``--per-file-timestamps``
358
to set file mtimes to the last timestamp of the last revision in which
359
they were changed rather than the current time. (Jelmer Vernooij)
361
* If the Apport crash-reporting tool is available, bzr crashes are now
362
stored into the ``/var/crash`` apport spool directory, and the user is
363
invited to report them to the developers from there, either
364
automatically or by running ``apport-bug``. No information is sent
365
without specific permission from the user. (Martin Pool, #515052)
367
* Parsing of command lines, for example in ``diff --using``, no longer
368
treats backslash as an escape character on Windows. (Gordon Tyler,
371
* Plugins can be disabled by defining ``BZR_DISABLE_PLUGINS`` as
372
a list of plugin names separated by ':' (';' on windows).
373
(Vincent Ladeuil, #411413)
375
* Plugins can be loaded from arbitrary locations by defining
376
``BZR_PLUGINS_AT`` as a list of name@path separated by ':' (';' on
377
windows). This takes precedence over ``BZR_PLUGIN_PATH`` for the
378
specified plugins. This is targeted at plugin developers for punctual
379
needs and *not* intended to replace ``BZR_PLUGIN_PATH``.
380
(Vincent Ladeuil, #82693)
382
* Tag names can now be determined automatically by ``automatic_tag_name``
383
hooks on ``Branch`` if they are not specified on the command line.
386
* Tree-shape conflicts can be resolved by providing ``--take-this`` and
387
``--take-other`` to the ``bzr resolve`` command. Just marking the conflict
388
as resolved is still accessible via the ``--done`` default action.
391
* Merges can be proposed on Launchpad with the new lp-propose-merge command.
392
(Aaron Bentley, Jonathan Lange)
397
* Added docstring for ``Tree.iter_changes``
398
(John Arbash Meinel, #304182)
400
* Allow additional arguments to
401
``RemoteRepository.add_inventory_by_delta()``. (Jelmer Vernooij, #532631)
403
* Allow exporting a single file using ``bzr export``.
404
(Michal Junák, #511987)
406
* Allow syscalls to automatically restart when ``TextUIFactory``'s
407
SIGWINCH handler is invoked, avoiding ``EINTR`` errors during blocking
408
IO, which are often poorly handled by Python's libraries and parts of
409
bzrlib. (Andrew Bennetts, #496813)
411
* Avoid infinite recursion when probing for apport.
412
(Vincent Ladeuil, #516934)
414
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
415
(Martin Pool, #331095)
417
* Avoid truncating svn URLs.
418
(Martin Pool, Martin von Gagern, #545185)
420
* ``bzr add`` will not add conflict related files unless explicitly required.
421
(Vincent Ladeuil, #322767, #414589)
423
* ``bzr dump-btree`` now works on ``*.cix`` and ``*.six`` files. Those
424
indices do not have reference lists, so ``dump-btree`` will simply show
425
``None`` instead. (Andrew Bennetts, #488607)
427
* ``bzr help`` will no longer trigger the get_missing_command hook when
428
doing a topic lookup. This avoids prompting (like 'no command plugins/loom,
429
did you mean log?') when getting help. In future we may trigger the hook
430
deliberately when no help topics match from any help index.
431
(Robert Collins, #396261)
433
* ``bzr log -n0 -r..A.B.C`` should not crash but just consider the None
434
revspec as representing the first revision of the branch.
435
(Vincent Ladeuil, #519862)
437
* ``bzr remove-tree`` can now remove multiple working trees.
438
(Jared Hance, Andrew Bennetts, #253137)
440
* ``bzr resolve --take-this`` and ``--take-other`` now correctly renames
441
the kept file on content conflicts where one side deleted the file.
442
(Vincent Ladeuil, #529968)
444
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
445
permissions as ``.bzr`` directory on a POSIX OS.
446
(Parth Malwankar, #262450)
448
* ``bzr upgrade`` now names backup directory as ``backup.bzr.~N~`` instead
449
of ``backup.bzr``. This directory is ignored by bzr commands such as
451
(Parth Malwankar, #335033, #300001)
453
* Cope with non-utf8 characters inside ``.bzrignore``.
454
(Jason Spashett, #183504)
456
* Correctly interpret "451 Rename/move failure: Directory not empty" from
457
ftp servers while trying to take a lock.
458
(Martin Pool, #528722)
460
* DirStateRevisionTree.kind() was returning wrong result when 'kind'
461
changes occured between the workingtree and one of its parents.
462
(Vincent Ladeuil, #535547)
464
* Fix ``log`` to better check ancestors even if merged revisions are involved.
465
(Vincent Ladeuil, #476293)
467
* Loading a plugin from a given path with ``BZR_PLUGINS_AT`` doesn't depend
468
on os.lisdir() order and is now reliable.
469
(Vincent Ladeuil, #552922).
471
* Many IO operations that returned ``EINTR`` were retried even if it
472
wasn't safe to do so via careless use of ``until_no_eintr``. Bazaar now
473
only retries operations that are safe to retry, and in some cases has
474
switched to operations that can be retried (e.g. ``sock.send`` rather than
476
(Andrew Bennetts, Martin <gzlist@googlemail.com>, #496813)
478
* Path conflicts now support --take-this and --take-other even when a
479
deletion is involved.
480
(Vincent Ladeuil, #531967)
482
* Network transfer amounts and rates are now displayed in SI units according
483
to the Ubuntu Units Policy <https://wiki.ubuntu.com/UnitsPolicy>.
484
(Gordon Tyler, #514399)
486
* Support kind markers for socket and fifo filesystem objects. This
487
prevents ``bzr status --short`` from crashing when those files are
488
present. (John Arbash Meinel, #303275)
490
* ``bzr mkdir DIR`` will not create DIR unless DIR's parent is a versioned
491
directory. (Parth Malwankar, #138600)
493
* SSH child processes will now ignore SIGQUIT on nix systems so breaking into
494
the debugger won't kill the session.
495
(Martin <gzlist@googlemail.com>, #162502)
497
* Tolerate patches with leading noise in ``bzr-handle-patch``.
498
(Toshio Kuratomi, Martin Pool, #502076)
500
* ``update -r`` now supports updating to revisions that are not on
501
mainline (i.e. it supports dotted revisions).
502
(Parth Malwankar, #517800)
504
* Use first apparent author not committer in GNU Changelog format.
505
(Martin von Gagern, #513322)
510
* ``bzrlib.merge_directive._BaseMergeDirective`` has been renamed to
511
``bzrlib.merge_directive.BaseMergeDirective`` and is now public.
514
* ``BranchFormat.initialize`` now takes an optional ``name`` of the colocated
515
branch to create. (Jelmer Vernooij)
517
* ``BzrDir.get_branch_transport`` now takes an optional ``name`` of the
518
colocated branch to open. (Jelmer Vernooij)
520
* Added ``bzrlib.osutils.set_signal_handler``, a convenience function that
521
can set a signal handler and call ``signal.siginterrupt(signum,
522
False)`` for it, if the platform and Python version supports it.
523
(Andrew Bennetts, #496813)
525
* New ``bzrlib.initialize`` is recommended for programs using bzrlib to
526
run when starting up; it sets up several things that previously needed
527
to be done separately.
528
(Martin Pool, #507710)
530
* Exporters now support a ``per_file_timestamps`` argument to write out the
531
timestamp of the commit in which a file revision was introduced.
534
* New method ``BzrDir.list_branches()`` that returns a sequence of branches
535
present in a control directory. (Jelmer Vernooij)
537
* New method ``Repository.get_known_graph_ancestry()``.
538
(Jelmer Vernooij, #495502)
540
* New transport methods ``readlink``, ``symlink`` and ``hardlink``.
543
* Remove unused ``CommandFailed`` exception.
549
* ``bzrlib.branchbuilder.BranchBuilder.build_snapshot`` now accepts a
550
``message_callback`` in the same way that commit does. (Robert Collins)
552
* ``bzrlib.builtins.Commit.run`` raises ``bzrlib.errors.BoundBranchOutOfDate``
553
rather than ``bzrlib.errors.BzrCommandError`` when the bound branch is out
554
of date. (Gary van der Merwe)
556
* ``bzrlib.commands.run_bzr`` is more extensible: callers can supply the
557
functions to load or disable plugins if they wish to use a different
558
plugin mechanism; the --help, --version and no-command name code paths
559
now use the generic pluggable command lookup infrastructure.
562
* ``bzrlib.errors.BoundBranchOutOfDate`` has a new field ``extra_help``
563
which can be set to add extra help to the error. (Gary van der Merwe)
565
* New method ``Branch.automatic_tag_name`` that can be used to find the
566
tag name for a particular revision automatically. (Jelmer Vernooij)
568
* The methods ``BzrDir.create_branch()``, ``BzrDir.destroy_branch()`` and
569
``BzrDir.open_branch()`` now take an optional ``name`` argument.
575
* bzr now has a ``.testr.conf`` file in its source tree configured
576
appropriately for running tests with Testrepository
577
(``https://launchpad.net/testrepository``). (Robert Collins)
579
* Documentation about testing with ``subunit`` has been tweaked.
582
* Known failures has been added for resolve --take-other on ParentLoop
583
conflicts. This reflects bug #537956 without fixing it.
586
* New ``bzrlib.tests.test_import_tariff`` can make assertions about what
587
Python modules are loaded, to guard against startup time or library
588
dependency regressions.
591
* PQM will now run with subunit output. To analyze a PQM error use
592
tribunal, or cat log | subunit-filter | subunit2pyunit. (Robert Collins)
594
* Stop sending apport crash files to ``.cache`` in the directory from
595
which ``bzr selftest`` was run. (Martin Pool, #422350)
597
* Tests no longer fail if "close() called during concurrent
598
operation on the same file object" occurs when closing the log file
599
(which can happen if a thread tries to write to the log file at the
600
wrong moment). An warning will be written to ``stderr`` when this
601
happens, and another warning will be written if the log file could not
602
be closed after retrying 100 times. (Andrew Bennetts, #531746)
607
:2.1.2: NOT RELEASED YET
612
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
613
(Aaron Bentley, #559436)
615
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
617
(Andrew Bennetts, #528041)
619
* Reset ``siginterrupt`` flag to False every time we handle a signal
620
installed with ``set_signal_handler(..., restart_syscall=True)`` (from
621
``bzrlib.osutils``. Reduces the likelihood of "Interrupted System Call"
622
errors after two window resizes.
628
* ``_remember_remote_is_before`` no longer raises AssertionError when
629
suboptimal network behaviour is noticed; instead it just mutters to the
630
log file (and warns the user if they have set the ``hpss`` debug flag).
631
This was causing unnecessary aborts for performance bugs that are minor
633
(Andrew Bennetts, #528041)
641
This is a small bugfix release. Upgrading is recommended for anyone
642
running 2.1.0 or earlier.
647
* Allow syscalls to automatically restart when ``TextUIFactory``'s
648
SIGWINCH handler is invoked, avoiding ``EINTR`` errors during blocking
649
IO, which are often poorly handled by Python's libraries and parts of
650
bzrlib. (Andrew Bennetts, #496813)
652
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
653
(Martin Pool, #331095)
655
* Fix plugin packaging on Windows. (Ian Clatworthy, #524162)
657
* Fix stub sftp test server to call os.getcwdu().
658
(Vincent Ladeuil, #526221, #526353)
660
* Fixed CHM generation by moving the NEWS section template into
661
a separate file. (Ian Clatworthy, #524184)
663
* Merge correctly when this_tree is not a WorkingTree. (Aaron Bentley)
665
* Register SIGWINCH handler only when creating a ``TextUIFactory``; avoids
666
problems importing bzrlib from a non-main thread.
667
(Elliot Murphy, #521989)
669
* Repositories accessed via a smart server now reject being stacked on a
670
repository in an incompatible format, as is the case when accessing them
671
via other methods. This was causing fetches from those repositories via
672
a smart server (e.g. using ``bzr branch``) to receive invalid data.
673
(Andrew Bennetts, #562380)
675
* Standardize the error handling when creating a new ``StaticTuple``
676
(problems will raise TypeError). (Matt Nordhoff, #457979)
678
* Warn if pyrex is too old to compile the new ``SimpleSet`` and
679
``StaticTuple`` extensions, rather than having the build fail randomly.
680
(John Arbash Meinel, #449776)
685
* Added a link to the Desktop Guide. (Ian Clatworthy)
687
* Added What's New in Bazaar 2.1 document. (Ian Clatworthy)
689
* Drop Google Analytics from the core docs as they caused problems
690
in the CHM files. (Ian Clatworthy, #502010)
695
* Added ``bzrlib.osutils.set_signal_handler``, a convenience function that
696
can set a signal handler and call ``signal.siginterrupt(signum,
697
False)`` for it, if the platform and Python version supports it.
698
(Andrew Bennetts, #496813)
704
:Codename: Strasbourg
707
This release marks our second long-term-stable series. The Bazaar team
708
has decided that we will continue to make bugfix-only 2.0.x and 2.1.x
709
releases, along with 2.2 development releases.
711
This is a fairly incremental update, focusing on polish and bugfixing.
712
There are no changes for supported disk formats. Key updates include
713
reduced memory consumption for many operations, a new per-file merge
714
hook, ignore patterns can now include '!' to exclude files, globbing
715
support for all commands on Windows, and support for addressing home
716
directories via ``bzr+ssh://host/~/`` syntax.
718
Users are encouraged to upgrade from the 2.0 stable series.
723
* Don't require testtools to use sftp.
724
(Vincent Ladeuil, #516183)
726
* Fix "AttributeError in Inter1and2Helper" during fetch.
727
(Martin Pool, #513432)
729
* ``bzr update`` performs the two merges in a more logical order and will stop
730
when it encounters conflicts.
731
(Gerard Krol, #113809)
733
* Give a better error message when doing ``bzr bind`` in an already bound
734
branch. (Neil Martinsen-Burrell, #513063)
736
* Ignore ``KeyError`` from ``remove_index`` during ``_abort_write_group``
737
in a pack repository, which can happen harmlessly if the abort occurs during
738
finishing the write group. Also use ``bzrlib.cleanup`` so that any
739
other errors that occur while aborting the individual packs won't be
740
hidden by secondary failures when removing the corresponding indices.
741
(Andrew Bennetts, #423015)
743
* Set the mtime of files exported to a directory by ``bzr export`` all to
744
the same value to avoid confusing ``make`` and other date-based build
745
systems. (Robert Collins, #515631)
750
* Fetching into experimental formats will now print a warning. (Jelmer
756
* ``Repository.deserialise_inventory`` has been renamed to
757
``Repository._deserialise_inventory`` to indicate it is private.
760
* ``Repository.get_inventory_xml`` has been renamed to
761
``Repository._get_inventory_xml`` to indicate it is private.
764
* ``Repository.serialise_inventory`` has been renamed to
765
``Repository._serialise_inventory`` to indicate it is private.
767
* Using the ``bzrlib.chk_map`` module from within multiple threads at the
768
same time was broken due to race conditions with a module level page
769
cache. This shows up as a KeyError in the ``bzrlib.lru_cache`` code with
770
``bzrlib.chk_map`` in the backtrace, and can be triggered without using
771
the same high level objects such as ``bzrlib.repository.Repository``
772
from different threads. chk_map now uses a thread local cache which may
773
increase memory pressure on processes using threads.
774
(Robert Collins, John Arbash Meinel, #514090)
776
* The new ``merge_file_content`` should now be ok with tests to avoid
778
(Vincent Ladeuil, #515597)
783
* Use ``bzrlib.cleanup`` rather than less robust ``try``/``finally``
784
blocks in several places in ``bzrlib.merge``. This avoids masking prior
785
errors when errors like ``ImmortalPendingDeletion`` occur during cleanup
787
(Andrew Bennetts, #517275)
792
* The ``remove_index`` method of
793
``bzrlib.repofmt.pack_repo.AggregateIndex`` no longer takes a ``pack``
794
argument. This argument was always ignored.
795
(Andrew Bennetts, #423015)
800
:Codename: after the bubbles
801
:2.1.0rc2: 2010-01-29
803
This is a quick-turn-around to update a small issue with our new per-file
804
merge hook. We expect no major changes from this to the final 2.1.0.
809
* The new ``merge_file_content`` hook point has been altered to provide a
810
better API where state for extensions can be stored rather than the
811
too-simple function based approach. This fixes a performance regression
812
where branch configuration would be parsed per-file during merge. As
813
part of this the included news_merger has been refactored into a base
814
helper class ``bzrlib.merge.ConfigurableFileMerger``.
815
(Robert Collins, John Arbash Meinel, #513822)
821
:Codename: the 'new' stable
822
:2.1.0rc1: 2009-01-21
824
This is the first stable release candidate for Bazaar's 2.1 series. From
825
this point onwards, the 2.1 series will be considered stable (as the 2.0
826
series) and only bugfixes are expected to be incorporated. The dozen or so
827
bugfixes in the 2.0.4 release are also included in this release (along
828
with more than 15 more bugfixes). Some of the interesting features are
829
support for per-file merge hooks, ``bzr unshelve --preview``, support
830
for using ! in ignore files to exclude files from being ignored, a small
831
memory leak was squashed, and many ``ObjectNotLocked`` errors were fixed.
832
This looks to be a very good start for a new stable series.
838
* Add bug information to log output when available.
839
(Neil Martinsen-Burrell, Guillermo Gonzalez, #251729)
841
* Added ``merge_file_content`` hook point to ``Merger``, allowing plugins
842
to register custom merge logic, e.g. to provide smarter merging for
845
* Bazaar now includes the ``news_merge`` plugin. It is disabled by
846
default, to enable it add a ``news_merge_files`` option to your
847
configuration. Consult ``bzr help news_merge`` for more information.
850
* ``bzr branch`` now takes a ``--bind`` option. This lets you
851
branch and bind all in one command. (Ian Clatworthy)
853
* ``bzr switch`` now takes a ``--revision`` option, to allow switching to
854
a specific revision of a branch. (Daniel Watkins, #183559)
856
* ``bzr unshelve --preview`` can now be used to show how a patch on the
857
shelf would be applied to the working tree.
858
(Guilherme Salgado, #308122)
860
* ``bzr update`` now takes a ``--revision`` argument. This lets you
861
change the revision of the working tree to any revision in the
862
ancestry of the current or master branch. (Matthieu Moy, Mark Hammond,
865
* ``-Dbytes`` can now be used to display the total number of bytes
866
transferred for the current command. This information is always logged
867
to ``.bzr.log`` for later inspection. (John Arbash Meinel)
869
* New ignore patterns. Patterns prefixed with '!' are exceptions to
870
ignore patterns and take precedence over regular ignores. Such
871
exceptions are used to specify files that should be versioned which
872
would otherwise be ignored. Patterns prefixed with '!!' act as regular
873
ignore patterns, but have highest precedence, even over the '!'
874
exception patterns. (John Whitley, #428031)
876
* The ``supress_warnings`` configuration option has been introduced to disable
877
various warnings (it currently only supports the ``format_deprecation``
878
warning). The new option can be set in any of the following locations:
879
``bazaar.conf``, ``locations.conf`` and/or ``branch.conf``.
880
(Ted Gould, Matthew Fuller, Vincent Ladeuil)
885
* Always show a message if an OS error occurs while trying to run a
886
user-specified commit message editor.
887
(Martin Pool, #504842)
889
* ``bzr diff`` will now use the epoch when it is unable to determine
890
the timestamp of a file, if the revision it was introduced in is a
891
ghost. (Jelmer Vernooij, #295611)
893
* ``bzr switch -b`` can now create branches that are located using directory
894
services such as ``lp:``, even when the branch name doesn't contain a
895
'/'. (Neil Martinsen-Burrell, #495263)
897
* ``bzr unshelve`` has improved messages about what it is doing.
898
(Neil Martinsen-Burrell, #496917)
900
* Concurrent autopacking is more resilient to already-renamed pack files.
901
If we find that a file we are about to obsolete is already obsoleted, we
902
do not try to rename it, and we leave the file in ``obsolete_packs``.
903
The code is also fault tolerant if a file goes missing, assuming that
904
another process already removed the file.
905
(John Arbash Meinel, Gareth White, #507557)
907
* Fix "Too many concurrent requests" in reconcile when network connection
908
fails. (Andrew Bennetts, #503878)
910
* Fixed a side effect mutation of ``RemoteBzrDirFormat._network_name``
911
that caused some tests to fail when run in a non-default order.
912
Probably no user impact. (Martin Pool, #504102)
914
* Fixed ``ObjectNotLocked`` error in ``bzr cat -rbranch:../foo FILE``.
915
(Andrew Bennetts, #506274)
917
* FTP transports support Unicode paths by encoding/decoding them as utf8.
918
(Vincent Ladeuil, #472161)
920
* Listen to the SIGWINCH signal to update the terminal width.
921
(Vincent Ladeuil, #316357)
923
* Progress bars are now hidden when ``--quiet`` is given.
924
(Martin Pool, #320035)
926
* ``SilentUIFactory`` now supports ``make_output_stream`` and discards
927
whatever is written to it. This un-breaks some plugin tests that
928
depended on this behaviour.
929
(Martin Pool, #499757)
931
* When operations update the working tree, all affected files should end
932
up with the same mtime. (eg. when versioning a generated file, if you
933
update the source and the generated file together, the generated file
934
should appear up-to-date.)
935
(John Arbash Meinel, Martin <gzlist>, #488724)
940
* Added ``add_cleanup`` and ``cleanup_now`` to ``bzrlib.command.Command``.
941
All the builtin commands now use ``add_cleanup`` rather than
942
``try``/``finally`` blocks where applicable as it is simpler and more
943
robust. (Andrew Bennetts)
945
* All except a small number of storage formats are now hidden, making
946
the help for numerous commands far more digestible. (Ian Clatworthy)
948
* Attempts to open a shared repository as a branch (e.g. ``bzr branch
949
path/to/repo``) will now include "location is a repository" as a hint in
950
the error message. (Brian de Alwis, Andrew Bennetts, #440952)
952
* Push will now inform the user when they are trying to push to a foreign
953
VCS for which roundtripping is not supported, and will suggest them to
954
use dpush. (Jelmer Vernooij)
956
* The version of bzr being run is now written to the log file.
959
* Transport network activity indicator is shown more of the time when
960
Bazaar is doing network IO.
966
* Add documentation on creating merges with more than one parent.
967
(Neil Martinsen-Burrell, #481526)
969
* Better explain the --uncommitted option of merge.
970
(Neil Martinsen-Burrell, #505088)
972
* Improve discussion of pending merges in the documentation for
973
``revert``. (Neil Martinsen-Burrell, #505093)
975
* Improved help for ``bzr send``.
976
(Martin Pool, Bojan Nikolic)
978
* There is a System Administrator's Guide in ``doc/en/admin-guide``,
979
including discussions of installation, relevant plugins, security and
980
backup. (Neil Martinsen-Burrell)
982
* The ``conflicts`` help topic has been renamed to ``conflict-types``.
985
* The User Reference is now presented as a series of topics.
986
Many of the included topics have link and format tweaks applied.
992
* Added ``cachedproperty`` decorator to ``bzrlib.decorators``.
995
* Many test features were renamed from ``FooFeature`` to ``foo_feature``
996
to be consistent with instances being lower case and classes being
997
CamelCase. For the features that were more likely to be used, we added a
998
deprecation thunk, but not all. (John Arbash Meinel)
1000
* Merger classes (such as ``Merge3Merger``) now expect a ``this_branch``
1001
parameter in their constructors, and provide ``this_branch`` as an
1002
attribute. (Andrew Bennetts)
1004
* The Branch hooks pre_change_branch_tip no longer masks exceptions raised
1005
by plugins - the original exceptions are now preserved. (Robert Collins)
1007
* The Transport ``Server.tearDown`` method is now renamed to
1008
``stop_server`` and ``setUp`` to ``start_server`` for consistency with
1009
our normal naming pattern, and to avoid confusion with Python's
1010
``TestCase.tearDown``. (Martin Pool)
1012
* ``WorkingTree.update`` implementations must now accept a ``revision``
1018
* Added ``BzrDir.open_branchV3`` smart server request, which can receive
1019
a string of details (such as "location is a repository") as part of a
1020
``nobranch`` response. (Andrew Bennetts, #440952)
1022
* New helper osutils.UnicodeOrBytesToBytesWriter which encodes unicode
1023
objects but passes str objects straight through. This is used for
1024
selftest but may be useful for diff and other operations that generate
1025
mixed output. (Robert Collins)
1027
* New exception ``NoRoundtrippingSupport``, for use by foreign branch
1028
plugins. (Jelmer Vernooij)
1033
* ``bzrlib.tests.permute_for_extension`` is a helper that simplifies
1034
running all tests in the current module, once against a pure python
1035
implementation, and once against an extension (pyrex/C) implementation.
1036
It can be used to dramatically simplify the implementation of
1037
``load_tests``. (John Arbash Meinel)
1039
* ``bzrlib.tests.TestCase`` now subclasses ``testtools.testcase.TestCase``.
1040
This permits features in testtools such as getUniqueInteger and
1041
getUniqueString to be used. Because of this, testtools version 0.9.2 or
1042
newer is now a dependency to run bzr selftest. Running with versions of
1043
testtools less than 0.9.2 will cause bzr to error while loading the test
1044
suite. (Robert Collins)
1046
* Shell-like tests now support the command "mv" for moving files. The
1047
syntax for ``mv file1 file2``, ``mv dir1 dir2`` and ``mv file dir`` is
1048
supported. (Neil Martinsen-Burrell)
1050
* The test progress bar no longer distinguishes tests that 'errored' from
1051
tests that 'failed' - they're all just failures.
1057
:2.0.6: NOT RELEASED YET
1062
* Additional merges after an unrelated branch has been merged with its
1063
history no longer crash when deleted files are involved.
1064
(Vincent Ladeuil, John Arbash Meinel, #375898)
1066
* ``bzr revert`` now only takes write lock on working tree, instead of on
1067
both working tree and branch.
1068
(Danny van Heumen, #498409)
1070
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
1071
permissions as ``.bzr`` directory on a POSIX OS.
1072
(Parth Malwankar, #262450)
1074
* Repositories accessed via a smart server now reject being stacked on a
1075
repository in an incompatible format, as is the case when accessing them
1076
via other methods. This was causing fetches from those repositories via
1077
a smart server (e.g. using ``bzr branch``) to receive invalid data.
1078
(Andrew Bennetts, #562380)
1085
This fifth release in our 2.0 series addresses several user-inconvenience
1086
bugs. None are critical, but upgrading is recommended for all users on
1087
earlier 2.0 releases.
1092
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
1093
(Martin Pool, #331095)
1095
* Concurrent autopacking is more resilient to already-renamed pack files.
1096
If we find that a file we are about to obsolete is already obsoleted, we
1097
do not try to rename it, and we leave the file in ``obsolete_packs``.
1098
The code is also fault tolerant if a file goes missing, assuming that
1099
another process already removed the file.
1100
(John Arbash Meinel, Gareth White, #507557)
1102
* Cope with the lockdir ``held/info`` file being empty, which seems to
1103
happen fairly often if the process is suddenly interrupted while taking
1105
(Martin Pool, #185103)
1107
* Give the warning about potentially slow cross-format fetches much
1108
earlier on in the fetch operation. Don't show this message during
1109
upgrades, and show the correct format indication for remote
1111
(Martin Pool, #456077, #515356, #513157)
1113
* Handle renames correctly when there are files or directories that
1114
differ only in case. (Chris Jones, Martin Pool, #368931)
1116
* If ``bzr push --create-prefix`` triggers an unexpected ``NoSuchFile``
1117
error, report that error rather than failing with an unhelpful
1118
``UnboundLocalError``.
1119
(Andrew Bennetts, #423563)
1121
* Running ``bzr`` command without any arguments now shows bzr
1122
version number along with rest of the help text.
1123
(Parth Malwankar, #369501)
1125
* Use osutils.O_NOINHERIT for some files on win32 to avoid PermissionDenied
1127
(Inada Naoki, #524560)
1132
* Added ``location-alias`` help topic.
1133
(Andrew Bennetts, #337834)
1135
* Fixed CHM generation by moving the NEWS section template into
1136
a separate file. (Ian Clatworthy, #524184)
1142
:Codename: smooth sailing
1145
The fourth bugfix-only release in the 2.0 series contains more than a
1146
dozen bugfixes relative to 2.0.3. The primary focus is on handling
1147
interruptions and concurrent operations more cleanly, there is also a fair
1148
improvement to ``bzr export`` when exporting a remote branch.
1154
* ``bzr annotate`` on another branch with ``-r branch:...`` no longer
1155
fails with an ``ObjectNotLocked`` error. (Andrew Bennetts, #496590)
1157
* ``bzr export dir`` now requests all file content as a record stream,
1158
rather than requsting the file content one file-at-a-time. This can make
1159
exporting over the network significantly faster (54min => 9min in one
1160
case). (John Arbash Meinel, #343218)
1162
* ``bzr serve`` no longer slowly leaks memory. The compiled
1163
``bzrlib.bencode.Encoder()`` class was using ``__del__`` to cleanup and
1164
free resources, and it should have been using ``__dealloc__``.
1165
This will likely have an impact on any other process that is serving for
1166
an extended period of time. (John Arbash Meinel, #494406)
1168
* Check for SIGINT (Ctrl-C) and other signals immediately if ``readdir``
1169
returns ``EINTR`` by calling ``PyErr_CheckSignals``. This affected the
1170
optional ``_readdir_pyx`` extension. (Andrew Bennetts, #495023)
1172
* Concurrent autopacks will no longer lose a newly created pack file.
1173
There was a race condition, where if the reload happened at the right
1174
time, the second packer would forget the name of the newly added pack
1175
file. (John Arbash Meinel, Gareth White, #507566)
1177
* Give a clearer message if the lockdir disappears after being apparently
1178
successfully taken. (Martin Pool, #498378)
1180
* Give a warning when fetching between repositories (local or remote) with
1181
sufficiently different formats that the content will need to be
1182
serialized (ie ``InterDifferingSerializer`` or ``inventory-deltas``), so
1183
the user has a clue that upgrading could make it faster.
1184
(Martin Pool, #456077)
1186
* If we fail to open ``~/.bzr.log`` write a clear message to stderr rather
1187
than using ``warning()``. The log file is opened before logging is set
1188
up, and it leads to very confusing: 'no handlers for "bzr"' messages for
1189
users, rather than something nicer.
1190
(John Arbash Meinel, Barry Warsaw, #503886)
1192
* Refuse to build with any Pyrex 0.9.4 release, as they have known bugs.
1193
(Martin Pool, John Arbash Meinel, #449372)
1195
* ``setup.py bdist_rpm`` now properly finds extra files needed for the
1196
build. (there is still the distutils bug
1197
http://bugs.python.org/issue644744) (Joe Julian, #175839)
1199
* The 2a format wasn't properly restarting autopacks when something
1200
changed underneath it (like another autopack). Now concurrent
1201
autopackers will properly succeed. (John Arbash Meinel, #495000)
1203
* ``TreeTransform`` can now handle when a delta says that the file id for
1204
the tree root changes. Rather than trying to rename your working
1205
directory, or failing early saying that you can't have multiple
1206
tree roots. This also fixes revert, update, and pull when the root id
1207
changes. (John Arbash Meinel, #494269, #504390)
1209
* ``_update_current_block`` no longer suppresses exceptions, so ^C at just
1210
the right time will get propagated, rather than silently failing to move
1211
the block pointer. (John Arbash Meinel, Gareth White, #495023)
1216
* We have a new ``test_source`` that ensures all pyrex ``cdef`` functions
1217
handle exceptions somehow. (Possibly by setting ``# cannot_raise``
1218
rather than an ``except ?:`` clause.) This should help prevent bugs like
1219
bug #495023. (John Arbash Meinel)
1225
:Codename: san francisco airport
1226
:2.1.0b4: 2009-12-14
1228
The fourth beta release in the 2.1 series brings with it a significant
1229
number of bugfixes (~20). The test suite is once again (finally) "green"
1230
on Windows, and should remain that way for future releases. There are a
1231
few performance related updates (faster upgrade and log), and several UI
1232
tweaks. There has also been a significant number of tweaks to the runtime
1233
documentation. 2.1.0b4 include everything from the 2.0.3 release.
1236
Compatibility Breaks
1237
********************
1239
* The BZR_SSH environmental variable may now be set to the path of a secure
1240
shell client. If currently set to the value ``ssh`` it will now guess the
1241
vendor of the program with that name, to restore the old behaviour that
1242
indicated the SSH Corporation client use ``sshcorp`` instead as the magic
1243
string. (Martin <gzlist@googlemail.com>, #176292)
1248
* ``bzr commit`` now has a ``--commit-time`` option.
1249
(Alexander Sack, #459276)
1251
* ``-Dhpss`` now increases logging done when run on the bzr server,
1252
similarly to how it works on the client. (John Arbash Meinel)
1254
* New option ``bzr unshelve --keep`` applies the changes and leaves them
1255
on the shelf. (Martin Pool, Oscar Fuentes, #492091)
1257
* The ``BZR_COLUMNS`` envrionment variable can be set to force bzr to
1258
respect a given terminal width. This can be useful when output is
1259
redirected or in obscure cases where the default value is not
1260
appropriate. Pagers can use it to get a better control of the line
1264
* The new command ``bzr lp-mirror`` will request that Launchpad update its
1265
mirror of a local branch. This command will only function if launchpadlib
1273
* After renaming a file, the dirstate could accidentally reference
1274
``source\\path`` rather than ``source/path`` on Windows. This might be a
1275
source of some dirstate-related failures. (John Arbash Meinel)
1277
* ``bzr commit`` now detects commit messages that looks like file names
1278
and issues a warning.
1279
(Gioele Barabucci, #73073)
1281
* ``bzr ignore /`` no longer causes an IndexError. (Gorden Tyler, #456036)
1283
* ``bzr log -n0 -rN`` should not return revisions beyond its merged revisions.
1284
(#325618, #484109, Marius Kruger)
1286
* ``bzr merge --weave`` and ``--lca`` will now create ``.BASE`` files for
1287
files with conflicts (similar to ``--merge3``). The contents of the file
1288
is a synthesis of all bases used for the merge.
1289
(John Arbash Meinel, #40412)
1291
* ``bzr mv --quiet`` really is quiet now. (Gordon Tyler, #271790)
1293
* ``bzr serve`` is more clear about the risk of supplying --allow-writes.
1294
(Robert Collins, #84659)
1296
* ``bzr serve --quiet`` really is quiet now. (Gordon Tyler, #252834)
1298
* Fix bug with redirected URLs over authenticated HTTP.
1299
(Glen Mailer, Neil Martinsen-Burrell, Vincent Ladeuil, #395714)
1301
* Interactive merge doesn't leave branch locks behind. (Aaron Bentley)
1303
* Lots of bugfixes for the test suite on Windows. We should once again
1304
have a test suite with no failures on Windows. (John Arbash Meinel)
1306
* ``osutils.terminal_width()`` obeys the BZR_COLUMNS environment
1307
variable but returns None if the terminal is not a tty (when output is
1308
redirected for example). Also fixes its usage under OSes that doesn't
1309
provide termios.TIOCGWINSZ. Make sure the corresponding tests runs on
1311
(Joke de Buhr, Vincent Ladeuil, #353370, #62539)
1312
(John Arbash Meinel, Vincent Ladeuil, #492561)
1314
* Terminate ssh subprocesses when no references to them remain, fixing
1315
subprocess and file descriptor leaks. (Andrew Bennetts, #426662)
1317
* The ``--hardlink`` option of ``bzr branch`` and ``bzr checkout`` now
1318
works for 2a format trees. Only files unaffected by content filters
1319
will be hardlinked. (Andrew Bennetts, #408193)
1321
* The new glob expansion on Windows would replace all ``\`` characters
1322
with ``/`` even if it there wasn't a glob to expand, the arg was quoted,
1323
etc. Now only change slashes if there is something being glob expanded.
1324
(John Arbash Meinel, #485771)
1326
* Use our faster ``KnownGraph.heads()`` functionality when computing the
1327
new rich-root heads. This can cut a conversion time in half (mysql from
1328
13.5h => 6.2h) (John Arbash Meinel, #487632)
1330
* When launching a external diff tool via bzr diff --using, temporary files
1331
are no longer created, rather, the path to the file in the working tree is
1332
passed to the external diff tool. This allows the file to be edited if the
1333
diff tool provides for this. (Gary van der Merwe, #490738)
1335
* The launchpad-open command can now be used from a subdirectory of a
1336
branch, not just from the root of the branch.
1337
(Neil Martinsen-Burrell, #489102)
1343
* ``bzr log`` is now faster. (Ian Clatworthy)
1345
* ``bzr update`` provides feedback on which branch it is up to date with.
1346
(Neil Martinsen-Burrell)
1348
* ``bzr upgrade`` from pre-2a to 2a can be significantly faster (4x).
1349
For details see the xml8 patch and heads() improvements.
1350
(John Arbash Meinel)
1352
* ``bzrlib.urlutils.local_path_from_url`` now accepts
1353
'file://localhost/' as well as 'file:///' URLs on POSIX. (Michael
1356
* The progress bar now shows only a spinner and per-operation counts,
1357
not an overall progress bar. The previous bar was often not correlated
1358
with real overall operation progress, either because the operations take
1359
nonlinear time, or because at the start of the operation Bazaar couldn't
1360
estimate how much work there was to do. (Martin Pool)
1365
* Lots of documentation tweaks for inline help topics and command help
1371
* ``bzrlib.textui`` (vestigial module) removed. (Martin Pool)
1373
* The Launchpad plugin now has a function ``login`` which will log in to
1374
Launchpad with launchpadlib, and ``load_branch`` which will return the
1375
Launchpad Branch object corresponding to a given Bazaar Branch object.
1381
* New test Feature: ``ModuleAvailableFeature``. It is designed to make it
1382
easier to handle what tests you want to run based on what modules can be
1383
imported. (Rather than lots of custom-implemented features that were
1384
basically copy-and-pasted.) (John Arbash Meinel)
1386
* ``osutils.timer_func()`` can be used to get either ``time.time()`` or
1387
``time.clock()`` when you want to do performance timing.
1388
``time.time()`` is limited to 15ms resolution on Windows, but
1389
``time.clock()`` gives CPU and not wall-clock time on other platforms.
1390
(John Arbash Meinel)
1392
* Several code paths that were calling ``Transport.get().read()`` have
1393
been changed to the equalivent ``Transport.get_bytes()``. The main
1394
difference is that the latter will explicitly call ``file.close()``,
1395
rather than expecting the garbage collector to handle it. This helps
1396
with some race conditions on Windows during the test suite and sftp
1397
tests. (John Arbash Meinel)
1402
* TestCaseWithMemoryTransport no longer sets $HOME and $BZR_HOME to
1403
unicode strings. (Michael Hudson, #464174)
1409
:Codename: little italy
1413
The third stable release of Bazaar has a small handful of bugfixes. As
1414
expected, this has no internal or external compatibility changes versus
1420
* ``bzr push --use-existing-dir`` no longer crashes if the directory
1421
exists but contains an invalid ``.bzr`` directory.
1422
(Andrew Bennetts, #423563)
1424
* Content filters are now applied correctly after pull, merge and switch.
1425
(Ian Clatworthy, #385879)
1427
* Fix a potential segfault in the groupcompress hash map handling code.
1428
When inserting new entries, if the final hash bucket was empty, we could
1429
end up trying to access if ``(last_entry+1)->ptr == NULL``.
1430
(John Arbash Meinel, #490228)
1432
* Improve "Binary files differ" hunk handling. (Aaron Bentley, #436325)
1438
:Codename: after sprint recovery
1439
:2.1.0b3: 2009-11-16
1441
This release was pushed up from its normal release cycle due to a
1442
regression in python 2.4 compatibility in 2.1.0b2. Since this regression
1443
was caught before 2.1.0b2 was officially announced, the full changelog
1444
includes both 2.1.0b3 and 2.1.0b2 changes.
1446
Highlights of 2.1.0b3 are: new globbing code for all commands on Windows,
1447
the test suite now conforms to python's trunk enhanced semantics (skip,
1448
etc.), and ``bzr info -v`` will now report the correct branch and repo
1449
formats for Remote objects.
1455
* Users can define a shelve editor to provide shelf functionality at a
1456
granularity finer than per-patch-hunk. (Aaron Bentley)
1461
* Fix for shell completion and short options. (Benoît PIERRE)
1463
* Fix ``bzr --profile-imports`` with Python 2.6. (Martin Pool)
1465
* Hooks daughter classes should always call the base constructor.
1466
(Alexander Belchenko, Vincent Ladeuil, #389648)
1468
* Improve "Binary files differ" hunk handling. (Aaron Bentley, #436325)
1470
* On Windows, do glob expansion at the command-line level (as is usually
1471
done in bash, etc.) This means that *all* commands get glob expansion
1472
(bzr status, bzr add, bzr mv, etc). It uses a custom command line
1473
parser, which allows us to know if a given section was quoted. It means
1474
you can now do ``bzr ignore "*.py"``.
1475
(John Arbash Meinel, #425510, #426410, #194450)
1477
* Sanitize commit messages that come in from the '-m' flag. We translate
1478
'\r\n' => '\n' and a plain '\r' => '\n'. The storage layer doesn't
1479
allow those because XML store silently translate it anyway. (The parser
1480
auto-translates \r\n => \n in ways that are hard for us to catch.)
1482
* Show correct branch and repository format descriptions in
1483
``bzr info -v`` on a smart server location. (Andrew Bennetts, #196080)
1485
* The fix for bug #186920 accidentally broke compatibility with python
1486
2.4. (Vincent Ladeuil, #475585)
1488
* Using ``Repository.get_commit_builder().record_iter_changes()`` now
1489
correctly sets ``self.inv_sha1`` to a sha1 string and
1490
``self.new_inventory`` to an Inventory instance after calling
1491
``self.finish_inventory()``. (Previously it accidently set both values
1492
as a tuple on ``self.inv_sha1``. This was missed because
1493
``repo.add_revision`` ignores the supplied inventory sha1 and recomputes
1494
the sha1 from the repo directly. (John Arbash Meinel)
1496
* Shelve command refuse to run if there is no real terminal.
1497
(Alexander Belchenko)
1499
* Avoid unnecessarily flushing of trace file; it's now unbuffered at the
1500
Python level. (Martin Pool)
1505
* Include Japanese translations for documentation (Inada Naoki)
1507
* New API ``ui_factory.make_output_stream`` to be used for sending bulk
1508
(rather than user-interaction) data to stdout. This automatically
1509
coordinates with progress bars or other terminal activity, and can be
1511
(Martin Pool, 493944)
1516
* Some of the core groupcompress functionality now releases the GIL before
1517
operation. Similar to how zlib and bz2 operate without the GIL in the
1518
core compression and decompression routines. (John Arbash Meinel)
1523
* -Dhpssvfs will now trigger on ``RemoteBzrDir._ensure_real``, providing
1524
more debugging of VFS access triggers. (Robert Collins)
1526
* KnownFailure is now signalled to ``ExtendedTestResult`` using the same
1527
method that Python 2.7 uses - ``addExpectedFailure``. (Robert Collins)
1529
* ``--parallel=fork`` is now compatible with --subunit.
1530
(Robert Collins, Vincent Ladeuil, #419776)
1532
* Reporting of failures shows test ids not descriptions and thus shows
1533
parameterised tests correctly. (Robert Collins)
1535
* TestNotApplicable is now handled within the TestCase.run method rather
1536
than being looked for within ``ExtendedTestResult.addError``. This
1537
provides better handling with other ``TestResult`` objects, degrading to
1538
sucess rather than error. (Robert Collins)
1540
* The private method ``_testConcluded`` on ``ExtendedTestResult`` has been
1541
removed - it was empty and unused. (Robert Collins)
1543
* UnavailableFeature is now handled within the TestCase.run method rather
1544
than being looked for within addError. If the Result object does not
1545
have an addNotSupported method, addSkip is attempted instead, and
1546
failing that addSuccess. (Robert Collins)
1548
* When a TestResult does not have an addSkip method, skipped tests are now
1549
reported as successful tests, rather than as errors. This change is
1550
to make it possible to get a clean test run with a less capable
1551
TestResult. (Robert Collins)
1558
:Codename: a load off my mind
1559
:2.1.0b2: 2009-11-02
1561
This is our second feature-filled release since 2.0, pushing us down the
1562
path to a 2.1.0. Once again, all bugfixes in 2.0.2 are present in 2.1.0b2.
1564
Key highlights in this release are: improved handling of
1565
failures-during-cleanup for commit, fixing a long-standing bug with
1566
``bzr+http`` and shared repositories, all ``lp:`` urls to be resolved
1567
behind proxies, and a new StaticTuple datatype, allowing us to reduce
1568
memory consumption (50%) and garbage collector overhead (40% faster) for
1571
* A new ``--concurrency`` option has been added as well as an associated
1572
BZR_CONCURRENCY environment variable to specify the number of
1573
processes that can be run concurrently when running ``bzr selftest``. The
1574
command-line option overrides the environment variable if both are
1575
specified. If none is specified. the number of processes is obtained
1576
from the OS as before. (Matt Nordhoff, Vincent Ladeuil)
1581
* ``bzr+http`` servers no longer give spurious jail break errors when
1582
serving branches inside a shared repository. (Andrew Bennetts, #348308)
1584
* Errors during commit are handled more robustly so that knock-on errors
1585
are less likely to occur, and will not obscure the original error if
1586
they do occur. This fixes some causes of ``TooManyConcurrentRequests``
1587
and similar errors. (Andrew Bennetts, #429747, #243391)
1589
* Launchpad urls can now be resolved from behind proxies.
1590
(Gordon Tyler, Vincent Ladeuil, #186920)
1592
* Reduce the strictness for StaticTuple, instead add a debug flag
1593
``-Dstatic_tuple`` which will change apis to be strict and raise errors.
1594
This way, most users won't see failures, but developers can improve
1595
internals. (John Arbash Meinel, #471193)
1597
* TreeTransform.adjust_path updates the limbo paths of descendants of adjusted
1598
files. (Aaron Bentley)
1600
* Unicode paths are now handled correctly and consistently by the smart
1601
server. (Andrew Bennetts, Michael Hudson, #458762)
1606
* When reading index files, we now use a ``StaticTuple`` rather than a
1607
plain ``tuple`` object. This generally gives a 20% decrease in peak
1608
memory, and can give a performance boost up to 40% on large projects.
1609
(John Arbash Meinel)
1611
* Peak memory under certain operations has been reduced significantly.
1612
(eg, 'bzr branch launchpad standalone' is cut in half)
1613
(John Arbash Meinel)
1618
* Filtered views user documentation upgraded to refer to format 2a
1619
instead of pre-2.0 formats. (Ian Clatworthy)
1624
* Remove deprecated ``CLIUIFactory``. (Martin Pool)
1626
* ``UIFactory`` now has new ``show_error``, ``show_message`` and
1627
``show_warning`` methods, which can be hooked by non-text UIs.
1633
* Added ``bzrlib._simple_set_pyx``. This is a hybrid between a Set and a
1634
Dict (it only holds keys, but you can lookup the object located at a
1635
given key). It has significantly reduced memory consumption versus the
1636
builtin objects (1/2 the size of Set, 1/3rd the size of Dict). This is
1637
used as the interning structure for StaticTuple objects.
1638
(John Arbash Meinel)
1640
* ``bzrlib._static_tuple_c.StaticTuple`` is now available and used by
1641
the btree index parser and the chk map parser. This class functions
1642
similarly to ``tuple`` objects. However, it can only point to a limited
1643
collection of types. (Currently StaticTuple, str, unicode, None, bool,
1644
int, long, float, but not subclasses). This allows us to remove it from
1645
the garbage collector (it cannot be in a cycle), it also allows us to
1646
intern the objects. In testing, this can reduce peak memory by 20-40%,
1647
and significantly improve performance by removing objects from being
1648
inspected by the garbage collector. (John Arbash Meinel)
1650
* ``GroupCompressBlock._ensure_content()`` will now release the
1651
``zlib.decompressobj()`` when the first request is for all of the
1652
content. (Previously it would only be released if you made a request for
1653
part of the content, and then all of it later.) This turns out to be a
1654
significant memory savings, as a ``zstream`` carries around approx 260kB
1655
of internal state and buffers. (For branching bzr.dev this drops peak
1656
memory from 382MB => 345MB.) (John Arbash Meinel)
1658
* When streaming content between ``2a`` format repositories, we now clear
1659
caches from earlier versioned files. (So 'revisions' is cleared when we
1660
start reading 'inventories', etc.) This can have a significant impact on
1661
peak memory for initial copies (~200MB). (John Arbash Meinel)
1667
:Codename: after the scare
1670
The second in our "let's keep the stable bugfixes flowing" series. As
1671
expected this has a few (~9) bugfixes relative to 2.0.1, and no major api
1672
changes or features.
1677
* Avoid "NoneType has no attribute st_mode" error when files disappear
1678
from a directory while it's being read. (Martin Pool, #446033)
1680
* Content filters are now applied correctly after revert.
1683
* Diff parsing handles "Binary files differ" hunks. (Aaron Bentley, #436325)
1685
* Fetching from stacked pre-2a repository via a smart server no longer
1686
fails intermittently with "second push failed to complete".
1687
(Andrew Bennetts, #437626)
1689
* Fix typos left after test_selftest refactoring.
1690
(Vincent Ladeuil, Matt Nordhoff, #461149)
1692
* Fixed ``ObjectNotLocked`` errors during ``bzr log -r NNN somefile``.
1693
(Andrew Bennetts, #445171)
1695
* PreviewTree file names are not limited by the encoding of the temp
1696
directory's filesystem. (Aaron Bentley, #436794)
1701
* ``bzr log`` now read-locks branches exactly once, so makes better use of
1702
data caches. (Andrew Bennetts)
1707
* Filtered views user documentation upgraded to refer to format 2a
1708
instead of pre-2.0 formats. (Ian Clatworthy)
1714
:Codename: While the cat is away
1715
:2.1.0b1: 2009-10-14
1717
This is the first development release in the new split "stable" and
1718
"development" series. As such, the release is a snapshot of bzr.dev
1719
without creating a release candidate first. This release includes a
1720
fair amount of internal changes, with deprecated code being removed,
1721
and several new feature developments. People looking for a stable code
1722
base with only bugfixes should focus on the 2.0.1 release. All bugfixes
1723
present in 2.0.1 are present in 2.1.0b1.
1725
Highlights include support for ``bzr+ssh://host/~/homedir`` style urls,
1726
finer control over the plugin search path via extended BZR_PLUGIN_PATH
1727
syntax, visible warnings when extension modules fail to load, and improved
1728
error handling during unlocking.
1734
* Bazaar can now send mail through Apple OS X Mail.app.
1737
* ``bzr+ssh`` and ``bzr`` paths can now be relative to home directories
1738
specified in the URL. Paths starting with a path segment of ``~`` are
1739
relative to the home directory of the user running the server, and paths
1740
starting with ``~user`` are relative to the home directory of the named
1741
user. For example, for a user "bob" with a home directory of
1742
``/home/bob``, these URLs are all equivalent:
1744
* ``bzr+ssh://bob@host/~/repo``
1745
* ``bzr+ssh://bob@host/~bob/repo``
1746
* ``bzr+ssh://bob@host/home/bob/repo``
1748
If ``bzr serve`` was invoked with a ``--directory`` argument, then no
1749
home directories outside that directory will be accessible via this
1752
This is a feature of ``bzr serve``, so pre-2.1 clients will
1753
automatically benefit from this feature when ``bzr`` on the server is
1754
upgraded. (Andrew Bennetts, #109143)
1756
* Extensions can now be compiled if either Cython or Pyrex is available.
1757
Currently Pyrex is preferred, but that may change in the future.
1760
* Give more control on BZR_PLUGIN_PATH by providing a way to refer to or
1761
disable the user, site and core plugin directories.
1762
(Vincent Ladeuil, #412930, #316192, #145612)
1767
* Bazaar's native protocol code now correctly handles EINTR, which most
1768
noticeably occurs if you break in to the debugger while connected to a
1769
bzr+ssh server. You can now can continue from the debugger (by typing
1770
'c') and the process continues. However, note that pressing C-\ in the
1771
shell may still kill the SSH process, which is bug 162509, so you must
1772
sent a signal to the bzr process specifically, for example by typing
1773
``kill -QUIT PID`` in another shell. (Martin Pool, #341535)
1775
* ``bzr add`` in a tree that has files with ``\r`` or ``\n`` in the
1776
filename will issue a warning and skip over those files.
1777
(Robert Collins, #3918)
1779
* ``bzr dpush`` now aborts if uncommitted changes (including pending merges)
1780
are present in the working tree. The configuration option ``dpush_strict``
1781
can be used to set the default for this behavior.
1782
(Vincent Ladeuil, #438158)
1784
* ``bzr merge`` and ``bzr remove-tree`` now requires --force if pending
1785
merges are present in the working tree.
1786
(Vincent Ladeuil, #426344)
1788
* Clearer message when Bazaar runs out of memory, instead of a ``MemoryError``
1789
traceback. (Martin Pool, #109115)
1791
* Don't give a warning on Windows when failing to import ``_readdir_pyx``
1792
as it is never built. (John Arbash Meinel, #430645)
1794
* Don't restrict the command name used to run the test suite.
1795
(Vincent Ladeuil, #419950)
1797
* ftp transports were built differently when the kerberos python module was
1798
present leading to obscure failures related to ASCII/BINARY modes.
1799
(Vincent Ladeuil, #443041)
1801
* Network streams now decode adjacent records of the same type into a
1802
single stream, reducing layering churn. (Robert Collins)
1804
* PreviewTree behaves correctly when get_file_mtime is invoked on an unmodified
1805
file. (Aaron Bentley, #251532)
1807
* Registry objects should not use iteritems() when asked to use items().
1808
(Vincent Ladeuil, #430510)
1810
* Weave based repositories couldn't be cloned when committers were using
1811
domains or user ids embedding '.sig'. Now they can.
1812
(Matthew Fuller, Vincent Ladeuil, #430868)
1817
* Revision specifiers can now be given in a more DWIM form, without
1818
needing explicit prefixes for specifiers like tags or revision id's.
1819
See ``bzr help revisionspec`` for full details. (Matthew Fuller)
1821
* Bazaar gives a warning before exiting, and writes into ``.bzr.log``, if
1822
compiled extensions can't be loaded. This typically indicates a
1823
packaging or installation problem. In this case Bazaar will keep
1824
running using pure-Python versions, but this may be substantially
1825
slower. The warning can be disabled by setting
1826
``ignore_missing_extensions = True`` in ``bazaar.conf``.
1827
See also <https://answers.launchpad.net/bzr/+faq/703>.
1828
(Martin Pool, #406113, #430529)
1830
* Secondary errors that occur during Branch.unlock and Repository.unlock
1831
no longer obscure the original error. These methods now use a new
1832
decorator, ``only_raises``. This fixes many causes of
1833
``TooManyConcurrentRequests`` and similar errors.
1834
(Andrew Bennetts, #429747)
1839
* Describe the new shell-like test feature. (Vincent Ladeuil)
1841
* Help on hooks no longer says 'Not deprecated' for hooks that are
1842
currently supported. (Ian Clatworthy, #422415)
1847
* ``bzrlib.user_encoding`` has been removed; use
1848
``bzrlib.osutils.get_user_encoding`` instead. (Martin Pool)
1850
* ``bzrlib.tests`` now uses ``stopTestRun`` for its ``TestResult``
1851
subclasses - the same as python's unittest module. (Robert Collins)
1853
* ``diff._get_trees_to_diff`` has been renamed to
1854
``diff.get_trees_and_branches_to_diff``. It is now a public API, and it
1855
returns the old and new branches. (Gary van der Merwe)
1857
* ``bzrlib.trace.log_error``, ``error`` and ``info`` have been deprecated.
1860
* ``MutableTree.has_changes()`` does not require a tree parameter anymore. It
1861
now defaults to comparing to the basis tree. It now checks for pending
1862
merges too. ``Merger.check_basis`` has been deprecated and replaced by the
1863
corresponding has_changes() calls. ``Merge.compare_basis``,
1864
``Merger.file_revisions`` and ``Merger.ensure_revision_trees`` have also
1866
(Vincent Ladeuil, #440631)
1868
* ``ProgressTask.note`` is deprecated.
1874
* Added ``-Drelock`` debug flag. It will ``note`` a message every time a
1875
repository or branch object is unlocked then relocked the same way.
1878
* ``BTreeLeafParser.extract_key`` has been tweaked slightly to reduce
1879
mallocs while parsing the index (approx 3=>1 mallocs per key read).
1880
This results in a 10% speedup while reading an index.
1881
(John Arbash Meinel)
1883
* The ``bzrlib.lsprof`` module has a new class ``BzrProfiler`` which makes
1884
profiling in some situations like callbacks and generators easier.
1890
* Passing ``--lsprof-tests -v`` to bzr selftest will cause lsprof output to
1891
be output for every test. Note that this is very verbose! (Robert Collins)
1893
* Setting ``BZR_TEST_PDB=1`` when running selftest will cause a pdb
1894
post_mortem to be triggered when a test failure occurs. (Robert Collins)
1896
* Shell-like tests can now be written. Code in ``bzrlib/tests/script.py`` ,
1897
documentation in ``developers/testing.txt`` for details.
1900
* Some tests could end up with the same id, that was dormant for
1902
(Vincent Ladeuil, #442980)
1904
* Stop showing the number of tests due to missing features in the test
1905
progress bar. (Martin Pool)
1907
* Test parameterisation now does a shallow copy, not a deep copy of the test
1908
to be parameterised. This is not expected to break external use of test
1909
parameterisation, and is substantially faster. (Robert Collins)
1911
* Tests that try to open a bzr dir on an arbitrary transport will now
1912
fail unless they have explicitly permitted the transport via
1913
``self.permit_url``. The standard test factories such as ``self.get_url``
1914
will permit the urls they provide automatically, so only exceptional
1915
tests should need to do this. (Robert Collins)
1917
* The break-in test no longer cares about clean shutdown of the child,
1918
instead it is happy if the debugger starts up. (Robert Collins)
1920
* The full test suite is expected to pass when the C extensions are not
1921
present. (Vincent Ladeuil, #430749)
1927
:Codename: Stability First
1930
The first of our new ongoing bugfix-only stable releases has arrived. It
1931
includes a collection of 12 bugfixes applied to bzr 2.0.0, but does not
1932
include any of the feature development in the 2.1.0 series.
1938
* ``bzr add`` in a tree that has files with ``\r`` or ``\n`` in the
1939
filename will issue a warning and skip over those files.
1940
(Robert Collins, #3918)
1942
* bzr will attempt to authenticate with SSH servers that support
1943
``keyboard-interactive`` auth but not ``password`` auth when using
1944
Paramiko. (Andrew Bennetts, #433846)
1946
* Fixed fetches from a stacked branch on a smart server that were failing
1947
with some combinations of remote and local formats. This was causing
1948
"unknown object type identifier 60" errors. (Andrew Bennetts, #427736)
1950
* Fixed ``ObjectNotLocked`` errors when doing some log and diff operations
1951
on branches via a smart server. (Andrew Bennetts, #389413)
1953
* Handle things like ``bzr add foo`` and ``bzr rm foo`` when the tree is
1954
at the root of a drive. ``osutils._cicp_canonical_relpath`` always
1955
assumed that ``abspath()`` returned a path that did not have a trailing
1956
``/``, but that is not true when working at the root of the filesystem.
1957
(John Arbash Meinel, Jason Spashett, #322807)
1959
* Hide deprecation warnings for 'final' releases for python2.6.
1960
(John Arbash Meinel, #440062)
1962
* Improve the time for ``bzr log DIR`` for 2a format repositories.
1963
We had been using the same code path as for <2a formats, which required
1964
iterating over all objects in all revisions.
1965
(John Arbash Meinel, #374730)
1967
* Make sure that we unlock the tree if we fail to create a TreeTransform
1968
object when doing a merge, and there is limbo, or pending-deletions
1969
directory. (Gary van der Merwe, #427773)
1971
* Occasional IndexError on renamed files have been fixed. Operations that
1972
set a full inventory in the working tree will now go via the
1973
apply_inventory_delta code path which is simpler and easier to
1974
understand than dirstates set_state_from_inventory method. This may
1975
have a small performance impact on operations built on _write_inventory,
1976
but such operations are already doing full tree scans, so no radical
1977
performance change should be observed. (Robert Collins, #403322)
1979
* Retrieving file text or mtime from a _PreviewTree has good performance when
1980
there are many changes. (Aaron Bentley)
1982
* The CHK index pages now use an unlimited cache size. With a limited
1983
cache and a large project, the random access of chk pages could cause us
1984
to download the entire cix file many times.
1985
(John Arbash Meinel, #402623)
1987
* When a file kind becomes unversionable after being added, a sensible
1988
error will be shown instead of a traceback. (Robert Collins, #438569)
1993
* Improved README. (Ian Clatworthy)
1995
* Improved upgrade documentation for Launchpad branches.
2003
:Codename: Instant Karma
2005
This release of Bazaar makes the 2a (previously 'brisbane-core') format
2006
the default when new branches or repositories are created. This format is
2007
substantially smaller and faster for many operations. Most of the work in
2008
this release focuses on bug fixes and stabilization, covering both 2a and
2009
previous formats. (See the Upgrade Guide for information on migrating
2012
This release also improves the documentation content and presentation,
2013
including adding Windows HtmlHelp manuals.
2015
The Bazaar team decided that 2.0 will be a long-term supported release,
2016
with bugfix-only 2.0.x releases based on it, continuing for at least six
2017
months or until the following stable release.
2019
Changes from 2.0.0rc2 to final
2020
******************************
2022
* Officially branded as 2.0.0 rather than 2.0 to clarify between things
2023
that "want to happen on the 2.0.x stable series" versus things that want
2024
to "land in 2.0.0". (Changes how bzrlib._format_version_tuple() handles
2025
micro = 0.) (John Arbash Meinel)
2031
:2.0.0rc2: 2009-09-10
2036
* Added post_commit hook for mutable trees. This allows the keywords
2037
plugin to expand keywords on files changed by the commit.
2038
(Ian Clatworthy, #408841)
2043
* Bazaar's native protocol code now correctly handles EINTR, which most
2044
noticeably occurs if you break in to the debugger while connected to a
2045
bzr+ssh server. You can now can continue from the debugger (by typing
2046
'c') and the process continues. However, note that pressing C-\ in the
2047
shell may still kill the SSH process, which is bug 162509, so you must
2048
sent a signal to the bzr process specifically, for example by typing
2049
``kill -QUIT PID`` in another shell. (Martin Pool, #341535)
2051
* ``bzr check`` in pack-0.92, 1.6 and 1.9 format repositories will no
2052
longer report incorrect errors about ``Missing inventory ('TREE_ROOT', ...)``
2053
(Robert Collins, #416732)
2055
* ``bzr info -v`` on a 2a format still claimed that it was a "Development
2056
format" (John Arbash Meinel, #424392)
2058
* ``bzr log stacked-branch`` shows the full log including
2059
revisions that are in the fallback repository. (Regressed in 2.0rc1).
2060
(John Arbash Meinel, #419241)
2062
* Clearer message when Bazaar runs out of memory, instead of a ``MemoryError``
2063
traceback. (Martin Pool, #109115)
2065
* Conversion to 2a will create a single pack for all the new revisions (as
2066
long as it ran without interruption). This improves both ``bzr upgrade``
2067
and ``bzr pull`` or ``bzr merge`` from local branches in older formats.
2068
The autopack logic that occurs every 100 revisions during local
2069
conversions was not returning that pack's identifier, which resulted in
2070
the partial packs created during the conversion not being consolidated
2071
at the end of the conversion process. (Robert Collins, #423818)
2073
* Fetches from 2a to 2a are now again requested in 'groupcompress' order.
2074
Groups that are seen as 'underutilized' will be repacked on-the-fly.
2075
This means that when the source is fully packed, there is minimal
2076
overhead during the fetch, but if the source is poorly packed the result
2077
is a fairly well packed repository (not as good as 'bzr pack' but
2078
good-enough.) (Robert Collins, John Arbash Meinel, #402652)
2080
* Fix a potential segmentation fault when doing 'log' of a branch that had
2081
ghosts in its mainline. (Evaluating None as a tuple is bad.)
2082
(John Arbash Meinel, #419241)
2084
* ``groupcompress`` sort order is now more stable, rather than relying on
2085
``topo_sort`` ordering. The implementation is now
2086
``KnownGraph.gc_sort``. (John Arbash Meinel)
2088
* Local data conversion will generate correct deltas. This is a critical
2089
bugfix vs 2.0rc1, and all 2.0rc1 users should upgrade to 2.0rc2 before
2090
converting repositories. (Robert Collins, #422849)
2092
* Network streams now decode adjacent records of the same type into a
2093
single stream, reducing layering churn. (Robert Collins)
2095
* Prevent some kinds of incomplete data from being committed to a 2a
2096
repository, such as revisions without inventories, a missing chk_bytes
2097
record for an inventory, or a missing text referenced by an inventory.
2098
(Andrew Bennetts, #423506, #406687)
2103
* Fix assertion error about "_remember_remote_is_before" when pushing to
2104
older smart servers.
2105
(Andrew Bennetts, #418931)
2107
* Help on hooks no longer says 'Not deprecated' for hooks that are
2108
currently supported. (Ian Clatworthy, #422415)
2110
* PDF and CHM (Windows HtmlHelp) formats are now supported for the
2111
user documentation. The HTML documentation is better broken up into
2112
topics. (Ian Clatworthy)
2114
* The developer and foreign language documents are now separated
2115
out so that searching in the HTML and CHM files produces more
2116
useful results. (Ian Clatworthy)
2118
* The main table of contents now provides links to the new Migration Docs
2119
and Plugins Guide. (Ian Clatworthy)
2125
:Codename: no worries
2126
:2.0.0rc1: 2009-08-26
2128
Compatibility Breaks
2129
********************
2131
* The default format for bzr is now ``2a``. This format brings many
2132
significant performance and size improvements. bzr can pull from
2133
any existing repository into a ``2a`` one, but can only transfer
2134
from ``2a`` into ``rich-root`` repositories. The Upgrade guide
2135
has more information about this change. (Robert Collins)
2137
* On Windows auto-detection of Putty's plink.exe is disabled.
2138
Default SSH client for Windows is paramiko. User still can force
2139
usage of plink if explicitly set environment variable BZR_SSH=plink.
2140
(#414743, Alexander Belchenko)
2145
* ``bzr branch --switch`` can now switch the checkout in the current directory
2146
to the newly created branch. (Lukáš Lalinský)
2151
* Further tweaks to handling of ``bzr add`` messages about ignored files.
2152
(Jason Spashett, #76616)
2154
* Fetches were being requested in 'groupcompress' order, but weren't
2155
recombining the groups. Thus they would 'fragment' to get the correct
2156
order, but not 'recombine' to actually benefit from it. Until we get
2157
recombining to work, switching to 'unordered' fetches avoids the
2158
fragmentation. (John Arbash Meinel, #402645)
2160
* Fix a pycurl related test failure on karmic by recognizing an error
2161
raised by newer versions of pycurl.
2162
(Vincent Ladeuil, #306264)
2164
* Fix a test failure on karmic by making a locale test more robust.
2165
(Vincent Ladeuil, #413514)
2167
* Fix IndexError printing CannotBindAddress errors.
2168
(Martin Pool, #286871)
2170
* Fix "Revision ... not present" errors when upgrading stacked branches,
2171
or when doing fetches from a stacked source to a stacked target.
2172
(Andrew Bennetts, #399140)
2174
* ``bzr branch`` of 2a repositories over HTTP is much faster. bzr now
2175
batches together small fetches from 2a repositories, rather than
2176
fetching only a few hundred bytes at a time.
2177
(Andrew Bennetts, #402657)
2182
* A better description of the platform is shown in crash tracebacks, ``bzr
2183
--version`` and ``bzr selftest``.
2184
(Martin Pool, #409137)
2186
* bzr can now (again) capture crash data through the apport library,
2187
so that a single human-readable file can be attached to bug reports.
2188
This can be disabled by using ``-Dno_apport`` on the command line, or by
2189
putting ``no_apport`` into the ``debug_flags`` section of
2191
(Martin Pool, Robert Collins, #389328)
2193
* ``bzr push`` locally on windows will no longer give a locking error with
2194
dirstate based formats. (Robert Collins)
2196
* ``bzr shelve`` and ``bzr unshelve`` now work on windows.
2197
(Robert Collins, #305006)
2199
* Commit of specific files no longer prevents using the iter_changes
2200
codepath. On 2a repositories, commit of specific files should now be as
2201
fast, or slightly faster, than a full commit. (Robert Collins)
2203
* The internal core code that handles specific file operations like
2204
``bzr st FILENAME`` or ``bzr commit FILENAME`` has been changed to
2205
include the parent directories if they have altered, and when a
2206
directory stops being a directory its children are always included. This
2207
fixes a number of causes for ``InconsistentDelta`` errors, and permits
2208
faster commit of specific paths. (Robert Collins, #347649)
2213
* New developer documentation for content filtering.
2219
* ``bzrlib.shelf_ui`` has had the ``from_args`` convenience methods of its
2220
classes changed to manage lock lifetime of the trees they open in a way
2221
consistent with reader-exclusive locks. (Robert Collins, #305006)
2229
:Codename: nein nein nein!
2232
This release fixes two small but worthwhile bugs relevant to users on
2233
Microsoft Windows: some commands that failed on with locking errors will
2234
now work, and a bug that caused poor performance after committing a file
2235
with line-ending conversion has now been fixed. It also fixes a bug in
2236
pushing to older servers.
2241
* Fixed a problem where using content filtering and especially end-of-line
2242
conversion will commit too many copies a file.
2243
(Martin Pool, #415508)
2245
* Fix assertion error about ``_remember_remote_is_before`` in
2246
``set_tags_bytes`` when pushing to older smart servers.
2247
(Andrew Bennetts, Alexander Belchenko, #418931)
2252
* ``bzr push`` locally on Windows will no longer give a locking error with
2253
dirstate based formats. (Robert Collins)
2255
* ``bzr shelve`` and ``bzr unshelve`` now work on Windows.
2256
(Robert Collins, #305006)
2261
* ``bzrlib.shelf_ui`` has had the ``from_args`` convenience methods of its
2262
classes changed to manage lock lifetime of the trees they open in a way
2263
consistent with reader-exclusive locks. (Robert Collins, #305006)
2265
* ``Tree.path_content_summary`` may return a size of None, when called on
2266
a tree with content filtering where the size of the canonical form
2267
cannot be cheaply determined. (Martin Pool)
2269
* When manually creating transport servers in test cases, a new helper
2270
``TestCase.start_server`` that registers a cleanup and starts the server
2271
should be used. (Robert Collins)
2276
Compatibility Breaks
2277
********************
2279
* Committing directly to a stacked branch from a lightweight checkout will
2280
no longer work. In previous versions this would appear to work but would
2281
generate repositories with insufficient data to create deltas, leading
2282
to later errors when branching or reading from the repository.
2283
(Robert Collins, bug #375013)
2291
* Fetching from 2a branches from a version-2 bzr protocol would fail to
2292
copy the internal inventory pages from the CHK store. This cannot happen
2293
in normal use as all 2a compatible clients and servers support the
2294
version-3 protocol, but it does cause test suite failures when testing
2295
downlevel protocol behaviour. (Robert Collins)
2297
* Fix a test failure on karmic by making a locale test more robust.
2298
(Vincent Ladeuil, #413514)
2300
* Fixed "Pack ... already exists" error when running ``bzr pack`` on a
2301
fully packed 2a repository. (Andrew Bennetts, #382463)
2303
* Further tweaks to handling of ``bzr add`` messages about ignored files.
2304
(Jason Spashett, #76616)
2306
* Properly handle fetching into a stacked branch while converting the
2307
data, especially when there are also ghosts. The code was filling in
2308
parent inventories incorrectly, and also not handling when one of the
2309
parents was a ghost. (John Arbash Meinel, #402778, #412198)
2311
* ``RemoteStreamSource.get_stream_for_missing_keys`` will fetch CHK
2312
inventory pages when appropriate (by falling back to the vfs stream
2313
source). (Andrew Bennetts, #406686)
2315
* StreamSource generates rich roots from non-rich root sources correctly
2316
now. (Andrew Bennetts, #368921)
2318
* When deciding whether a repository was compatible for upgrading or
2319
fetching, we previously incorrectly checked the default repository
2320
format for the bzrdir format, rather than the format that was actually
2321
present on disk. (Martin Pool, #408824)
2326
* A better description of the platform is shown in crash tracebacks, ``bzr
2327
--version`` and ``bzr selftest``.
2328
(Martin Pool, #409137)
2330
* Cross-format fetches (such as between 1.9-rich-root and 2a) via the
2331
smart server are more efficient now. They send inventory deltas rather
2332
than full inventories. The smart server has two new requests,
2333
``Repository.get_stream_1.19`` and ``Repository.insert_stream_1.19`` to
2334
support this. (Andrew Bennetts, #374738, #385826)
2336
* Extracting the full ancestry and computing the ``merge_sort`` is now
2337
significantly faster. This effects things like ``bzr log -n0``. (For
2338
example, ``bzr log -r -10..-1 -n0 bzr.dev`` is 2.5s down to 1.0s.
2339
(John Arbash Meinel)
2350
* ``-Dstrict_locks`` can now be used to check that read and write locks
2351
are treated properly w.r.t. exclusivity. (We don't try to take an OS
2352
read lock on a file that we already have an OS write lock on.) This is
2353
now set by default for all tests, if you have a test which cannot be
2354
fixed, you can use ``self.thisFailsStrictLockCheck()`` as a
2355
compatibility knob. (John Arbash Meinel)
2357
* InterDifferingSerializer is now only used locally. Other fetches that
2358
would have used InterDifferingSerializer now use the more network
2359
friendly StreamSource, which now automatically does the same
2360
transformations as InterDifferingSerializer. (Andrew Bennetts)
2362
* ``KnownGraph`` now has a ``.topo_sort`` and ``.merge_sort`` member which
2363
are implemented in pyrex and significantly faster. This is exposed along
2364
with ``CombinedGraphIndex.find_ancestry()`` as
2365
``VersionedFiles.get_known_graph_ancestry(keys)``.
2366
(John Arbash Meinel)
2368
* RemoteBranch.open now honours ignore_fallbacks correctly on bzr-v2
2369
protocols. (Robert Collins)
2371
* The index code now has some specialized routines to extract the full
2372
ancestry of a key in a more efficient manner.
2373
``CombinedGraphIndex.find_ancestry()``. (Time to get ancestry for
2374
bzr.dev drops from 1.5s down to 300ms. For OOo from 33s => 10.5s) (John
2380
* Install the test ssl certificate and key so that installed bzr
2381
can run the https tests. (Denys Duchier, #392401)
2387
:Codename: little traveller
2389
:1.18rc1: 2009-08-10
2391
This release of Bazaar marches on towards the 2.0 release in which the 2a
2392
'brisbane-core' format becomes generally recommended. Most of the work in
2393
this release now focusses on bug fixes and stabilization, covering both 2a
2394
and previous formats. There is a new text-mode interactive merge feature,
2395
a new guide to migration to 2a format in the user documentation, and
2396
pushing branches to a smart server is now much faster.
2398
The Bazaar team decided that 2.0 will be a long-term supported release,
2399
with bugfix-only releases based on it continuing for at least six months
2400
or until the following stable release.
2402
There are no changes from 1.18rc1 to 1.18.
2407
* ``bzr merge --interactive`` applies a user-selected portion of the
2408
merge. The UI is similar to ``shelve``. (Aaron Bentley)
2410
* ``bzr reconfigure`` now takes options ``--stacked-on URL`` and
2411
``--unstacked`` to change stacking of a branch.
2412
(Martin Pool, #391411)
2417
* Annotating on a stacked branch will now succeed in simple scenarios.
2418
There are still some complex scenarios where it will fail (bug #399884)
2419
(John Arbash Meinel, #393366)
2421
* A progress bar is no longer left dangling when ``bzr selftest``
2422
completes, and the progress bar updates with zero latency so the
2423
displayed test name is always the one that's actually running.
2424
(Martin Pool, #123688)
2426
* Authenticating against an ssh server now uses ``auth_none`` to determine
2427
if password authentication is even supported. This fixes a bug where
2428
users would be prompted for a launchpad password, even though launchpad
2429
only supports publickey authentication. (John Arbash Meinel, #375867)
2431
* BranchBuilder now accepts timezone to avoid test failures in countries far
2432
from GMT. (Vincent Ladeuil, #397716)
2434
* ``bzr commit`` no longer saves the unversioning of missing files until
2435
the commit has completed on the branch. This means that aborting a
2436
commit that found a missing file will leave the tree unedited.
2437
(Robert Collins, #282402)
2439
* ``bzr mv`` no longer takes out branch locks, which allows it to work
2440
when the branch is readonly. (Robert Collins, #216541)
2442
* ``bzr revert .`` no longer generates an InconsistentDelta error when
2443
there are missing subtrees. (Robert Collins, #367632)
2445
* ``bzr send`` now generates valid bundles with ``--2a`` formats. However,
2446
do to internal changes necessary to support this, older clients will
2447
fail when trying to insert them. For newer clients, the bundle can be
2448
used to apply the changes to any rich-root compatible format.
2449
(John Arbash Meinel, #393349)
2451
* Cope with FTP servers that don't support restart/append by falling back
2452
to reading and then rewriting the whole file, such as TahoeLAFS. (This
2453
fallback may be slow for some access patterns.) (Nils Durner, #294709)
2455
* Encode the paths in ``mbcs`` encoding on Windows when spawning an
2456
external diff client. This at least allows supporting filenames that are
2457
not ascii, but are present in the current locale. Ideally we would be
2458
able to pass the Unicode path, but that would be client dependent.
2459
(John Arbash Meinel, #382709)
2461
* Fix a compile bug on Solaris having to do with const and
2462
pointer-to-pointers. (John Arbash Meinel, #408441)
2464
* Fixed a NameError that occurs when merging or pulling from a URL that
2465
causes a redirection loop when bzr tries to read a URL as a bundle.
2466
(Andrew Bennetts, #400847)
2468
* Fix ``AttributeError: 'TestUIFactory' object has no attribute 'tick'``
2469
running send and similar commands on 2a formats.
2470
(Martin Pool, #408201)
2472
* Fix crash in some invocations of ``bzr status`` in format 2a.
2473
(Martin Pool, #403523)
2475
* Fixed export to existing directory: if directory is empty then export
2476
will succeed, otherwise it fails with error.
2477
(Alexander Belchenko, #406174)
2479
* Fixed spurious "Source branch does not support stacking" warning when
2480
pushing. (Andrew Bennetts, #388908)
2482
* Fixed spurious transport activity indicator appearing while tests are
2483
running. (Martin Pool, #343532)
2485
* Merge now correctly handles empty right-hand revision specs.
2486
(Aaron Bentley, #333961)
2488
* Renames to lexographically lower basenames in trees that have never been
2489
committed to will no longer corrupt the dirstate. This was caused by an
2490
bug in the dirstate update_minimal method. (Robert Collins, #395556)
2492
* Requests for unknown methods no longer cause the smart server to log
2493
lots of backtraces about ``UnknownSmartMethod``, ``do_chunk`` or
2494
``do_end``. (Andrew Bennetts, #338561)
2496
* Shelve will not shelve the initial add of the tree root. (Aaron Bentley)
2498
* Streaming from bzr servers where there is a chain of stacked branches
2499
(A stacked on B stacked on C) will now work. (Robert Collins, #406597)
2501
* The environment variable ``BZR_PROGRESS_BAR`` set to either ``text`` or ``none``
2502
always forces progress bars either on or off respectively. Otherwise,
2503
they're turned on if ``TERM`` is not ``dumb`` and stderr is a terminal.
2504
bzr always uses the 'text' user interface when run as a command, so
2505
``BZR_USE_TEXT_UI`` is no longer needed.
2506
(Martin Pool, #339385, #387717)
2508
* The optional ``_knit_load_data_pyx`` C extension was never being
2509
imported. This caused significant slowdowns when reading data from
2510
repositories. (Andrew Bennetts, #405653)
2512
* The ``--hardlink`` option to ``branch`` and ``checkout`` is not
2513
supported at the moment on workingtree formats that can do content
2514
filtering. (See <https://bugs.edge.launchpad.net/bzr/+bug/408193>.)
2515
bzr now says so, rather than just ignoring the option. (Martin Pool)
2517
* There was a bug in ``osutils.relpath`` that was only triggered on
2518
Windows. Essentially if you were at the root of a drive, and did
2519
something to a branch/repo on another drive, we would go into an
2520
infinite loop while trying to find a 'relative path'.
2521
(John Arbash Meinel, #394227)
2523
* ``WorkingTree4.unversion`` will no longer fail to unversion ids which
2524
were present in a parent tree but renamed in the working tree.
2525
(Robert Collins, #187207)
2530
* Can now rename/move files even if they have been removed from the inventory.
2533
* Pushing branches with tags via ``bzr://`` and ``bzr+ssh://`` is much
2534
faster, using a new ``Branch.set_tags_bytes`` smart server verb rather
2535
than VFS methods. For example, pushes of small branches with tags take
2536
11 rather than 18 smart server requests. (Andrew Bennetts, #398608)
2538
* Sending Ctrl-Break on Windows will now drop you into the debugger, in
2539
the same way that sending Ctrl-\\ does on other platforms.
2540
(John Arbash Meinel)
2545
* Added Bazaar 2.0 Upgrade Guide. (Ian Clatworthy)
2550
* ``CLIUIFactory`` is deprecated; use ``TextUIFactory`` instead if you
2551
need to subclass or create a specific class, or better yet the existing
2552
``make_ui_for_terminal``. ``SilentUIFactory`` is clarified to do no
2553
user interaction at all, rather than trying to read from stdin but not
2554
writing any output, which would be strange if reading prompts or
2555
passwords. (Martin Pool)
2557
* New TransformPreview.commit() allows committing without a working tree.
2560
* ``pb`` parameter to ``TextTestResult`` is deprecated and ignored.
2563
* ProgressTasks now prefer to talk direct to their ProgressView not to the
2567
* ``WorkingTree._check`` now requires a references dict with keys matching
2568
those returned by ``WorkingTree._get_check_refs``. (Robert Collins)
2573
* ``CHKInventory.path2id`` uses the parent_id to basename hash to avoid
2574
reading the entries along the path, reducing work to lookup ids from
2575
paths. (Robert Collins)
2577
* ``CHKMap.apply_delta`` now raises ``InconsistentDelta`` if a delta adds
2578
as new a key which was already mapped. (Robert Collins)
2580
* Inventory delta application catches more cases of corruption and can
2581
prevent corrupt deltas from affecting consistency of data structures on
2582
disk. (Robert Collins)
2584
* --subunit support now adds timestamps if the subunit version supports
2585
it. (Robert Collins)
2587
* The Windows all-in-one installer now bundles the PyQt image format
2588
plugins, which allows previewing more images as part of 'qdiff'.
2589
(Alexander Belchenko)
2595
* Merge directive cherrypick tests must use the same root id.
2596
(Martin Pool, #409684)
2598
* Spurious failure in ``check`` tests on rich-root formats fixed.
2599
(Martin Pool, #408199)
2601
* The ``bzrlib.tests.TextTestRunner`` will no longer call
2602
``countTestsCases`` on the test being run. Progress information is
2603
instead handled by having the test passed in call ``result.progress``
2604
before running its contents. This improves the behaviour when using
2605
``TextTestRunner`` with test suites that don't support
2606
``countTestsCases``. (Robert Collins)
2609
bzr 1.17.1 (unreleased)
2610
#######################
2615
* The optional ``_knit_load_data_pyx`` C extension was never being
2616
imported. This caused significant slowdowns when reading data from
2617
knit format repositories. (Andrew Bennetts, #405653)
2622
:Codename: so-late-its-brunch
2623
:1.17rc1: 2009-07-13
2627
Bazaar continues to blaze a straight and shining path to the 2.0 release and
2628
the elevation of the ``2a`` beta format to the full glory of "supported and
2631
Highlights in this release include greatly reduced memory consumption during
2632
commits, faster ``ls``, faster ``annotate``, faster network operations if
2633
you're specifying a revision number and the final destruction of those
2634
annoying progress bar artifacts.
2637
Changes from 1.17rc1 to 1.17final
2638
*********************************
2640
* Change an extension to call the python ``frozenset()`` rather than the C
2641
api ``PyFrozenSet_New``. It turns out that python2.4 did not expose the
2642
C api. (John Arbash Meinel, #399366)
2644
* Fixes for the Makefile and the rename of ``generate_docs.py`` to
2645
``tools/generate_docs.py`` to allow everything to be built on Windows.
2646
(John Arbash Meinel, #399356)
2648
* ``bzr serve`` once again applies a ``ChrootServer`` to the given
2649
directory before serving it. (Andrew Bennetts, #400535)
2652
Compatibility Breaks
2653
********************
2655
* ``bzr register-branch`` from the Launchpad plugin now refers to "project"
2656
instead of "product" which is the correct Launchpad terminology. The
2657
--product option is deprecated and users should switch to using --project.
2658
(Neil Martinsen-Burrell, #238764)
2664
* ``bzr push`` now aborts if uncommitted changes (including pending merges)
2665
are present in the working tree (if one is present) and no revision is
2666
specified. The configuration option ``push_strict`` can be used to set the
2667
default for this behavior. (Vincent Ladeuil, #284038, #322808, #65286)
2669
* ``bzr revno`` and ``bzr revision-info`` now have a ``--tree`` option to
2670
show revision info for the working tree instead of the branch.
2671
(Matthew Fuller, John Arbash Meinel)
2673
* ``bzr send`` now aborts if uncommitted changes (including pending merges)
2674
are present in the working tree and no revision is specified. The
2675
configuration option ``send_strict`` can be used to set the default for this
2677
(Vincent Ladeuil, #206577)
2679
* ``bzr switch --create-branch/-b`` can now be used to create and switch
2680
to a new branch. Supplying a name without a ``/`` will create the branch
2681
relative to the existing branch. (similar to how ``bzr switch name``
2682
works when the branch already exists.) (John Arbash Meinel)
2688
* Accept uppercase "Y/N" to prompts such as from break lock.
2689
(#335182, Tim Powell, Martin Pool)
2691
* Add documentation about diverged branches and how to fix them in the
2692
centralized workflow with local commits. Mention ``bzr help
2693
diverged-branches`` when a push fails because the branches have
2694
diverged. (Neil Martinsen-Burrell, #269477)
2696
* Annotate would sometimes 'latch on' to trivial lines, causing important
2697
lines to be incorrectly annotated. (John Arbash Meinel, #387952)
2699
* Automatic format upgrades triggered by default stacking policies on a
2700
1.16rc1 (or later) smart server work again.
2701
(Andrew Bennetts, #388675)
2703
* Avoid progress bar artifacts being left behind on the screen.
2704
(Martin Pool, #321935)
2706
* Better message in ``bzr split`` error suggesting a rich root format.
2707
(Neil Martinsen-Burrell, #220067)
2709
* ``Branch.set_append_revisions_only`` now works with branches on a smart
2710
server. (Andrew Bennetts, #365865)
2712
* By default, ``bzr branch`` will fail if the target directory exists, but
2713
does not already have a control directory. The flag ``--use-existing-dir``
2714
will allow operation to proceed. (Alexander Belchenko, #307554)
2716
* ``bzr ls DIR --from-root`` now shows only things in DIR, not everything.
2719
* Fetch between repositories does not error if they have inconsistent data
2720
that should be irrelevant to the fetch operation. (Aaron Bentley)
2722
* Fix ``AttributeError`` exception when reconfiguring lightweight checkout
2723
of a remote repository.
2724
(Jelmer Vernooij, #332194)
2726
* Fix bug in decoding v3 smart server messages when receiving multiple
2727
lots of excess bytes after an end-of-message.
2730
* Force deletion of readonly files during merge, update and other tree
2732
(Craig Hewetson, Martin Pool, #218206)
2734
* Force socket shutdown in threaded http test servers to avoid client hangs
2735
(pycurl). (Vincent Ladeuil, #383920).
2737
* ``LRUCache`` will maintain the linked list pointers even if a nodes
2738
cleanup function raises an exception. (John Arbash Meinel, #396838)
2740
* Progress bars are now suppressed again when the environment variable
2741
``BZR_PROGRESS_BAR`` is set to ``none``.
2742
(Martin Pool, #339385)
2744
* Reduced memory consumption during ``bzr commit`` of large files. For
2745
pre 2a formats, should be down to ~3x the size of a file.
2746
For ``--2a`` format repositories, it is down to the size of the file
2747
content plus the size of the compressed text. Related to bug #109114.
2748
(John Arbash Meinel)
2750
* Set hidden attribute on .bzr directory below unicode path should never
2751
fail with error. The operation should succeed even if bzr unable to set
2752
the attribute. (Alexander Belchenko, related to bug #335362).
2754
* Stacking will no longer accept requests to stack on the same
2755
branch/repository. Existing branches that incorrectly reference the same
2756
repository in a stacking configuration will now raise
2757
UnstackableLocationError when the branch is opened. This can be fixed by
2758
removing the stacking location inside ``.bzr/branch``.
2759
(Robert Collins, #376243)
2761
* The ``log+`` decorator, useful in debugging or profiling, could cause
2762
"AttributeError: 'list' object has no attribute 'next'". This is now
2763
fixed. The log decorator no longer shows the elapsed time or transfer
2764
rate because they're available in the log prefixes and the transport
2765
activity display respectively.
2766
(Martin Pool, #340347)
2768
* Unshelve works correctly when multiple zero-length files are present on
2769
the shelf. (Aaron Bentley, #363444)
2771
* Progress bars no longer show the network transport scheme or direction.
2774
* launchpad-login now respects the 'verbose' option.
2775
(Jonathan Lange, #217031)
2781
* ``bzrlib.user_encoding`` is now officially deprecated. It is not
2782
possible to write a deprecation wrapper, but the variable will be
2783
removed in the near future. Use ``bzrlib.osutils.get_user_encoding()``
2784
instead. (Alexander Belchenko)
2786
* Command lookup has had hooks added. ``bzrlib.Command.hooks`` has
2787
three new hook points: ``get_command``, ``get_missing_command`` and
2788
``list_commands``, which allow just-in-time command name provision
2789
rather than requiring all command names be known a-priori.
2792
* ``get_app_path`` from win32utils.py now supports REG_EXPAND_SZ data type
2793
and can read path to wordpad.exe. (Alexander Belchenko, #392046)
2795
* ``graph.KnownGraph`` has been added. This is a class that can give
2796
answers to ``heads()`` very quickly. However, it has the assumption that
2797
the whole graph has already been loaded. This is true during
2798
``annotate`` so it is used there with good success (as much as 2x faster
2799
for files with long ancestry and 'cherrypicked' changes.)
2800
(John Arbash Meinel, Vincent Ladeuil)
2802
* OS file locks are now taken out using ``CreateFile`` rather than
2803
``LockFileEx`` on Windows. The locking remains exclusive with
2804
``LockFileEx`` but now it also works on older versions of Windows (such
2805
as Win98). (Martin <gzlist>)
2807
* pack <=> pack fetching is now done via a ``PackStreamSource`` rather
2808
than the ``Packer`` code. The user visible change is that we now
2809
properly fetch the minimum number of texts for non-smart fetching.
2810
(John Arbash Meinel)
2813
* ``VersionedFiles._add_text`` is a new api that lets us insert text into
2814
the repository as a single string, rather than a list of lines. This can
2815
improve memory overhead and performance of committing large files.
2816
(Currently a private api, used only by commit). (John Arbash Meinel)
2822
* ``bzr annotate`` can now be significantly faster. The time for
2823
``bzr annotate NEWS`` is down to 7s from 22s in 1.16. Files with long
2824
histories and lots of 'duplicate insertions' will be improved more than
2825
others. (John Arbash Meinel, Vincent Ladeuil)
2827
* ``bzr ls`` is now faster. On OpenOffice.org, the time drops from 2.4
2828
to 1.1 seconds. The improvement for ``bzr ls -r-1`` is more
2829
substantial dropping from 54.3 to 1.1 seconds. (Ian Clatworthy)
2831
* Improve "Path(s) are not versioned" error reporting for some commands.
2834
* Initial commit performance in ``--2a`` repositories has been improved by
2835
making it cheaper to build the initial CHKMap. (John Arbash Meinel)
2837
* Resolving a revno to a revision id on a branch accessed via ``bzr://``
2838
or ``bzr+ssh://`` is now much faster and involves no VFS operations.
2839
This speeds up commands like ``bzr pull -r 123``. (Andrew Bennetts)
2841
* ``revision-info`` now properly aligns the revnos/revids in the output
2842
and doesn't traceback when given revisions not in the current branch.
2843
Performance is also significantly improved when requesting multiple revs
2844
at once. (Matthew Fuller, John Arbash Meinel)
2846
* Tildes are no longer escaped by Transports. (Andy Kilner)
2852
* Avoid bad text wrapping in generated documentation. Slightly better
2853
formatting in the user reference.
2854
(Martin Pool, #249908)
2856
* Minor clarifications to the help for End-Of-Line conversions.
2862
* Removed overspecific error class ``InvalidProgressBarType``.
2865
* The method ``ProgressView._show_transport_activity`` is now
2866
``show_transport_activity`` because it's part of the contract between
2867
this class and the UI. (Martin Pool)
2873
:Released: 2009-06-26
2875
End user testing of the 2a format revealed two serious bugs. The first,
2876
#365615, caused bzr to raise AbsentContentFactory errors when autopacking.
2877
This meant that commits or pushes to 2a-format repositories failed
2880
The second bug, #390563, caused the smart server to raise AbsentContentFactory
2881
when streaming 2a stacked 2a-format branches. This particularly affected
2882
branches stored on Launchpad in the 2a format.
2884
Both of these bugs cause command failures only, neither of them cause data
2885
corruption or data loss. And, of course, both of these bugs are now fixed.
2890
* We now properly request a more minimal set of file texts when fetching
2891
multiple revisions. (Robert Collins, John Arbash Meinel, #390563)
2893
* Repositories using CHK pages (which includes the new 2a format) will no
2894
longer error during commit or push operations when an autopack operation
2895
is triggered. (Robert Collins, #365615)
2897
* ``chk_map.iter_interesting_nodes`` now properly uses the *intersection*
2898
of referenced nodes rather than the *union* to determine what
2899
uninteresting pages we still need to look at. Prior to this,
2900
incrementally pushing to stacked branch would push the minimal data, but
2901
fetching everything would request extra texts. There are some unhandled
2902
cases wrt trees of different depths, but this fixes the common cases.
2903
(Robert Collins, John Arbash Meinel, #390563)
2905
* ``GroupCompress`` repositories now take advantage of the pack hints
2906
parameter to permit cross-format fetching to incrementally pack the
2907
converted data. (Robert Collins)
2909
* ``Repository.commit_write_group`` now returns opaque data about what
2910
was committed, for passing to the ``Repository.pack``. Repositories
2911
without atomic commits will still return None. (Robert Collins)
2913
* ``Repository.pack`` now takes an optional ``hint`` parameter
2914
which will support doing partial packs for repositories that can do
2915
that. (Robert Collins)
2917
* RepositoryFormat has a new attribute 'pack_compresses' which is True
2918
when doing a pack operation changes the compression of content in the
2919
repository. (Robert Collins)
2921
* ``StreamSink`` and ``InterDifferingSerialiser`` will call
2922
``Repository.pack`` with the hint returned by
2923
``Repository.commit_write_group`` if the formats were different and the
2924
repository can increase compression by doing a pack operation.
2925
(Robert Collins, #376748)
2930
:Codename: yesterday-in-california
2931
:1.16rc1: 2009-06-11
2934
This version of Bazaar contains the beta release of the new ``2a`` repository
2935
format, suitable for testing by fearless, advanced users. This format or an
2936
updated version of it will become the default format in Bazaar 2.0. Please
2937
read the NEWS entry before even thinking about upgrading to the new format.
2939
Also included are speedups for many operations on huge projects, a bug fix for
2940
pushing stacked new stacked branches to smart servers and the usual bevy of
2941
bug fixes and improvements.
2944
Changes from 1.16rc1 to 1.16final
2945
*********************************
2947
* Fix the nested tree flag check so that upgrade from development formats to
2948
2a can work correctly.
2949
(Jelmer Vernooij, #388727)
2951
* Automatic format upgrades triggered by default stacking policies on a
2952
1.16rc1 (or later) smart server work again.
2953
(Andrew Bennetts, #388675)
2956
12
Compatibility Breaks
2957
13
********************