5
6
.. contents:: List of Releases
11
:2.2b3: NOT RELEASED YET
19
* ``bzr commit`` accepts ``-p`` (for "patch") as a shorter name for
21
(Parth Malwankar, #571467)
23
* ``bzr ignore`` now supports a ``--default-rules`` option that displays
24
the default ignore rules used by bzr. The flag ``--old-default-rules``
25
is no longer supported by ``ignore``.
26
(Parth Malwankar, #538703)
28
* ``bzr pack`` now supports a ``--clean-obsolete-packs`` option that
29
can save disk space by deleting obsolete pack files created during the
31
(Parth Malwankar, #304320)
36
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
37
group ownership from the containing directory. This allow bzr to work
39
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
41
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
42
are part of Y ancestry but not part of X ancestry (aka the graph
44
(Vincent Ladeuil, #320119)
46
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
47
(Vincent Ladeuil, #566670)
49
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
50
(Vincent Ladeuil, #563997)
52
* Don't mention --no-strict when we just issue the warning about unclean trees.
53
(Vincent Ladeuil, #401599)
55
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
57
(Andrew Bennetts, #528041)
59
* Reduce peak memory by one copy of compressed text.
60
(John Arbash Meinel, #566940)
62
* Show the filenames when a file rename fails so that the error will be
64
(Martin Pool, #491763)
69
* ``append_revisions_only`` will now be interpreted as a boolean and a
70
warning emitted if illegal values are used. Note that for projects
71
that needs to maintain compatibility with previsous bzr versions,
72
only 'True' and 'False' strings must be used (previous versions of
73
bzr will interpret all strings differing from 'True'
74
(case-sensitive) as false.
75
(Brian de Alwis, Vincent Ladeuil)
77
* ``Config.get_user_option_as_bool`` will now warn if a value cannot
78
be interpreted as a boolean.
87
* Added ``bzrlib.merge.PerFileMerger``, a more convenient way to write
88
some kinds of ``merge_file_content`` hook functions.
91
* `BzrDir`, `Branch`, `Repository` and `WorkingTree` now all support `user_url`,
92
`user_transport`, `control_url` and `control_transport` members pointing
93
respectively to the directory containing the ``.bzr`` control directory,
94
and to the directory within ``.bzr`` used for the particular component.
95
All of them inherit from `ControlComponent` which provides default
102
* ``_remember_remote_is_before`` no longer raises AssertionError when
103
suboptimal network behaviour is noticed; instead it just mutters to the
104
log file (and warns the user if they have set the ``hpss`` debug flag).
105
This was causing unnecessary aborts for performance bugs that are minor
107
(Andrew Bennetts, #528041)
109
* Permit bzr to run under ``python -OO`` which reduces the size of bytecode
110
files loaded from disk. To ensure docstrings needed for help are never
111
stripped, the prefix ``__doc__ =`` should now be used.
112
(Martin <gzlist@googlemail.com>)
117
* ``bzr selftest --parallel=subprocess`` now works correctly on win32.
118
(Gordon Tyler, #551332)
120
* Workaround ``Crypto.Random`` check leading to spurious test
121
failures on Lucid, FreeBSD and gentoo.
122
(Vincent Ladeuil, #528436)
129
This is a somewhat early second beta of the 2.2 series, to fix a python2.4
130
incompatibility in the 2.2b1 release. It also includes a swag of
131
performance, usability and correctness improvements: test feedback on all
132
of these would be welcome.
138
* ``bzr diff`` now supports a --format option, which can be used to
139
select alternative diff formats. (Jelmer Vernooij, #555994)
144
* ``bzr dpush``, ``bzr push`` and ``bzr send`` will now issue a warning
145
instead of failing when dirty trees are involved. The corresponding
146
``dpush_strict``, ``push_strict`` and ``send_strict`` should be set to
147
True explicitly to get the previous behaviour.
148
(Vincent Ladeuil, #519319)
150
* ``bzr export`` to tar file does not fail if any parent directory
151
contains unicode characters. This works around upstream Python bug
152
http://bugs.python.org/issue8396 .
153
(Parth Malwankar, #413406)
155
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
156
(Aaron Bentley, #559436)
158
* ``bzr update`` when a pending merge in the working tree has been merged
159
into the master branch will no longer claim that old commits have become
160
pending merges. (Robert Collins, #562079)
162
* ``bzrlib.mutabletree.MutableTree.commit`` will now support a passed in
163
config as in previous versions of bzrlib. (Robert Collins)
165
* Fix glitch in the warning about unclean trees display.
166
(Vincent Ladeuil, #562665)
168
* Fixed Python2.4 incompatibilities in the bzr2.2b1 source tarball.
171
* Help messages generated by ``RegistryOption.from_kwargs`` list the
172
switches in alphabetical order, rather than in an undefined order.
173
(Martin von Gagern, #559409)
175
* Make sure the ``ExecutablePath`` and ``InterpreterPath`` are set in
176
Apport crash reports, to avoid "This problem report applies to a program
177
which is not installed any more" error.
178
(Martin Pool, James Westby, #528114)
180
* Reset ``siginterrupt`` flag to False every time we handle a signal
181
installed with ``set_signal_handler(..., restart_syscall=True)`` (from
182
``bzrlib.osutils``. Reduces the likelihood of "Interrupted System Call"
183
errors after two window resizes.
186
* When invoked with a range revision, ``bzr log`` doesn't show revisions
187
that are not part of the Y revisions ancestry anymore when invoked with
189
(Vincent Ladeuil, #474807)
191
* Properly handle ``param_name`` attribute for ``ListOption``.
192
(Martin von Gagern, 387117)
197
* ``bzr commit`` will prompt before using a commit message that was
198
generated by a template and not edited by the user.
199
(Robert Collins, #530265)
201
* ``bzr diff`` read-locks the trees and branches only once, saving about
202
10-20ms on ``bzr diff`` in a bzr.dev tree.
205
* ``bzr missing`` read-locks the branches only once.
208
* ``bzr pull`` locks the branches and tree only once.
211
* Index lookups in pack repositories search recently hit pack files first.
212
In repositories with many pack files this can greatly reduce the
213
number of files accessed, the number of bytes read, and the number of
214
read calls. An incremental pull via plain HTTP takes half the time and
215
bytes for a moderately large repository. (Andrew Bennetts)
217
* Index lookups only re-order the indexes when the hit files aren't
218
already first. Reduces the cost of reordering
219
(John Arbash Meinel, #562429)
221
* Less code is loaded at startup. (Cold-cache start time is about 10-20%
223
(Martin Pool, #553017)
228
* ``bzrlib.diff.get_trees_and_branches_to_diff`` is deprecated. Use
229
``get_trees_and_branches_to_diff_locked`` instead.
235
* ``bzrlib.commands.Command.run_direct`` is no longer needed - the pre
236
2.1 method of calling run() to perform testing or direct use via the API
237
is now possible again. As part of this, the _operation attribute on
238
Command is now transient and only exists for the duration of ``run()``.
249
* BTreeGraphIndex can now take an offset to indicate that the data starts
250
somewhere other than then beginning of the file. (John Arbash Meinel)
252
* Deleted very old hidden commands ``versionedfile-list``,
253
``weave-plan-merge``, ``weave-merge-text``.
256
* ``Repository.get_inventory_sha1()`` and ``Repository.get_revision_xml()``
257
have been removed. (Jelmer Vernooij)
259
* ``Repository.get_revision_inventory()`` has been removed in favor of
260
``Repository.get_inventory()``. (Jelmer Vernooij)
262
* All test servers have been moved out of the bzrlib.transport hierarchy to
263
bzrlib.tests.test_server *except* for MemoryServer, ChrootServer and
264
PathFilteringServer. ``bzrlib`` users may encounter test failures that can
265
be fixed by updating the related imports from ``bzrlib.transport.xxx`` to
266
``bzrlib.tests.test_server``.
269
* ``BranchReferenceFormat.initialize()`` now takes an optional name argument
270
as its second parameter, for consistency with the initialize() method of
271
other formats. (Jelmer Vernooij)
276
* Added ``bzr remove-branch`` command that can remove a local or remote
277
branch. (Jelmer Vernooij, #276295)
279
* ``bzr export`` now takes an optional argument ``--per-file-timestamps``
280
to set file mtimes to the last timestamp of the last revision in which
281
they were changed rather than the current time. (Jelmer Vernooij)
283
* If the Apport crash-reporting tool is available, bzr crashes are now
284
stored into the ``/var/crash`` apport spool directory, and the user is
285
invited to report them to the developers from there, either
286
automatically or by running ``apport-bug``. No information is sent
287
without specific permission from the user. (Martin Pool, #515052)
289
* Parsing of command lines, for example in ``diff --using``, no longer
290
treats backslash as an escape character on Windows. (Gordon Tyler,
293
* Plugins can be disabled by defining ``BZR_DISABLE_PLUGINS`` as
294
a list of plugin names separated by ':' (';' on windows).
295
(Vincent Ladeuil, #411413)
297
* Plugins can be loaded from arbitrary locations by defining
298
``BZR_PLUGINS_AT`` as a list of name@path separated by ':' (';' on
299
windows). This takes precedence over ``BZR_PLUGIN_PATH`` for the
300
specified plugins. This is targeted at plugin developers for punctual
301
needs and *not* intended to replace ``BZR_PLUGIN_PATH``.
302
(Vincent Ladeuil, #82693)
304
* Tag names can now be determined automatically by ``automatic_tag_name``
305
hooks on ``Branch`` if they are not specified on the command line.
308
* Tree-shape conflicts can be resolved by providing ``--take-this`` and
309
``--take-other`` to the ``bzr resolve`` command. Just marking the conflict
310
as resolved is still accessible via the ``--done`` default action.
313
* Merges can be proposed on Launchpad with the new lp-propose-merge command.
314
(Aaron Bentley, Jonathan Lange)
319
* Added docstring for ``Tree.iter_changes``
320
(John Arbash Meinel, #304182)
322
* Allow additional arguments to
323
``RemoteRepository.add_inventory_by_delta()``. (Jelmer Vernooij, #532631)
325
* Allow exporting a single file using ``bzr export``.
326
(Michal Junák, #511987)
328
* Allow syscalls to automatically restart when ``TextUIFactory``'s
329
SIGWINCH handler is invoked, avoiding ``EINTR`` errors during blocking
330
IO, which are often poorly handled by Python's libraries and parts of
331
bzrlib. (Andrew Bennetts, #496813)
333
* Avoid infinite recursion when probing for apport.
334
(Vincent Ladeuil, #516934)
336
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
337
(Martin Pool, #331095)
339
* Avoid truncating svn URLs.
340
(Martin Pool, Martin von Gagern, #545185)
342
* ``bzr add`` will not add conflict related files unless explicitly required.
343
(Vincent Ladeuil, #322767, #414589)
345
* ``bzr dump-btree`` now works on ``*.cix`` and ``*.six`` files. Those
346
indices do not have reference lists, so ``dump-btree`` will simply show
347
``None`` instead. (Andrew Bennetts, #488607)
349
* ``bzr help`` will no longer trigger the get_missing_command hook when
350
doing a topic lookup. This avoids prompting (like 'no command plugins/loom,
351
did you mean log?') when getting help. In future we may trigger the hook
352
deliberately when no help topics match from any help index.
353
(Robert Collins, #396261)
355
* ``bzr log -n0 -r..A.B.C`` should not crash but just consider the None
356
revspec as representing the first revision of the branch.
357
(Vincent Ladeuil, #519862)
359
* ``bzr remove-tree`` can now remove multiple working trees.
360
(Jared Hance, Andrew Bennetts, #253137)
362
* ``bzr resolve --take-this`` and ``--take-other`` now correctly renames
363
the kept file on content conflicts where one side deleted the file.
364
(Vincent Ladeuil, #529968)
366
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
367
permissions as ``.bzr`` directory on a POSIX OS.
368
(Parth Malwankar, #262450)
370
* ``bzr upgrade`` now names backup directory as ``backup.bzr.~N~`` instead
371
of ``backup.bzr``. This directory is ignored by bzr commands such as
373
(Parth Malwankar, #335033, #300001)
375
* Cope with non-utf8 characters inside ``.bzrignore``.
376
(Jason Spashett, #183504)
378
* Correctly interpret "451 Rename/move failure: Directory not empty" from
379
ftp servers while trying to take a lock.
380
(Martin Pool, #528722)
382
* DirStateRevisionTree.kind() was returning wrong result when 'kind'
383
changes occured between the workingtree and one of its parents.
384
(Vincent Ladeuil, #535547)
386
* Fix ``log`` to better check ancestors even if merged revisions are involved.
387
(Vincent Ladeuil, #476293)
389
* Loading a plugin from a given path with ``BZR_PLUGINS_AT`` doesn't depend
390
on os.lisdir() order and is now reliable.
391
(Vincent Ladeuil, #552922).
393
* Many IO operations that returned ``EINTR`` were retried even if it
394
wasn't safe to do so via careless use of ``until_no_eintr``. Bazaar now
395
only retries operations that are safe to retry, and in some cases has
396
switched to operations that can be retried (e.g. ``sock.send`` rather than
398
(Andrew Bennetts, Martin <gzlist@googlemail.com>, #496813)
400
* Path conflicts now support --take-this and --take-other even when a
401
deletion is involved.
402
(Vincent Ladeuil, #531967)
404
* Network transfer amounts and rates are now displayed in SI units according
405
to the Ubuntu Units Policy <https://wiki.ubuntu.com/UnitsPolicy>.
406
(Gordon Tyler, #514399)
408
* Support kind markers for socket and fifo filesystem objects. This
409
prevents ``bzr status --short`` from crashing when those files are
410
present. (John Arbash Meinel, #303275)
412
* ``bzr mkdir DIR`` will not create DIR unless DIR's parent is a versioned
413
directory. (Parth Malwankar, #138600)
415
* SSH child processes will now ignore SIGQUIT on nix systems so breaking into
416
the debugger won't kill the session.
417
(Martin <gzlist@googlemail.com>, #162502)
419
* Tolerate patches with leading noise in ``bzr-handle-patch``.
420
(Toshio Kuratomi, Martin Pool, #502076)
422
* ``update -r`` now supports updating to revisions that are not on
423
mainline (i.e. it supports dotted revisions).
424
(Parth Malwankar, #517800)
426
* Use first apparent author not committer in GNU Changelog format.
427
(Martin von Gagern, #513322)
432
* ``bzrlib.merge_directive._BaseMergeDirective`` has been renamed to
433
``bzrlib.merge_directive.BaseMergeDirective`` and is now public.
436
* ``BranchFormat.initialize`` now takes an optional ``name`` of the colocated
437
branch to create. (Jelmer Vernooij)
439
* ``BzrDir.get_branch_transport`` now takes an optional ``name`` of the
440
colocated branch to open. (Jelmer Vernooij)
442
* Added ``bzrlib.osutils.set_signal_handler``, a convenience function that
443
can set a signal handler and call ``signal.siginterrupt(signum,
444
False)`` for it, if the platform and Python version supports it.
445
(Andrew Bennetts, #496813)
447
* New ``bzrlib.initialize`` is recommended for programs using bzrlib to
448
run when starting up; it sets up several things that previously needed
449
to be done separately.
450
(Martin Pool, #507710)
452
* Exporters now support a ``per_file_timestamps`` argument to write out the
453
timestamp of the commit in which a file revision was introduced.
456
* New method ``BzrDir.list_branches()`` that returns a sequence of branches
457
present in a control directory. (Jelmer Vernooij)
459
* New method ``Repository.get_known_graph_ancestry()``.
460
(Jelmer Vernooij, #495502)
462
* New transport methods ``readlink``, ``symlink`` and ``hardlink``.
465
* Remove unused ``CommandFailed`` exception.
471
* ``bzrlib.branchbuilder.BranchBuilder.build_snapshot`` now accepts a
472
``message_callback`` in the same way that commit does. (Robert Collins)
474
* ``bzrlib.builtins.Commit.run`` raises ``bzrlib.errors.BoundBranchOutOfDate``
475
rather than ``bzrlib.errors.BzrCommandError`` when the bound branch is out
476
of date. (Gary van der Merwe)
478
* ``bzrlib.commands.run_bzr`` is more extensible: callers can supply the
479
functions to load or disable plugins if they wish to use a different
480
plugin mechanism; the --help, --version and no-command name code paths
481
now use the generic pluggable command lookup infrastructure.
484
* ``bzrlib.errors.BoundBranchOutOfDate`` has a new field ``extra_help``
485
which can be set to add extra help to the error. (Gary van der Merwe)
487
* New method ``Branch.automatic_tag_name`` that can be used to find the
488
tag name for a particular revision automatically. (Jelmer Vernooij)
490
* The methods ``BzrDir.create_branch()``, ``BzrDir.destroy_branch()`` and
491
``BzrDir.open_branch()`` now take an optional ``name`` argument.
497
* bzr now has a ``.testr.conf`` file in its source tree configured
498
appropriately for running tests with Testrepository
499
(``https://launchpad.net/testrepository``). (Robert Collins)
501
* Documentation about testing with ``subunit`` has been tweaked.
504
* Known failures has been added for resolve --take-other on ParentLoop
505
conflicts. This reflects bug #537956 without fixing it.
508
* New ``bzrlib.tests.test_import_tariff`` can make assertions about what
509
Python modules are loaded, to guard against startup time or library
510
dependency regressions.
513
* PQM will now run with subunit output. To analyze a PQM error use
514
tribunal, or cat log | subunit-filter | subunit2pyunit. (Robert Collins)
516
* Stop sending apport crash files to ``.cache`` in the directory from
517
which ``bzr selftest`` was run. (Martin Pool, #422350)
519
* Tests no longer fail if "close() called during concurrent
520
operation on the same file object" occurs when closing the log file
521
(which can happen if a thread tries to write to the log file at the
522
wrong moment). An warning will be written to ``stderr`` when this
523
happens, and another warning will be written if the log file could not
524
be closed after retrying 100 times. (Andrew Bennetts, #531746)
529
:2.1.2: NOT RELEASED YET
534
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
535
(Aaron Bentley, #559436)
537
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
539
(Andrew Bennetts, #528041)
541
* Reset ``siginterrupt`` flag to False every time we handle a signal
542
installed with ``set_signal_handler(..., restart_syscall=True)`` (from
543
``bzrlib.osutils``. Reduces the likelihood of "Interrupted System Call"
544
errors after two window resizes.
550
* ``_remember_remote_is_before`` no longer raises AssertionError when
551
suboptimal network behaviour is noticed; instead it just mutters to the
552
log file (and warns the user if they have set the ``hpss`` debug flag).
553
This was causing unnecessary aborts for performance bugs that are minor
555
(Andrew Bennetts, #528041)
563
This is a small bugfix release. Upgrading is recommended for anyone
564
running 2.1.0 or earlier.
569
* Allow syscalls to automatically restart when ``TextUIFactory``'s
570
SIGWINCH handler is invoked, avoiding ``EINTR`` errors during blocking
571
IO, which are often poorly handled by Python's libraries and parts of
572
bzrlib. (Andrew Bennetts, #496813)
574
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
575
(Martin Pool, #331095)
577
* Fix plugin packaging on Windows. (Ian Clatworthy, #524162)
579
* Fix stub sftp test server to call os.getcwdu().
580
(Vincent Ladeuil, #526221, #526353)
582
* Fixed CHM generation by moving the NEWS section template into
583
a separate file. (Ian Clatworthy, #524184)
585
* Merge correctly when this_tree is not a WorkingTree. (Aaron Bentley)
587
* Register SIGWINCH handler only when creating a ``TextUIFactory``; avoids
588
problems importing bzrlib from a non-main thread.
589
(Elliot Murphy, #521989)
591
* Repositories accessed via a smart server now reject being stacked on a
592
repository in an incompatible format, as is the case when accessing them
593
via other methods. This was causing fetches from those repositories via
594
a smart server (e.g. using ``bzr branch``) to receive invalid data.
595
(Andrew Bennetts, #562380)
597
* Standardize the error handling when creating a new ``StaticTuple``
598
(problems will raise TypeError). (Matt Nordhoff, #457979)
600
* Warn if pyrex is too old to compile the new ``SimpleSet`` and
601
``StaticTuple`` extensions, rather than having the build fail randomly.
602
(John Arbash Meinel, #449776)
607
* Added a link to the Desktop Guide. (Ian Clatworthy)
609
* Added What's New in Bazaar 2.1 document. (Ian Clatworthy)
611
* Drop Google Analytics from the core docs as they caused problems
612
in the CHM files. (Ian Clatworthy, #502010)
617
* Added ``bzrlib.osutils.set_signal_handler``, a convenience function that
618
can set a signal handler and call ``signal.siginterrupt(signum,
619
False)`` for it, if the platform and Python version supports it.
620
(Andrew Bennetts, #496813)
626
:Codename: Strasbourg
629
This release marks our second long-term-stable series. The Bazaar team
630
has decided that we will continue to make bugfix-only 2.0.x and 2.1.x
631
releases, along with 2.2 development releases.
633
This is a fairly incremental update, focusing on polish and bugfixing.
634
There are no changes for supported disk formats. Key updates include
635
reduced memory consumption for many operations, a new per-file merge
636
hook, ignore patterns can now include '!' to exclude files, globbing
637
support for all commands on Windows, and support for addressing home
638
directories via ``bzr+ssh://host/~/`` syntax.
640
Users are encouraged to upgrade from the 2.0 stable series.
645
* Don't require testtools to use sftp.
646
(Vincent Ladeuil, #516183)
648
* Fix "AttributeError in Inter1and2Helper" during fetch.
649
(Martin Pool, #513432)
651
* ``bzr update`` performs the two merges in a more logical order and will stop
652
when it encounters conflicts.
653
(Gerard Krol, #113809)
655
* Give a better error message when doing ``bzr bind`` in an already bound
656
branch. (Neil Martinsen-Burrell, #513063)
658
* Ignore ``KeyError`` from ``remove_index`` during ``_abort_write_group``
659
in a pack repository, which can happen harmlessly if the abort occurs during
660
finishing the write group. Also use ``bzrlib.cleanup`` so that any
661
other errors that occur while aborting the individual packs won't be
662
hidden by secondary failures when removing the corresponding indices.
663
(Andrew Bennetts, #423015)
665
* Set the mtime of files exported to a directory by ``bzr export`` all to
666
the same value to avoid confusing ``make`` and other date-based build
667
systems. (Robert Collins, #515631)
672
* Fetching into experimental formats will now print a warning. (Jelmer
678
* ``Repository.deserialise_inventory`` has been renamed to
679
``Repository._deserialise_inventory`` to indicate it is private.
682
* ``Repository.get_inventory_xml`` has been renamed to
683
``Repository._get_inventory_xml`` to indicate it is private.
686
* ``Repository.serialise_inventory`` has been renamed to
687
``Repository._serialise_inventory`` to indicate it is private.
689
* Using the ``bzrlib.chk_map`` module from within multiple threads at the
690
same time was broken due to race conditions with a module level page
691
cache. This shows up as a KeyError in the ``bzrlib.lru_cache`` code with
692
``bzrlib.chk_map`` in the backtrace, and can be triggered without using
693
the same high level objects such as ``bzrlib.repository.Repository``
694
from different threads. chk_map now uses a thread local cache which may
695
increase memory pressure on processes using threads.
696
(Robert Collins, John Arbash Meinel, #514090)
698
* The new ``merge_file_content`` should now be ok with tests to avoid
700
(Vincent Ladeuil, #515597)
705
* Use ``bzrlib.cleanup`` rather than less robust ``try``/``finally``
706
blocks in several places in ``bzrlib.merge``. This avoids masking prior
707
errors when errors like ``ImmortalPendingDeletion`` occur during cleanup
709
(Andrew Bennetts, #517275)
714
* The ``remove_index`` method of
715
``bzrlib.repofmt.pack_repo.AggregateIndex`` no longer takes a ``pack``
716
argument. This argument was always ignored.
717
(Andrew Bennetts, #423015)
722
:Codename: after the bubbles
723
:2.1.0rc2: 2010-01-29
725
This is a quick-turn-around to update a small issue with our new per-file
726
merge hook. We expect no major changes from this to the final 2.1.0.
731
* The new ``merge_file_content`` hook point has been altered to provide a
732
better API where state for extensions can be stored rather than the
733
too-simple function based approach. This fixes a performance regression
734
where branch configuration would be parsed per-file during merge. As
735
part of this the included news_merger has been refactored into a base
736
helper class ``bzrlib.merge.ConfigurableFileMerger``.
737
(Robert Collins, John Arbash Meinel, #513822)
743
:Codename: the 'new' stable
744
:2.1.0rc1: 2009-01-21
746
This is the first stable release candidate for Bazaar's 2.1 series. From
747
this point onwards, the 2.1 series will be considered stable (as the 2.0
748
series) and only bugfixes are expected to be incorporated. The dozen or so
749
bugfixes in the 2.0.4 release are also included in this release (along
750
with more than 15 more bugfixes). Some of the interesting features are
751
support for per-file merge hooks, ``bzr unshelve --preview``, support
752
for using ! in ignore files to exclude files from being ignored, a small
753
memory leak was squashed, and many ``ObjectNotLocked`` errors were fixed.
754
This looks to be a very good start for a new stable series.
760
* Add bug information to log output when available.
761
(Neil Martinsen-Burrell, Guillermo Gonzalez, #251729)
763
* Added ``merge_file_content`` hook point to ``Merger``, allowing plugins
764
to register custom merge logic, e.g. to provide smarter merging for
767
* Bazaar now includes the ``news_merge`` plugin. It is disabled by
768
default, to enable it add a ``news_merge_files`` option to your
769
configuration. Consult ``bzr help news_merge`` for more information.
772
* ``bzr branch`` now takes a ``--bind`` option. This lets you
773
branch and bind all in one command. (Ian Clatworthy)
775
* ``bzr switch`` now takes a ``--revision`` option, to allow switching to
776
a specific revision of a branch. (Daniel Watkins, #183559)
778
* ``bzr unshelve --preview`` can now be used to show how a patch on the
779
shelf would be applied to the working tree.
780
(Guilherme Salgado, #308122)
782
* ``bzr update`` now takes a ``--revision`` argument. This lets you
783
change the revision of the working tree to any revision in the
784
ancestry of the current or master branch. (Matthieu Moy, Mark Hammond,
787
* ``-Dbytes`` can now be used to display the total number of bytes
788
transferred for the current command. This information is always logged
789
to ``.bzr.log`` for later inspection. (John Arbash Meinel)
791
* New ignore patterns. Patterns prefixed with '!' are exceptions to
792
ignore patterns and take precedence over regular ignores. Such
793
exceptions are used to specify files that should be versioned which
794
would otherwise be ignored. Patterns prefixed with '!!' act as regular
795
ignore patterns, but have highest precedence, even over the '!'
796
exception patterns. (John Whitley, #428031)
798
* The ``supress_warnings`` configuration option has been introduced to disable
799
various warnings (it currently only supports the ``format_deprecation``
800
warning). The new option can be set in any of the following locations:
801
``bazaar.conf``, ``locations.conf`` and/or ``branch.conf``.
802
(Ted Gould, Matthew Fuller, Vincent Ladeuil)
807
* Always show a message if an OS error occurs while trying to run a
808
user-specified commit message editor.
809
(Martin Pool, #504842)
811
* ``bzr diff`` will now use the epoch when it is unable to determine
812
the timestamp of a file, if the revision it was introduced in is a
813
ghost. (Jelmer Vernooij, #295611)
815
* ``bzr switch -b`` can now create branches that are located using directory
816
services such as ``lp:``, even when the branch name doesn't contain a
817
'/'. (Neil Martinsen-Burrell, #495263)
819
* ``bzr unshelve`` has improved messages about what it is doing.
820
(Neil Martinsen-Burrell, #496917)
822
* Concurrent autopacking is more resilient to already-renamed pack files.
823
If we find that a file we are about to obsolete is already obsoleted, we
824
do not try to rename it, and we leave the file in ``obsolete_packs``.
825
The code is also fault tolerant if a file goes missing, assuming that
826
another process already removed the file.
827
(John Arbash Meinel, Gareth White, #507557)
829
* Fix "Too many concurrent requests" in reconcile when network connection
830
fails. (Andrew Bennetts, #503878)
832
* Fixed a side effect mutation of ``RemoteBzrDirFormat._network_name``
833
that caused some tests to fail when run in a non-default order.
834
Probably no user impact. (Martin Pool, #504102)
836
* Fixed ``ObjectNotLocked`` error in ``bzr cat -rbranch:../foo FILE``.
837
(Andrew Bennetts, #506274)
839
* FTP transports support Unicode paths by encoding/decoding them as utf8.
840
(Vincent Ladeuil, #472161)
842
* Listen to the SIGWINCH signal to update the terminal width.
843
(Vincent Ladeuil, #316357)
845
* Progress bars are now hidden when ``--quiet`` is given.
846
(Martin Pool, #320035)
848
* ``SilentUIFactory`` now supports ``make_output_stream`` and discards
849
whatever is written to it. This un-breaks some plugin tests that
850
depended on this behaviour.
851
(Martin Pool, #499757)
853
* When operations update the working tree, all affected files should end
854
up with the same mtime. (eg. when versioning a generated file, if you
855
update the source and the generated file together, the generated file
856
should appear up-to-date.)
857
(John Arbash Meinel, Martin <gzlist>, #488724)
862
* Added ``add_cleanup`` and ``cleanup_now`` to ``bzrlib.command.Command``.
863
All the builtin commands now use ``add_cleanup`` rather than
864
``try``/``finally`` blocks where applicable as it is simpler and more
865
robust. (Andrew Bennetts)
867
* All except a small number of storage formats are now hidden, making
868
the help for numerous commands far more digestible. (Ian Clatworthy)
870
* Attempts to open a shared repository as a branch (e.g. ``bzr branch
871
path/to/repo``) will now include "location is a repository" as a hint in
872
the error message. (Brian de Alwis, Andrew Bennetts, #440952)
874
* Push will now inform the user when they are trying to push to a foreign
875
VCS for which roundtripping is not supported, and will suggest them to
876
use dpush. (Jelmer Vernooij)
878
* The version of bzr being run is now written to the log file.
881
* Transport network activity indicator is shown more of the time when
882
Bazaar is doing network IO.
888
* Add documentation on creating merges with more than one parent.
889
(Neil Martinsen-Burrell, #481526)
891
* Better explain the --uncommitted option of merge.
892
(Neil Martinsen-Burrell, #505088)
894
* Improve discussion of pending merges in the documentation for
895
``revert``. (Neil Martinsen-Burrell, #505093)
897
* Improved help for ``bzr send``.
898
(Martin Pool, Bojan Nikolic)
900
* There is a System Administrator's Guide in ``doc/en/admin-guide``,
901
including discussions of installation, relevant plugins, security and
902
backup. (Neil Martinsen-Burrell)
904
* The ``conflicts`` help topic has been renamed to ``conflict-types``.
907
* The User Reference is now presented as a series of topics.
908
Many of the included topics have link and format tweaks applied.
914
* Added ``cachedproperty`` decorator to ``bzrlib.decorators``.
917
* Many test features were renamed from ``FooFeature`` to ``foo_feature``
918
to be consistent with instances being lower case and classes being
919
CamelCase. For the features that were more likely to be used, we added a
920
deprecation thunk, but not all. (John Arbash Meinel)
922
* Merger classes (such as ``Merge3Merger``) now expect a ``this_branch``
923
parameter in their constructors, and provide ``this_branch`` as an
924
attribute. (Andrew Bennetts)
926
* The Branch hooks pre_change_branch_tip no longer masks exceptions raised
927
by plugins - the original exceptions are now preserved. (Robert Collins)
929
* The Transport ``Server.tearDown`` method is now renamed to
930
``stop_server`` and ``setUp`` to ``start_server`` for consistency with
931
our normal naming pattern, and to avoid confusion with Python's
932
``TestCase.tearDown``. (Martin Pool)
934
* ``WorkingTree.update`` implementations must now accept a ``revision``
940
* Added ``BzrDir.open_branchV3`` smart server request, which can receive
941
a string of details (such as "location is a repository") as part of a
942
``nobranch`` response. (Andrew Bennetts, #440952)
944
* New helper osutils.UnicodeOrBytesToBytesWriter which encodes unicode
945
objects but passes str objects straight through. This is used for
946
selftest but may be useful for diff and other operations that generate
947
mixed output. (Robert Collins)
949
* New exception ``NoRoundtrippingSupport``, for use by foreign branch
950
plugins. (Jelmer Vernooij)
955
* ``bzrlib.tests.permute_for_extension`` is a helper that simplifies
956
running all tests in the current module, once against a pure python
957
implementation, and once against an extension (pyrex/C) implementation.
958
It can be used to dramatically simplify the implementation of
959
``load_tests``. (John Arbash Meinel)
961
* ``bzrlib.tests.TestCase`` now subclasses ``testtools.testcase.TestCase``.
962
This permits features in testtools such as getUniqueInteger and
963
getUniqueString to be used. Because of this, testtools version 0.9.2 or
964
newer is now a dependency to run bzr selftest. Running with versions of
965
testtools less than 0.9.2 will cause bzr to error while loading the test
966
suite. (Robert Collins)
968
* Shell-like tests now support the command "mv" for moving files. The
969
syntax for ``mv file1 file2``, ``mv dir1 dir2`` and ``mv file dir`` is
970
supported. (Neil Martinsen-Burrell)
972
* The test progress bar no longer distinguishes tests that 'errored' from
973
tests that 'failed' - they're all just failures.
979
:2.0.6: NOT RELEASED YET
984
* Additional merges after an unrelated branch has been merged with its
985
history no longer crash when deleted files are involved.
986
(Vincent Ladeuil, John Arbash Meinel, #375898)
988
* ``bzr revert`` now only takes write lock on working tree, instead of on
989
both working tree and branch.
990
(Danny van Heumen, #498409)
992
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
993
permissions as ``.bzr`` directory on a POSIX OS.
994
(Parth Malwankar, #262450)
996
* Repositories accessed via a smart server now reject being stacked on a
997
repository in an incompatible format, as is the case when accessing them
998
via other methods. This was causing fetches from those repositories via
999
a smart server (e.g. using ``bzr branch``) to receive invalid data.
1000
(Andrew Bennetts, #562380)
1007
This fifth release in our 2.0 series addresses several user-inconvenience
1008
bugs. None are critical, but upgrading is recommended for all users on
1009
earlier 2.0 releases.
1014
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
1015
(Martin Pool, #331095)
1017
* Concurrent autopacking is more resilient to already-renamed pack files.
1018
If we find that a file we are about to obsolete is already obsoleted, we
1019
do not try to rename it, and we leave the file in ``obsolete_packs``.
1020
The code is also fault tolerant if a file goes missing, assuming that
1021
another process already removed the file.
1022
(John Arbash Meinel, Gareth White, #507557)
1024
* Cope with the lockdir ``held/info`` file being empty, which seems to
1025
happen fairly often if the process is suddenly interrupted while taking
1027
(Martin Pool, #185103)
1029
* Give the warning about potentially slow cross-format fetches much
1030
earlier on in the fetch operation. Don't show this message during
1031
upgrades, and show the correct format indication for remote
1033
(Martin Pool, #456077, #515356, #513157)
1035
* Handle renames correctly when there are files or directories that
1036
differ only in case. (Chris Jones, Martin Pool, #368931)
1038
* If ``bzr push --create-prefix`` triggers an unexpected ``NoSuchFile``
1039
error, report that error rather than failing with an unhelpful
1040
``UnboundLocalError``.
1041
(Andrew Bennetts, #423563)
1043
* Running ``bzr`` command without any arguments now shows bzr
1044
version number along with rest of the help text.
1045
(Parth Malwankar, #369501)
1047
* Use osutils.O_NOINHERIT for some files on win32 to avoid PermissionDenied
1049
(Inada Naoki, #524560)
1054
* Added ``location-alias`` help topic.
1055
(Andrew Bennetts, #337834)
1057
* Fixed CHM generation by moving the NEWS section template into
1058
a separate file. (Ian Clatworthy, #524184)
1064
:Codename: smooth sailing
1067
The fourth bugfix-only release in the 2.0 series contains more than a
1068
dozen bugfixes relative to 2.0.3. The primary focus is on handling
1069
interruptions and concurrent operations more cleanly, there is also a fair
1070
improvement to ``bzr export`` when exporting a remote branch.
1076
* ``bzr annotate`` on another branch with ``-r branch:...`` no longer
1077
fails with an ``ObjectNotLocked`` error. (Andrew Bennetts, #496590)
1079
* ``bzr export dir`` now requests all file content as a record stream,
1080
rather than requsting the file content one file-at-a-time. This can make
1081
exporting over the network significantly faster (54min => 9min in one
1082
case). (John Arbash Meinel, #343218)
1084
* ``bzr serve`` no longer slowly leaks memory. The compiled
1085
``bzrlib.bencode.Encoder()`` class was using ``__del__`` to cleanup and
1086
free resources, and it should have been using ``__dealloc__``.
1087
This will likely have an impact on any other process that is serving for
1088
an extended period of time. (John Arbash Meinel, #494406)
1090
* Check for SIGINT (Ctrl-C) and other signals immediately if ``readdir``
1091
returns ``EINTR`` by calling ``PyErr_CheckSignals``. This affected the
1092
optional ``_readdir_pyx`` extension. (Andrew Bennetts, #495023)
1094
* Concurrent autopacks will no longer lose a newly created pack file.
1095
There was a race condition, where if the reload happened at the right
1096
time, the second packer would forget the name of the newly added pack
1097
file. (John Arbash Meinel, Gareth White, #507566)
1099
* Give a clearer message if the lockdir disappears after being apparently
1100
successfully taken. (Martin Pool, #498378)
1102
* Give a warning when fetching between repositories (local or remote) with
1103
sufficiently different formats that the content will need to be
1104
serialized (ie ``InterDifferingSerializer`` or ``inventory-deltas``), so
1105
the user has a clue that upgrading could make it faster.
1106
(Martin Pool, #456077)
1108
* If we fail to open ``~/.bzr.log`` write a clear message to stderr rather
1109
than using ``warning()``. The log file is opened before logging is set
1110
up, and it leads to very confusing: 'no handlers for "bzr"' messages for
1111
users, rather than something nicer.
1112
(John Arbash Meinel, Barry Warsaw, #503886)
1114
* Refuse to build with any Pyrex 0.9.4 release, as they have known bugs.
1115
(Martin Pool, John Arbash Meinel, #449372)
1117
* ``setup.py bdist_rpm`` now properly finds extra files needed for the
1118
build. (there is still the distutils bug
1119
http://bugs.python.org/issue644744) (Joe Julian, #175839)
1121
* The 2a format wasn't properly restarting autopacks when something
1122
changed underneath it (like another autopack). Now concurrent
1123
autopackers will properly succeed. (John Arbash Meinel, #495000)
1125
* ``TreeTransform`` can now handle when a delta says that the file id for
1126
the tree root changes. Rather than trying to rename your working
1127
directory, or failing early saying that you can't have multiple
1128
tree roots. This also fixes revert, update, and pull when the root id
1129
changes. (John Arbash Meinel, #494269, #504390)
1131
* ``_update_current_block`` no longer suppresses exceptions, so ^C at just
1132
the right time will get propagated, rather than silently failing to move
1133
the block pointer. (John Arbash Meinel, Gareth White, #495023)
1138
* We have a new ``test_source`` that ensures all pyrex ``cdef`` functions
1139
handle exceptions somehow. (Possibly by setting ``# cannot_raise``
1140
rather than an ``except ?:`` clause.) This should help prevent bugs like
1141
bug #495023. (John Arbash Meinel)
1147
:Codename: san francisco airport
1148
:2.1.0b4: 2009-12-14
1150
The fourth beta release in the 2.1 series brings with it a significant
1151
number of bugfixes (~20). The test suite is once again (finally) "green"
1152
on Windows, and should remain that way for future releases. There are a
1153
few performance related updates (faster upgrade and log), and several UI
1154
tweaks. There has also been a significant number of tweaks to the runtime
1155
documentation. 2.1.0b4 include everything from the 2.0.3 release.
1158
Compatibility Breaks
1159
********************
1161
* The BZR_SSH environmental variable may now be set to the path of a secure
1162
shell client. If currently set to the value ``ssh`` it will now guess the
1163
vendor of the program with that name, to restore the old behaviour that
1164
indicated the SSH Corporation client use ``sshcorp`` instead as the magic
1165
string. (Martin <gzlist@googlemail.com>, #176292)
1170
* ``bzr commit`` now has a ``--commit-time`` option.
1171
(Alexander Sack, #459276)
1173
* ``-Dhpss`` now increases logging done when run on the bzr server,
1174
similarly to how it works on the client. (John Arbash Meinel)
1176
* New option ``bzr unshelve --keep`` applies the changes and leaves them
1177
on the shelf. (Martin Pool, Oscar Fuentes, #492091)
1179
* The ``BZR_COLUMNS`` envrionment variable can be set to force bzr to
1180
respect a given terminal width. This can be useful when output is
1181
redirected or in obscure cases where the default value is not
1182
appropriate. Pagers can use it to get a better control of the line
1186
* The new command ``bzr lp-mirror`` will request that Launchpad update its
1187
mirror of a local branch. This command will only function if launchpadlib
1195
* After renaming a file, the dirstate could accidentally reference
1196
``source\\path`` rather than ``source/path`` on Windows. This might be a
1197
source of some dirstate-related failures. (John Arbash Meinel)
1199
* ``bzr commit`` now detects commit messages that looks like file names
1200
and issues a warning.
1201
(Gioele Barabucci, #73073)
1203
* ``bzr ignore /`` no longer causes an IndexError. (Gorden Tyler, #456036)
1205
* ``bzr log -n0 -rN`` should not return revisions beyond its merged revisions.
1206
(#325618, #484109, Marius Kruger)
1208
* ``bzr merge --weave`` and ``--lca`` will now create ``.BASE`` files for
1209
files with conflicts (similar to ``--merge3``). The contents of the file
1210
is a synthesis of all bases used for the merge.
1211
(John Arbash Meinel, #40412)
1213
* ``bzr mv --quiet`` really is quiet now. (Gordon Tyler, #271790)
1215
* ``bzr serve`` is more clear about the risk of supplying --allow-writes.
1216
(Robert Collins, #84659)
1218
* ``bzr serve --quiet`` really is quiet now. (Gordon Tyler, #252834)
1220
* Fix bug with redirected URLs over authenticated HTTP.
1221
(Glen Mailer, Neil Martinsen-Burrell, Vincent Ladeuil, #395714)
1223
* Interactive merge doesn't leave branch locks behind. (Aaron Bentley)
1225
* Lots of bugfixes for the test suite on Windows. We should once again
1226
have a test suite with no failures on Windows. (John Arbash Meinel)
1228
* ``osutils.terminal_width()`` obeys the BZR_COLUMNS environment
1229
variable but returns None if the terminal is not a tty (when output is
1230
redirected for example). Also fixes its usage under OSes that doesn't
1231
provide termios.TIOCGWINSZ. Make sure the corresponding tests runs on
1233
(Joke de Buhr, Vincent Ladeuil, #353370, #62539)
1234
(John Arbash Meinel, Vincent Ladeuil, #492561)
1236
* Terminate ssh subprocesses when no references to them remain, fixing
1237
subprocess and file descriptor leaks. (Andrew Bennetts, #426662)
1239
* The ``--hardlink`` option of ``bzr branch`` and ``bzr checkout`` now
1240
works for 2a format trees. Only files unaffected by content filters
1241
will be hardlinked. (Andrew Bennetts, #408193)
1243
* The new glob expansion on Windows would replace all ``\`` characters
1244
with ``/`` even if it there wasn't a glob to expand, the arg was quoted,
1245
etc. Now only change slashes if there is something being glob expanded.
1246
(John Arbash Meinel, #485771)
1248
* Use our faster ``KnownGraph.heads()`` functionality when computing the
1249
new rich-root heads. This can cut a conversion time in half (mysql from
1250
13.5h => 6.2h) (John Arbash Meinel, #487632)
1252
* When launching a external diff tool via bzr diff --using, temporary files
1253
are no longer created, rather, the path to the file in the working tree is
1254
passed to the external diff tool. This allows the file to be edited if the
1255
diff tool provides for this. (Gary van der Merwe, #490738)
1257
* The launchpad-open command can now be used from a subdirectory of a
1258
branch, not just from the root of the branch.
1259
(Neil Martinsen-Burrell, #489102)
1265
* ``bzr log`` is now faster. (Ian Clatworthy)
1267
* ``bzr update`` provides feedback on which branch it is up to date with.
1268
(Neil Martinsen-Burrell)
1270
* ``bzr upgrade`` from pre-2a to 2a can be significantly faster (4x).
1271
For details see the xml8 patch and heads() improvements.
1272
(John Arbash Meinel)
1274
* ``bzrlib.urlutils.local_path_from_url`` now accepts
1275
'file://localhost/' as well as 'file:///' URLs on POSIX. (Michael
1278
* The progress bar now shows only a spinner and per-operation counts,
1279
not an overall progress bar. The previous bar was often not correlated
1280
with real overall operation progress, either because the operations take
1281
nonlinear time, or because at the start of the operation Bazaar couldn't
1282
estimate how much work there was to do. (Martin Pool)
1287
* Lots of documentation tweaks for inline help topics and command help
1293
* ``bzrlib.textui`` (vestigial module) removed. (Martin Pool)
1295
* The Launchpad plugin now has a function ``login`` which will log in to
1296
Launchpad with launchpadlib, and ``load_branch`` which will return the
1297
Launchpad Branch object corresponding to a given Bazaar Branch object.
1303
* New test Feature: ``ModuleAvailableFeature``. It is designed to make it
1304
easier to handle what tests you want to run based on what modules can be
1305
imported. (Rather than lots of custom-implemented features that were
1306
basically copy-and-pasted.) (John Arbash Meinel)
1308
* ``osutils.timer_func()`` can be used to get either ``time.time()`` or
1309
``time.clock()`` when you want to do performance timing.
1310
``time.time()`` is limited to 15ms resolution on Windows, but
1311
``time.clock()`` gives CPU and not wall-clock time on other platforms.
1312
(John Arbash Meinel)
1314
* Several code paths that were calling ``Transport.get().read()`` have
1315
been changed to the equalivent ``Transport.get_bytes()``. The main
1316
difference is that the latter will explicitly call ``file.close()``,
1317
rather than expecting the garbage collector to handle it. This helps
1318
with some race conditions on Windows during the test suite and sftp
1319
tests. (John Arbash Meinel)
1324
* TestCaseWithMemoryTransport no longer sets $HOME and $BZR_HOME to
1325
unicode strings. (Michael Hudson, #464174)
1331
:Codename: little italy
1335
The third stable release of Bazaar has a small handful of bugfixes. As
1336
expected, this has no internal or external compatibility changes versus
1342
* ``bzr push --use-existing-dir`` no longer crashes if the directory
1343
exists but contains an invalid ``.bzr`` directory.
1344
(Andrew Bennetts, #423563)
1346
* Content filters are now applied correctly after pull, merge and switch.
1347
(Ian Clatworthy, #385879)
1349
* Fix a potential segfault in the groupcompress hash map handling code.
1350
When inserting new entries, if the final hash bucket was empty, we could
1351
end up trying to access if ``(last_entry+1)->ptr == NULL``.
1352
(John Arbash Meinel, #490228)
1354
* Improve "Binary files differ" hunk handling. (Aaron Bentley, #436325)
1360
:Codename: after sprint recovery
1361
:2.1.0b3: 2009-11-16
1363
This release was pushed up from its normal release cycle due to a
1364
regression in python 2.4 compatibility in 2.1.0b2. Since this regression
1365
was caught before 2.1.0b2 was officially announced, the full changelog
1366
includes both 2.1.0b3 and 2.1.0b2 changes.
1368
Highlights of 2.1.0b3 are: new globbing code for all commands on Windows,
1369
the test suite now conforms to python's trunk enhanced semantics (skip,
1370
etc.), and ``bzr info -v`` will now report the correct branch and repo
1371
formats for Remote objects.
1377
* Users can define a shelve editor to provide shelf functionality at a
1378
granularity finer than per-patch-hunk. (Aaron Bentley)
1383
* Fix for shell completion and short options. (Benoît PIERRE)
1385
* Fix ``bzr --profile-imports`` with Python 2.6. (Martin Pool)
1387
* Hooks daughter classes should always call the base constructor.
1388
(Alexander Belchenko, Vincent Ladeuil, #389648)
1390
* Improve "Binary files differ" hunk handling. (Aaron Bentley, #436325)
1392
* On Windows, do glob expansion at the command-line level (as is usually
1393
done in bash, etc.) This means that *all* commands get glob expansion
1394
(bzr status, bzr add, bzr mv, etc). It uses a custom command line
1395
parser, which allows us to know if a given section was quoted. It means
1396
you can now do ``bzr ignore "*.py"``.
1397
(John Arbash Meinel, #425510, #426410, #194450)
1399
* Sanitize commit messages that come in from the '-m' flag. We translate
1400
'\r\n' => '\n' and a plain '\r' => '\n'. The storage layer doesn't
1401
allow those because XML store silently translate it anyway. (The parser
1402
auto-translates \r\n => \n in ways that are hard for us to catch.)
1404
* Show correct branch and repository format descriptions in
1405
``bzr info -v`` on a smart server location. (Andrew Bennetts, #196080)
1407
* The fix for bug #186920 accidentally broke compatibility with python
1408
2.4. (Vincent Ladeuil, #475585)
1410
* Using ``Repository.get_commit_builder().record_iter_changes()`` now
1411
correctly sets ``self.inv_sha1`` to a sha1 string and
1412
``self.new_inventory`` to an Inventory instance after calling
1413
``self.finish_inventory()``. (Previously it accidently set both values
1414
as a tuple on ``self.inv_sha1``. This was missed because
1415
``repo.add_revision`` ignores the supplied inventory sha1 and recomputes
1416
the sha1 from the repo directly. (John Arbash Meinel)
1418
* Shelve command refuse to run if there is no real terminal.
1419
(Alexander Belchenko)
1421
* Avoid unnecessarily flushing of trace file; it's now unbuffered at the
1422
Python level. (Martin Pool)
1427
* Include Japanese translations for documentation (Inada Naoki)
1429
* New API ``ui_factory.make_output_stream`` to be used for sending bulk
1430
(rather than user-interaction) data to stdout. This automatically
1431
coordinates with progress bars or other terminal activity, and can be
1433
(Martin Pool, 493944)
1438
* Some of the core groupcompress functionality now releases the GIL before
1439
operation. Similar to how zlib and bz2 operate without the GIL in the
1440
core compression and decompression routines. (John Arbash Meinel)
1445
* -Dhpssvfs will now trigger on ``RemoteBzrDir._ensure_real``, providing
1446
more debugging of VFS access triggers. (Robert Collins)
1448
* KnownFailure is now signalled to ``ExtendedTestResult`` using the same
1449
method that Python 2.7 uses - ``addExpectedFailure``. (Robert Collins)
1451
* ``--parallel=fork`` is now compatible with --subunit.
1452
(Robert Collins, Vincent Ladeuil, #419776)
1454
* Reporting of failures shows test ids not descriptions and thus shows
1455
parameterised tests correctly. (Robert Collins)
1457
* TestNotApplicable is now handled within the TestCase.run method rather
1458
than being looked for within ``ExtendedTestResult.addError``. This
1459
provides better handling with other ``TestResult`` objects, degrading to
1460
sucess rather than error. (Robert Collins)
1462
* The private method ``_testConcluded`` on ``ExtendedTestResult`` has been
1463
removed - it was empty and unused. (Robert Collins)
1465
* UnavailableFeature is now handled within the TestCase.run method rather
1466
than being looked for within addError. If the Result object does not
1467
have an addNotSupported method, addSkip is attempted instead, and
1468
failing that addSuccess. (Robert Collins)
1470
* When a TestResult does not have an addSkip method, skipped tests are now
1471
reported as successful tests, rather than as errors. This change is
1472
to make it possible to get a clean test run with a less capable
1473
TestResult. (Robert Collins)
1480
:Codename: a load off my mind
1481
:2.1.0b2: 2009-11-02
1483
This is our second feature-filled release since 2.0, pushing us down the
1484
path to a 2.1.0. Once again, all bugfixes in 2.0.2 are present in 2.1.0b2.
1486
Key highlights in this release are: improved handling of
1487
failures-during-cleanup for commit, fixing a long-standing bug with
1488
``bzr+http`` and shared repositories, all ``lp:`` urls to be resolved
1489
behind proxies, and a new StaticTuple datatype, allowing us to reduce
1490
memory consumption (50%) and garbage collector overhead (40% faster) for
1493
* A new ``--concurrency`` option has been added as well as an associated
1494
BZR_CONCURRENCY environment variable to specify the number of
1495
processes that can be run concurrently when running ``bzr selftest``. The
1496
command-line option overrides the environment variable if both are
1497
specified. If none is specified. the number of processes is obtained
1498
from the OS as before. (Matt Nordhoff, Vincent Ladeuil)
1503
* ``bzr+http`` servers no longer give spurious jail break errors when
1504
serving branches inside a shared repository. (Andrew Bennetts, #348308)
1506
* Errors during commit are handled more robustly so that knock-on errors
1507
are less likely to occur, and will not obscure the original error if
1508
they do occur. This fixes some causes of ``TooManyConcurrentRequests``
1509
and similar errors. (Andrew Bennetts, #429747, #243391)
1511
* Launchpad urls can now be resolved from behind proxies.
1512
(Gordon Tyler, Vincent Ladeuil, #186920)
1514
* Reduce the strictness for StaticTuple, instead add a debug flag
1515
``-Dstatic_tuple`` which will change apis to be strict and raise errors.
1516
This way, most users won't see failures, but developers can improve
1517
internals. (John Arbash Meinel, #471193)
1519
* TreeTransform.adjust_path updates the limbo paths of descendants of adjusted
1520
files. (Aaron Bentley)
1522
* Unicode paths are now handled correctly and consistently by the smart
1523
server. (Andrew Bennetts, Michael Hudson, #458762)
1528
* When reading index files, we now use a ``StaticTuple`` rather than a
1529
plain ``tuple`` object. This generally gives a 20% decrease in peak
1530
memory, and can give a performance boost up to 40% on large projects.
1531
(John Arbash Meinel)
1533
* Peak memory under certain operations has been reduced significantly.
1534
(eg, 'bzr branch launchpad standalone' is cut in half)
1535
(John Arbash Meinel)
1540
* Filtered views user documentation upgraded to refer to format 2a
1541
instead of pre-2.0 formats. (Ian Clatworthy)
1546
* Remove deprecated ``CLIUIFactory``. (Martin Pool)
1548
* ``UIFactory`` now has new ``show_error``, ``show_message`` and
1549
``show_warning`` methods, which can be hooked by non-text UIs.
1555
* Added ``bzrlib._simple_set_pyx``. This is a hybrid between a Set and a
1556
Dict (it only holds keys, but you can lookup the object located at a
1557
given key). It has significantly reduced memory consumption versus the
1558
builtin objects (1/2 the size of Set, 1/3rd the size of Dict). This is
1559
used as the interning structure for StaticTuple objects.
1560
(John Arbash Meinel)
1562
* ``bzrlib._static_tuple_c.StaticTuple`` is now available and used by
1563
the btree index parser and the chk map parser. This class functions
1564
similarly to ``tuple`` objects. However, it can only point to a limited
1565
collection of types. (Currently StaticTuple, str, unicode, None, bool,
1566
int, long, float, but not subclasses). This allows us to remove it from
1567
the garbage collector (it cannot be in a cycle), it also allows us to
1568
intern the objects. In testing, this can reduce peak memory by 20-40%,
1569
and significantly improve performance by removing objects from being
1570
inspected by the garbage collector. (John Arbash Meinel)
1572
* ``GroupCompressBlock._ensure_content()`` will now release the
1573
``zlib.decompressobj()`` when the first request is for all of the
1574
content. (Previously it would only be released if you made a request for
1575
part of the content, and then all of it later.) This turns out to be a
1576
significant memory savings, as a ``zstream`` carries around approx 260kB
1577
of internal state and buffers. (For branching bzr.dev this drops peak
1578
memory from 382MB => 345MB.) (John Arbash Meinel)
1580
* When streaming content between ``2a`` format repositories, we now clear
1581
caches from earlier versioned files. (So 'revisions' is cleared when we
1582
start reading 'inventories', etc.) This can have a significant impact on
1583
peak memory for initial copies (~200MB). (John Arbash Meinel)
1589
:Codename: after the scare
1592
The second in our "let's keep the stable bugfixes flowing" series. As
1593
expected this has a few (~9) bugfixes relative to 2.0.1, and no major api
1594
changes or features.
1599
* Avoid "NoneType has no attribute st_mode" error when files disappear
1600
from a directory while it's being read. (Martin Pool, #446033)
1602
* Content filters are now applied correctly after revert.
1605
* Diff parsing handles "Binary files differ" hunks. (Aaron Bentley, #436325)
1607
* Fetching from stacked pre-2a repository via a smart server no longer
1608
fails intermittently with "second push failed to complete".
1609
(Andrew Bennetts, #437626)
1611
* Fix typos left after test_selftest refactoring.
1612
(Vincent Ladeuil, Matt Nordhoff, #461149)
1614
* Fixed ``ObjectNotLocked`` errors during ``bzr log -r NNN somefile``.
1615
(Andrew Bennetts, #445171)
1617
* PreviewTree file names are not limited by the encoding of the temp
1618
directory's filesystem. (Aaron Bentley, #436794)
1623
* ``bzr log`` now read-locks branches exactly once, so makes better use of
1624
data caches. (Andrew Bennetts)
1629
* Filtered views user documentation upgraded to refer to format 2a
1630
instead of pre-2.0 formats. (Ian Clatworthy)
1636
:Codename: While the cat is away
1637
:2.1.0b1: 2009-10-14
1639
This is the first development release in the new split "stable" and
1640
"development" series. As such, the release is a snapshot of bzr.dev
1641
without creating a release candidate first. This release includes a
1642
fair amount of internal changes, with deprecated code being removed,
1643
and several new feature developments. People looking for a stable code
1644
base with only bugfixes should focus on the 2.0.1 release. All bugfixes
1645
present in 2.0.1 are present in 2.1.0b1.
1647
Highlights include support for ``bzr+ssh://host/~/homedir`` style urls,
1648
finer control over the plugin search path via extended BZR_PLUGIN_PATH
1649
syntax, visible warnings when extension modules fail to load, and improved
1650
error handling during unlocking.
1656
* Bazaar can now send mail through Apple OS X Mail.app.
1659
* ``bzr+ssh`` and ``bzr`` paths can now be relative to home directories
1660
specified in the URL. Paths starting with a path segment of ``~`` are
1661
relative to the home directory of the user running the server, and paths
1662
starting with ``~user`` are relative to the home directory of the named
1663
user. For example, for a user "bob" with a home directory of
1664
``/home/bob``, these URLs are all equivalent:
1666
* ``bzr+ssh://bob@host/~/repo``
1667
* ``bzr+ssh://bob@host/~bob/repo``
1668
* ``bzr+ssh://bob@host/home/bob/repo``
1670
If ``bzr serve`` was invoked with a ``--directory`` argument, then no
1671
home directories outside that directory will be accessible via this
1674
This is a feature of ``bzr serve``, so pre-2.1 clients will
1675
automatically benefit from this feature when ``bzr`` on the server is
1676
upgraded. (Andrew Bennetts, #109143)
1678
* Extensions can now be compiled if either Cython or Pyrex is available.
1679
Currently Pyrex is preferred, but that may change in the future.
1682
* Give more control on BZR_PLUGIN_PATH by providing a way to refer to or
1683
disable the user, site and core plugin directories.
1684
(Vincent Ladeuil, #412930, #316192, #145612)
1689
* Bazaar's native protocol code now correctly handles EINTR, which most
1690
noticeably occurs if you break in to the debugger while connected to a
1691
bzr+ssh server. You can now can continue from the debugger (by typing
1692
'c') and the process continues. However, note that pressing C-\ in the
1693
shell may still kill the SSH process, which is bug 162509, so you must
1694
sent a signal to the bzr process specifically, for example by typing
1695
``kill -QUIT PID`` in another shell. (Martin Pool, #341535)
1697
* ``bzr add`` in a tree that has files with ``\r`` or ``\n`` in the
1698
filename will issue a warning and skip over those files.
1699
(Robert Collins, #3918)
1701
* ``bzr dpush`` now aborts if uncommitted changes (including pending merges)
1702
are present in the working tree. The configuration option ``dpush_strict``
1703
can be used to set the default for this behavior.
1704
(Vincent Ladeuil, #438158)
1706
* ``bzr merge`` and ``bzr remove-tree`` now requires --force if pending
1707
merges are present in the working tree.
1708
(Vincent Ladeuil, #426344)
1710
* Clearer message when Bazaar runs out of memory, instead of a ``MemoryError``
1711
traceback. (Martin Pool, #109115)
1713
* Don't give a warning on Windows when failing to import ``_readdir_pyx``
1714
as it is never built. (John Arbash Meinel, #430645)
1716
* Don't restrict the command name used to run the test suite.
1717
(Vincent Ladeuil, #419950)
1719
* ftp transports were built differently when the kerberos python module was
1720
present leading to obscure failures related to ASCII/BINARY modes.
1721
(Vincent Ladeuil, #443041)
1723
* Network streams now decode adjacent records of the same type into a
1724
single stream, reducing layering churn. (Robert Collins)
1726
* PreviewTree behaves correctly when get_file_mtime is invoked on an unmodified
1727
file. (Aaron Bentley, #251532)
1729
* Registry objects should not use iteritems() when asked to use items().
1730
(Vincent Ladeuil, #430510)
1732
* Weave based repositories couldn't be cloned when committers were using
1733
domains or user ids embedding '.sig'. Now they can.
1734
(Matthew Fuller, Vincent Ladeuil, #430868)
1739
* Revision specifiers can now be given in a more DWIM form, without
1740
needing explicit prefixes for specifiers like tags or revision id's.
1741
See ``bzr help revisionspec`` for full details. (Matthew Fuller)
1743
* Bazaar gives a warning before exiting, and writes into ``.bzr.log``, if
1744
compiled extensions can't be loaded. This typically indicates a
1745
packaging or installation problem. In this case Bazaar will keep
1746
running using pure-Python versions, but this may be substantially
1747
slower. The warning can be disabled by setting
1748
``ignore_missing_extensions = True`` in ``bazaar.conf``.
1749
See also <https://answers.launchpad.net/bzr/+faq/703>.
1750
(Martin Pool, #406113, #430529)
1752
* Secondary errors that occur during Branch.unlock and Repository.unlock
1753
no longer obscure the original error. These methods now use a new
1754
decorator, ``only_raises``. This fixes many causes of
1755
``TooManyConcurrentRequests`` and similar errors.
1756
(Andrew Bennetts, #429747)
1761
* Describe the new shell-like test feature. (Vincent Ladeuil)
1763
* Help on hooks no longer says 'Not deprecated' for hooks that are
1764
currently supported. (Ian Clatworthy, #422415)
1769
* ``bzrlib.user_encoding`` has been removed; use
1770
``bzrlib.osutils.get_user_encoding`` instead. (Martin Pool)
1772
* ``bzrlib.tests`` now uses ``stopTestRun`` for its ``TestResult``
1773
subclasses - the same as python's unittest module. (Robert Collins)
1775
* ``diff._get_trees_to_diff`` has been renamed to
1776
``diff.get_trees_and_branches_to_diff``. It is now a public API, and it
1777
returns the old and new branches. (Gary van der Merwe)
1779
* ``bzrlib.trace.log_error``, ``error`` and ``info`` have been deprecated.
1782
* ``MutableTree.has_changes()`` does not require a tree parameter anymore. It
1783
now defaults to comparing to the basis tree. It now checks for pending
1784
merges too. ``Merger.check_basis`` has been deprecated and replaced by the
1785
corresponding has_changes() calls. ``Merge.compare_basis``,
1786
``Merger.file_revisions`` and ``Merger.ensure_revision_trees`` have also
1788
(Vincent Ladeuil, #440631)
1790
* ``ProgressTask.note`` is deprecated.
1796
* Added ``-Drelock`` debug flag. It will ``note`` a message every time a
1797
repository or branch object is unlocked then relocked the same way.
1800
* ``BTreeLeafParser.extract_key`` has been tweaked slightly to reduce
1801
mallocs while parsing the index (approx 3=>1 mallocs per key read).
1802
This results in a 10% speedup while reading an index.
1803
(John Arbash Meinel)
1805
* The ``bzrlib.lsprof`` module has a new class ``BzrProfiler`` which makes
1806
profiling in some situations like callbacks and generators easier.
1812
* Passing ``--lsprof-tests -v`` to bzr selftest will cause lsprof output to
1813
be output for every test. Note that this is very verbose! (Robert Collins)
1815
* Setting ``BZR_TEST_PDB=1`` when running selftest will cause a pdb
1816
post_mortem to be triggered when a test failure occurs. (Robert Collins)
1818
* Shell-like tests can now be written. Code in ``bzrlib/tests/script.py`` ,
1819
documentation in ``developers/testing.txt`` for details.
1822
* Some tests could end up with the same id, that was dormant for
1824
(Vincent Ladeuil, #442980)
1826
* Stop showing the number of tests due to missing features in the test
1827
progress bar. (Martin Pool)
1829
* Test parameterisation now does a shallow copy, not a deep copy of the test
1830
to be parameterised. This is not expected to break external use of test
1831
parameterisation, and is substantially faster. (Robert Collins)
1833
* Tests that try to open a bzr dir on an arbitrary transport will now
1834
fail unless they have explicitly permitted the transport via
1835
``self.permit_url``. The standard test factories such as ``self.get_url``
1836
will permit the urls they provide automatically, so only exceptional
1837
tests should need to do this. (Robert Collins)
1839
* The break-in test no longer cares about clean shutdown of the child,
1840
instead it is happy if the debugger starts up. (Robert Collins)
1842
* The full test suite is expected to pass when the C extensions are not
1843
present. (Vincent Ladeuil, #430749)
1849
:Codename: Stability First
1852
The first of our new ongoing bugfix-only stable releases has arrived. It
1853
includes a collection of 12 bugfixes applied to bzr 2.0.0, but does not
1854
include any of the feature development in the 2.1.0 series.
1860
* ``bzr add`` in a tree that has files with ``\r`` or ``\n`` in the
1861
filename will issue a warning and skip over those files.
1862
(Robert Collins, #3918)
1864
* bzr will attempt to authenticate with SSH servers that support
1865
``keyboard-interactive`` auth but not ``password`` auth when using
1866
Paramiko. (Andrew Bennetts, #433846)
1868
* Fixed fetches from a stacked branch on a smart server that were failing
1869
with some combinations of remote and local formats. This was causing
1870
"unknown object type identifier 60" errors. (Andrew Bennetts, #427736)
1872
* Fixed ``ObjectNotLocked`` errors when doing some log and diff operations
1873
on branches via a smart server. (Andrew Bennetts, #389413)
1875
* Handle things like ``bzr add foo`` and ``bzr rm foo`` when the tree is
1876
at the root of a drive. ``osutils._cicp_canonical_relpath`` always
1877
assumed that ``abspath()`` returned a path that did not have a trailing
1878
``/``, but that is not true when working at the root of the filesystem.
1879
(John Arbash Meinel, Jason Spashett, #322807)
1881
* Hide deprecation warnings for 'final' releases for python2.6.
1882
(John Arbash Meinel, #440062)
1884
* Improve the time for ``bzr log DIR`` for 2a format repositories.
1885
We had been using the same code path as for <2a formats, which required
1886
iterating over all objects in all revisions.
1887
(John Arbash Meinel, #374730)
1889
* Make sure that we unlock the tree if we fail to create a TreeTransform
1890
object when doing a merge, and there is limbo, or pending-deletions
1891
directory. (Gary van der Merwe, #427773)
1893
* Occasional IndexError on renamed files have been fixed. Operations that
1894
set a full inventory in the working tree will now go via the
1895
apply_inventory_delta code path which is simpler and easier to
1896
understand than dirstates set_state_from_inventory method. This may
1897
have a small performance impact on operations built on _write_inventory,
1898
but such operations are already doing full tree scans, so no radical
1899
performance change should be observed. (Robert Collins, #403322)
1901
* Retrieving file text or mtime from a _PreviewTree has good performance when
1902
there are many changes. (Aaron Bentley)
1904
* The CHK index pages now use an unlimited cache size. With a limited
1905
cache and a large project, the random access of chk pages could cause us
1906
to download the entire cix file many times.
1907
(John Arbash Meinel, #402623)
1909
* When a file kind becomes unversionable after being added, a sensible
1910
error will be shown instead of a traceback. (Robert Collins, #438569)
1915
* Improved README. (Ian Clatworthy)
1917
* Improved upgrade documentation for Launchpad branches.
1925
:Codename: Instant Karma
1927
This release of Bazaar makes the 2a (previously 'brisbane-core') format
1928
the default when new branches or repositories are created. This format is
1929
substantially smaller and faster for many operations. Most of the work in
1930
this release focuses on bug fixes and stabilization, covering both 2a and
1931
previous formats. (See the Upgrade Guide for information on migrating
1934
This release also improves the documentation content and presentation,
1935
including adding Windows HtmlHelp manuals.
1937
The Bazaar team decided that 2.0 will be a long-term supported release,
1938
with bugfix-only 2.0.x releases based on it, continuing for at least six
1939
months or until the following stable release.
1941
Changes from 2.0.0rc2 to final
1942
******************************
1944
* Officially branded as 2.0.0 rather than 2.0 to clarify between things
1945
that "want to happen on the 2.0.x stable series" versus things that want
1946
to "land in 2.0.0". (Changes how bzrlib._format_version_tuple() handles
1947
micro = 0.) (John Arbash Meinel)
1953
:2.0.0rc2: 2009-09-10
1958
* Added post_commit hook for mutable trees. This allows the keywords
1959
plugin to expand keywords on files changed by the commit.
1960
(Ian Clatworthy, #408841)
1965
* Bazaar's native protocol code now correctly handles EINTR, which most
1966
noticeably occurs if you break in to the debugger while connected to a
1967
bzr+ssh server. You can now can continue from the debugger (by typing
1968
'c') and the process continues. However, note that pressing C-\ in the
1969
shell may still kill the SSH process, which is bug 162509, so you must
1970
sent a signal to the bzr process specifically, for example by typing
1971
``kill -QUIT PID`` in another shell. (Martin Pool, #341535)
1973
* ``bzr check`` in pack-0.92, 1.6 and 1.9 format repositories will no
1974
longer report incorrect errors about ``Missing inventory ('TREE_ROOT', ...)``
1975
(Robert Collins, #416732)
1977
* ``bzr info -v`` on a 2a format still claimed that it was a "Development
1978
format" (John Arbash Meinel, #424392)
1980
* ``bzr log stacked-branch`` shows the full log including
1981
revisions that are in the fallback repository. (Regressed in 2.0rc1).
1982
(John Arbash Meinel, #419241)
1984
* Clearer message when Bazaar runs out of memory, instead of a ``MemoryError``
1985
traceback. (Martin Pool, #109115)
1987
* Conversion to 2a will create a single pack for all the new revisions (as
1988
long as it ran without interruption). This improves both ``bzr upgrade``
1989
and ``bzr pull`` or ``bzr merge`` from local branches in older formats.
1990
The autopack logic that occurs every 100 revisions during local
1991
conversions was not returning that pack's identifier, which resulted in
1992
the partial packs created during the conversion not being consolidated
1993
at the end of the conversion process. (Robert Collins, #423818)
1995
* Fetches from 2a to 2a are now again requested in 'groupcompress' order.
1996
Groups that are seen as 'underutilized' will be repacked on-the-fly.
1997
This means that when the source is fully packed, there is minimal
1998
overhead during the fetch, but if the source is poorly packed the result
1999
is a fairly well packed repository (not as good as 'bzr pack' but
2000
good-enough.) (Robert Collins, John Arbash Meinel, #402652)
2002
* Fix a potential segmentation fault when doing 'log' of a branch that had
2003
ghosts in its mainline. (Evaluating None as a tuple is bad.)
2004
(John Arbash Meinel, #419241)
2006
* ``groupcompress`` sort order is now more stable, rather than relying on
2007
``topo_sort`` ordering. The implementation is now
2008
``KnownGraph.gc_sort``. (John Arbash Meinel)
2010
* Local data conversion will generate correct deltas. This is a critical
2011
bugfix vs 2.0rc1, and all 2.0rc1 users should upgrade to 2.0rc2 before
2012
converting repositories. (Robert Collins, #422849)
2014
* Network streams now decode adjacent records of the same type into a
2015
single stream, reducing layering churn. (Robert Collins)
2017
* Prevent some kinds of incomplete data from being committed to a 2a
2018
repository, such as revisions without inventories, a missing chk_bytes
2019
record for an inventory, or a missing text referenced by an inventory.
2020
(Andrew Bennetts, #423506, #406687)
2025
* Fix assertion error about "_remember_remote_is_before" when pushing to
2026
older smart servers.
2027
(Andrew Bennetts, #418931)
2029
* Help on hooks no longer says 'Not deprecated' for hooks that are
2030
currently supported. (Ian Clatworthy, #422415)
2032
* PDF and CHM (Windows HtmlHelp) formats are now supported for the
2033
user documentation. The HTML documentation is better broken up into
2034
topics. (Ian Clatworthy)
2036
* The developer and foreign language documents are now separated
2037
out so that searching in the HTML and CHM files produces more
2038
useful results. (Ian Clatworthy)
2040
* The main table of contents now provides links to the new Migration Docs
2041
and Plugins Guide. (Ian Clatworthy)
2047
:Codename: no worries
2048
:2.0.0rc1: 2009-08-26
2050
Compatibility Breaks
2051
********************
2053
* The default format for bzr is now ``2a``. This format brings many
2054
significant performance and size improvements. bzr can pull from
2055
any existing repository into a ``2a`` one, but can only transfer
2056
from ``2a`` into ``rich-root`` repositories. The Upgrade guide
2057
has more information about this change. (Robert Collins)
2059
* On Windows auto-detection of Putty's plink.exe is disabled.
2060
Default SSH client for Windows is paramiko. User still can force
2061
usage of plink if explicitly set environment variable BZR_SSH=plink.
2062
(#414743, Alexander Belchenko)
2067
* ``bzr branch --switch`` can now switch the checkout in the current directory
2068
to the newly created branch. (Lukáš Lalinský)
2073
* Further tweaks to handling of ``bzr add`` messages about ignored files.
2074
(Jason Spashett, #76616)
2076
* Fetches were being requested in 'groupcompress' order, but weren't
2077
recombining the groups. Thus they would 'fragment' to get the correct
2078
order, but not 'recombine' to actually benefit from it. Until we get
2079
recombining to work, switching to 'unordered' fetches avoids the
2080
fragmentation. (John Arbash Meinel, #402645)
2082
* Fix a pycurl related test failure on karmic by recognizing an error
2083
raised by newer versions of pycurl.
2084
(Vincent Ladeuil, #306264)
2086
* Fix a test failure on karmic by making a locale test more robust.
2087
(Vincent Ladeuil, #413514)
2089
* Fix IndexError printing CannotBindAddress errors.
2090
(Martin Pool, #286871)
2092
* Fix "Revision ... not present" errors when upgrading stacked branches,
2093
or when doing fetches from a stacked source to a stacked target.
2094
(Andrew Bennetts, #399140)
2096
* ``bzr branch`` of 2a repositories over HTTP is much faster. bzr now
2097
batches together small fetches from 2a repositories, rather than
2098
fetching only a few hundred bytes at a time.
2099
(Andrew Bennetts, #402657)
2104
* A better description of the platform is shown in crash tracebacks, ``bzr
2105
--version`` and ``bzr selftest``.
2106
(Martin Pool, #409137)
2108
* bzr can now (again) capture crash data through the apport library,
2109
so that a single human-readable file can be attached to bug reports.
2110
This can be disabled by using ``-Dno_apport`` on the command line, or by
2111
putting ``no_apport`` into the ``debug_flags`` section of
2113
(Martin Pool, Robert Collins, #389328)
2115
* ``bzr push`` locally on windows will no longer give a locking error with
2116
dirstate based formats. (Robert Collins)
2118
* ``bzr shelve`` and ``bzr unshelve`` now work on windows.
2119
(Robert Collins, #305006)
2121
* Commit of specific files no longer prevents using the iter_changes
2122
codepath. On 2a repositories, commit of specific files should now be as
2123
fast, or slightly faster, than a full commit. (Robert Collins)
2125
* The internal core code that handles specific file operations like
2126
``bzr st FILENAME`` or ``bzr commit FILENAME`` has been changed to
2127
include the parent directories if they have altered, and when a
2128
directory stops being a directory its children are always included. This
2129
fixes a number of causes for ``InconsistentDelta`` errors, and permits
2130
faster commit of specific paths. (Robert Collins, #347649)
2135
* New developer documentation for content filtering.
2141
* ``bzrlib.shelf_ui`` has had the ``from_args`` convenience methods of its
2142
classes changed to manage lock lifetime of the trees they open in a way
2143
consistent with reader-exclusive locks. (Robert Collins, #305006)
2151
:Codename: nein nein nein!
2154
This release fixes two small but worthwhile bugs relevant to users on
2155
Microsoft Windows: some commands that failed on with locking errors will
2156
now work, and a bug that caused poor performance after committing a file
2157
with line-ending conversion has now been fixed. It also fixes a bug in
2158
pushing to older servers.
2163
* Fixed a problem where using content filtering and especially end-of-line
2164
conversion will commit too many copies a file.
2165
(Martin Pool, #415508)
2167
* Fix assertion error about ``_remember_remote_is_before`` in
2168
``set_tags_bytes`` when pushing to older smart servers.
2169
(Andrew Bennetts, Alexander Belchenko, #418931)
2174
* ``bzr push`` locally on Windows will no longer give a locking error with
2175
dirstate based formats. (Robert Collins)
2177
* ``bzr shelve`` and ``bzr unshelve`` now work on Windows.
2178
(Robert Collins, #305006)
2183
* ``bzrlib.shelf_ui`` has had the ``from_args`` convenience methods of its
2184
classes changed to manage lock lifetime of the trees they open in a way
2185
consistent with reader-exclusive locks. (Robert Collins, #305006)
2187
* ``Tree.path_content_summary`` may return a size of None, when called on
2188
a tree with content filtering where the size of the canonical form
2189
cannot be cheaply determined. (Martin Pool)
2191
* When manually creating transport servers in test cases, a new helper
2192
``TestCase.start_server`` that registers a cleanup and starts the server
2193
should be used. (Robert Collins)
2198
Compatibility Breaks
2199
********************
2201
* Committing directly to a stacked branch from a lightweight checkout will
2202
no longer work. In previous versions this would appear to work but would
2203
generate repositories with insufficient data to create deltas, leading
2204
to later errors when branching or reading from the repository.
2205
(Robert Collins, bug #375013)
2213
* Fetching from 2a branches from a version-2 bzr protocol would fail to
2214
copy the internal inventory pages from the CHK store. This cannot happen
2215
in normal use as all 2a compatible clients and servers support the
2216
version-3 protocol, but it does cause test suite failures when testing
2217
downlevel protocol behaviour. (Robert Collins)
2219
* Fix a test failure on karmic by making a locale test more robust.
2220
(Vincent Ladeuil, #413514)
2222
* Fixed "Pack ... already exists" error when running ``bzr pack`` on a
2223
fully packed 2a repository. (Andrew Bennetts, #382463)
2225
* Further tweaks to handling of ``bzr add`` messages about ignored files.
2226
(Jason Spashett, #76616)
2228
* Properly handle fetching into a stacked branch while converting the
2229
data, especially when there are also ghosts. The code was filling in
2230
parent inventories incorrectly, and also not handling when one of the
2231
parents was a ghost. (John Arbash Meinel, #402778, #412198)
2233
* ``RemoteStreamSource.get_stream_for_missing_keys`` will fetch CHK
2234
inventory pages when appropriate (by falling back to the vfs stream
2235
source). (Andrew Bennetts, #406686)
2237
* StreamSource generates rich roots from non-rich root sources correctly
2238
now. (Andrew Bennetts, #368921)
2240
* When deciding whether a repository was compatible for upgrading or
2241
fetching, we previously incorrectly checked the default repository
2242
format for the bzrdir format, rather than the format that was actually
2243
present on disk. (Martin Pool, #408824)
2248
* A better description of the platform is shown in crash tracebacks, ``bzr
2249
--version`` and ``bzr selftest``.
2250
(Martin Pool, #409137)
2252
* Cross-format fetches (such as between 1.9-rich-root and 2a) via the
2253
smart server are more efficient now. They send inventory deltas rather
2254
than full inventories. The smart server has two new requests,
2255
``Repository.get_stream_1.19`` and ``Repository.insert_stream_1.19`` to
2256
support this. (Andrew Bennetts, #374738, #385826)
2258
* Extracting the full ancestry and computing the ``merge_sort`` is now
2259
significantly faster. This effects things like ``bzr log -n0``. (For
2260
example, ``bzr log -r -10..-1 -n0 bzr.dev`` is 2.5s down to 1.0s.
2261
(John Arbash Meinel)
2272
* ``-Dstrict_locks`` can now be used to check that read and write locks
2273
are treated properly w.r.t. exclusivity. (We don't try to take an OS
2274
read lock on a file that we already have an OS write lock on.) This is
2275
now set by default for all tests, if you have a test which cannot be
2276
fixed, you can use ``self.thisFailsStrictLockCheck()`` as a
2277
compatibility knob. (John Arbash Meinel)
2279
* InterDifferingSerializer is now only used locally. Other fetches that
2280
would have used InterDifferingSerializer now use the more network
2281
friendly StreamSource, which now automatically does the same
2282
transformations as InterDifferingSerializer. (Andrew Bennetts)
2284
* ``KnownGraph`` now has a ``.topo_sort`` and ``.merge_sort`` member which
2285
are implemented in pyrex and significantly faster. This is exposed along
2286
with ``CombinedGraphIndex.find_ancestry()`` as
2287
``VersionedFiles.get_known_graph_ancestry(keys)``.
2288
(John Arbash Meinel)
2290
* RemoteBranch.open now honours ignore_fallbacks correctly on bzr-v2
2291
protocols. (Robert Collins)
2293
* The index code now has some specialized routines to extract the full
2294
ancestry of a key in a more efficient manner.
2295
``CombinedGraphIndex.find_ancestry()``. (Time to get ancestry for
2296
bzr.dev drops from 1.5s down to 300ms. For OOo from 33s => 10.5s) (John
2302
* Install the test ssl certificate and key so that installed bzr
2303
can run the https tests. (Denys Duchier, #392401)
2309
:Codename: little traveller
2311
:1.18rc1: 2009-08-10
2313
This release of Bazaar marches on towards the 2.0 release in which the 2a
2314
'brisbane-core' format becomes generally recommended. Most of the work in
2315
this release now focusses on bug fixes and stabilization, covering both 2a
2316
and previous formats. There is a new text-mode interactive merge feature,
2317
a new guide to migration to 2a format in the user documentation, and
2318
pushing branches to a smart server is now much faster.
2320
The Bazaar team decided that 2.0 will be a long-term supported release,
2321
with bugfix-only releases based on it continuing for at least six months
2322
or until the following stable release.
2324
There are no changes from 1.18rc1 to 1.18.
2329
* ``bzr merge --interactive`` applies a user-selected portion of the
2330
merge. The UI is similar to ``shelve``. (Aaron Bentley)
2332
* ``bzr reconfigure`` now takes options ``--stacked-on URL`` and
2333
``--unstacked`` to change stacking of a branch.
2334
(Martin Pool, #391411)
2339
* Annotating on a stacked branch will now succeed in simple scenarios.
2340
There are still some complex scenarios where it will fail (bug #399884)
2341
(John Arbash Meinel, #393366)
2343
* A progress bar is no longer left dangling when ``bzr selftest``
2344
completes, and the progress bar updates with zero latency so the
2345
displayed test name is always the one that's actually running.
2346
(Martin Pool, #123688)
2348
* Authenticating against an ssh server now uses ``auth_none`` to determine
2349
if password authentication is even supported. This fixes a bug where
2350
users would be prompted for a launchpad password, even though launchpad
2351
only supports publickey authentication. (John Arbash Meinel, #375867)
2353
* BranchBuilder now accepts timezone to avoid test failures in countries far
2354
from GMT. (Vincent Ladeuil, #397716)
2356
* ``bzr commit`` no longer saves the unversioning of missing files until
2357
the commit has completed on the branch. This means that aborting a
2358
commit that found a missing file will leave the tree unedited.
2359
(Robert Collins, #282402)
2361
* ``bzr mv`` no longer takes out branch locks, which allows it to work
2362
when the branch is readonly. (Robert Collins, #216541)
2364
* ``bzr revert .`` no longer generates an InconsistentDelta error when
2365
there are missing subtrees. (Robert Collins, #367632)
2367
* ``bzr send`` now generates valid bundles with ``--2a`` formats. However,
2368
do to internal changes necessary to support this, older clients will
2369
fail when trying to insert them. For newer clients, the bundle can be
2370
used to apply the changes to any rich-root compatible format.
2371
(John Arbash Meinel, #393349)
2373
* Cope with FTP servers that don't support restart/append by falling back
2374
to reading and then rewriting the whole file, such as TahoeLAFS. (This
2375
fallback may be slow for some access patterns.) (Nils Durner, #294709)
2377
* Encode the paths in ``mbcs`` encoding on Windows when spawning an
2378
external diff client. This at least allows supporting filenames that are
2379
not ascii, but are present in the current locale. Ideally we would be
2380
able to pass the Unicode path, but that would be client dependent.
2381
(John Arbash Meinel, #382709)
2383
* Fix a compile bug on Solaris having to do with const and
2384
pointer-to-pointers. (John Arbash Meinel, #408441)
2386
* Fixed a NameError that occurs when merging or pulling from a URL that
2387
causes a redirection loop when bzr tries to read a URL as a bundle.
2388
(Andrew Bennetts, #400847)
2390
* Fix ``AttributeError: 'TestUIFactory' object has no attribute 'tick'``
2391
running send and similar commands on 2a formats.
2392
(Martin Pool, #408201)
2394
* Fix crash in some invocations of ``bzr status`` in format 2a.
2395
(Martin Pool, #403523)
2397
* Fixed export to existing directory: if directory is empty then export
2398
will succeed, otherwise it fails with error.
2399
(Alexander Belchenko, #406174)
2401
* Fixed spurious "Source branch does not support stacking" warning when
2402
pushing. (Andrew Bennetts, #388908)
2404
* Fixed spurious transport activity indicator appearing while tests are
2405
running. (Martin Pool, #343532)
2407
* Merge now correctly handles empty right-hand revision specs.
2408
(Aaron Bentley, #333961)
2410
* Renames to lexographically lower basenames in trees that have never been
2411
committed to will no longer corrupt the dirstate. This was caused by an
2412
bug in the dirstate update_minimal method. (Robert Collins, #395556)
2414
* Requests for unknown methods no longer cause the smart server to log
2415
lots of backtraces about ``UnknownSmartMethod``, ``do_chunk`` or
2416
``do_end``. (Andrew Bennetts, #338561)
2418
* Shelve will not shelve the initial add of the tree root. (Aaron Bentley)
2420
* Streaming from bzr servers where there is a chain of stacked branches
2421
(A stacked on B stacked on C) will now work. (Robert Collins, #406597)
2423
* The environment variable ``BZR_PROGRESS_BAR`` set to either ``text`` or ``none``
2424
always forces progress bars either on or off respectively. Otherwise,
2425
they're turned on if ``TERM`` is not ``dumb`` and stderr is a terminal.
2426
bzr always uses the 'text' user interface when run as a command, so
2427
``BZR_USE_TEXT_UI`` is no longer needed.
2428
(Martin Pool, #339385, #387717)
2430
* The optional ``_knit_load_data_pyx`` C extension was never being
2431
imported. This caused significant slowdowns when reading data from
2432
repositories. (Andrew Bennetts, #405653)
2434
* The ``--hardlink`` option to ``branch`` and ``checkout`` is not
2435
supported at the moment on workingtree formats that can do content
2436
filtering. (See <https://bugs.edge.launchpad.net/bzr/+bug/408193>.)
2437
bzr now says so, rather than just ignoring the option. (Martin Pool)
2439
* There was a bug in ``osutils.relpath`` that was only triggered on
2440
Windows. Essentially if you were at the root of a drive, and did
2441
something to a branch/repo on another drive, we would go into an
2442
infinite loop while trying to find a 'relative path'.
2443
(John Arbash Meinel, #394227)
2445
* ``WorkingTree4.unversion`` will no longer fail to unversion ids which
2446
were present in a parent tree but renamed in the working tree.
2447
(Robert Collins, #187207)
2452
* Can now rename/move files even if they have been removed from the inventory.
2455
* Pushing branches with tags via ``bzr://`` and ``bzr+ssh://`` is much
2456
faster, using a new ``Branch.set_tags_bytes`` smart server verb rather
2457
than VFS methods. For example, pushes of small branches with tags take
2458
11 rather than 18 smart server requests. (Andrew Bennetts, #398608)
2460
* Sending Ctrl-Break on Windows will now drop you into the debugger, in
2461
the same way that sending Ctrl-\\ does on other platforms.
2462
(John Arbash Meinel)
2467
* Added Bazaar 2.0 Upgrade Guide. (Ian Clatworthy)
2472
* ``CLIUIFactory`` is deprecated; use ``TextUIFactory`` instead if you
2473
need to subclass or create a specific class, or better yet the existing
2474
``make_ui_for_terminal``. ``SilentUIFactory`` is clarified to do no
2475
user interaction at all, rather than trying to read from stdin but not
2476
writing any output, which would be strange if reading prompts or
2477
passwords. (Martin Pool)
2479
* New TransformPreview.commit() allows committing without a working tree.
2482
* ``pb`` parameter to ``TextTestResult`` is deprecated and ignored.
2485
* ProgressTasks now prefer to talk direct to their ProgressView not to the
2489
* ``WorkingTree._check`` now requires a references dict with keys matching
2490
those returned by ``WorkingTree._get_check_refs``. (Robert Collins)
2495
* ``CHKInventory.path2id`` uses the parent_id to basename hash to avoid
2496
reading the entries along the path, reducing work to lookup ids from
2497
paths. (Robert Collins)
2499
* ``CHKMap.apply_delta`` now raises ``InconsistentDelta`` if a delta adds
2500
as new a key which was already mapped. (Robert Collins)
2502
* Inventory delta application catches more cases of corruption and can
2503
prevent corrupt deltas from affecting consistency of data structures on
2504
disk. (Robert Collins)
2506
* --subunit support now adds timestamps if the subunit version supports
2507
it. (Robert Collins)
2509
* The Windows all-in-one installer now bundles the PyQt image format
2510
plugins, which allows previewing more images as part of 'qdiff'.
2511
(Alexander Belchenko)
2517
* Merge directive cherrypick tests must use the same root id.
2518
(Martin Pool, #409684)
2520
* Spurious failure in ``check`` tests on rich-root formats fixed.
2521
(Martin Pool, #408199)
2523
* The ``bzrlib.tests.TextTestRunner`` will no longer call
2524
``countTestsCases`` on the test being run. Progress information is
2525
instead handled by having the test passed in call ``result.progress``
2526
before running its contents. This improves the behaviour when using
2527
``TextTestRunner`` with test suites that don't support
2528
``countTestsCases``. (Robert Collins)
2531
bzr 1.17.1 (unreleased)
2532
#######################
2537
* The optional ``_knit_load_data_pyx`` C extension was never being
2538
imported. This caused significant slowdowns when reading data from
2539
knit format repositories. (Andrew Bennetts, #405653)
2544
:Codename: so-late-its-brunch
2545
:1.17rc1: 2009-07-13
2549
Bazaar continues to blaze a straight and shining path to the 2.0 release and
2550
the elevation of the ``2a`` beta format to the full glory of "supported and
2553
Highlights in this release include greatly reduced memory consumption during
2554
commits, faster ``ls``, faster ``annotate``, faster network operations if
2555
you're specifying a revision number and the final destruction of those
2556
annoying progress bar artifacts.
2559
Changes from 1.17rc1 to 1.17final
2560
*********************************
2562
* Change an extension to call the python ``frozenset()`` rather than the C
2563
api ``PyFrozenSet_New``. It turns out that python2.4 did not expose the
2564
C api. (John Arbash Meinel, #399366)
2566
* Fixes for the Makefile and the rename of ``generate_docs.py`` to
2567
``tools/generate_docs.py`` to allow everything to be built on Windows.
2568
(John Arbash Meinel, #399356)
2570
* ``bzr serve`` once again applies a ``ChrootServer`` to the given
2571
directory before serving it. (Andrew Bennetts, #400535)
2574
Compatibility Breaks
2575
********************
2577
* ``bzr register-branch`` from the Launchpad plugin now refers to "project"
2578
instead of "product" which is the correct Launchpad terminology. The
2579
--product option is deprecated and users should switch to using --project.
2580
(Neil Martinsen-Burrell, #238764)
2586
* ``bzr push`` now aborts if uncommitted changes (including pending merges)
2587
are present in the working tree (if one is present) and no revision is
2588
specified. The configuration option ``push_strict`` can be used to set the
2589
default for this behavior. (Vincent Ladeuil, #284038, #322808, #65286)
2591
* ``bzr revno`` and ``bzr revision-info`` now have a ``--tree`` option to
2592
show revision info for the working tree instead of the branch.
2593
(Matthew Fuller, John Arbash Meinel)
2595
* ``bzr send`` now aborts if uncommitted changes (including pending merges)
2596
are present in the working tree and no revision is specified. The
2597
configuration option ``send_strict`` can be used to set the default for this
2599
(Vincent Ladeuil, #206577)
2601
* ``bzr switch --create-branch/-b`` can now be used to create and switch
2602
to a new branch. Supplying a name without a ``/`` will create the branch
2603
relative to the existing branch. (similar to how ``bzr switch name``
2604
works when the branch already exists.) (John Arbash Meinel)
2610
* Accept uppercase "Y/N" to prompts such as from break lock.
2611
(#335182, Tim Powell, Martin Pool)
2613
* Add documentation about diverged branches and how to fix them in the
2614
centralized workflow with local commits. Mention ``bzr help
2615
diverged-branches`` when a push fails because the branches have
2616
diverged. (Neil Martinsen-Burrell, #269477)
2618
* Annotate would sometimes 'latch on' to trivial lines, causing important
2619
lines to be incorrectly annotated. (John Arbash Meinel, #387952)
2621
* Automatic format upgrades triggered by default stacking policies on a
2622
1.16rc1 (or later) smart server work again.
2623
(Andrew Bennetts, #388675)
2625
* Avoid progress bar artifacts being left behind on the screen.
2626
(Martin Pool, #321935)
2628
* Better message in ``bzr split`` error suggesting a rich root format.
2629
(Neil Martinsen-Burrell, #220067)
2631
* ``Branch.set_append_revisions_only`` now works with branches on a smart
2632
server. (Andrew Bennetts, #365865)
2634
* By default, ``bzr branch`` will fail if the target directory exists, but
2635
does not already have a control directory. The flag ``--use-existing-dir``
2636
will allow operation to proceed. (Alexander Belchenko, #307554)
2638
* ``bzr ls DIR --from-root`` now shows only things in DIR, not everything.
2641
* Fetch between repositories does not error if they have inconsistent data
2642
that should be irrelevant to the fetch operation. (Aaron Bentley)
2644
* Fix ``AttributeError`` exception when reconfiguring lightweight checkout
2645
of a remote repository.
2646
(Jelmer Vernooij, #332194)
2648
* Fix bug in decoding v3 smart server messages when receiving multiple
2649
lots of excess bytes after an end-of-message.
2652
* Force deletion of readonly files during merge, update and other tree
2654
(Craig Hewetson, Martin Pool, #218206)
2656
* Force socket shutdown in threaded http test servers to avoid client hangs
2657
(pycurl). (Vincent Ladeuil, #383920).
2659
* ``LRUCache`` will maintain the linked list pointers even if a nodes
2660
cleanup function raises an exception. (John Arbash Meinel, #396838)
2662
* Progress bars are now suppressed again when the environment variable
2663
``BZR_PROGRESS_BAR`` is set to ``none``.
2664
(Martin Pool, #339385)
2666
* Reduced memory consumption during ``bzr commit`` of large files. For
2667
pre 2a formats, should be down to ~3x the size of a file.
2668
For ``--2a`` format repositories, it is down to the size of the file
2669
content plus the size of the compressed text. Related to bug #109114.
2670
(John Arbash Meinel)
2672
* Set hidden attribute on .bzr directory below unicode path should never
2673
fail with error. The operation should succeed even if bzr unable to set
2674
the attribute. (Alexander Belchenko, related to bug #335362).
2676
* Stacking will no longer accept requests to stack on the same
2677
branch/repository. Existing branches that incorrectly reference the same
2678
repository in a stacking configuration will now raise
2679
UnstackableLocationError when the branch is opened. This can be fixed by
2680
removing the stacking location inside ``.bzr/branch``.
2681
(Robert Collins, #376243)
2683
* The ``log+`` decorator, useful in debugging or profiling, could cause
2684
"AttributeError: 'list' object has no attribute 'next'". This is now
2685
fixed. The log decorator no longer shows the elapsed time or transfer
2686
rate because they're available in the log prefixes and the transport
2687
activity display respectively.
2688
(Martin Pool, #340347)
2690
* Unshelve works correctly when multiple zero-length files are present on
2691
the shelf. (Aaron Bentley, #363444)
2693
* Progress bars no longer show the network transport scheme or direction.
2696
* launchpad-login now respects the 'verbose' option.
2697
(Jonathan Lange, #217031)
2703
* ``bzrlib.user_encoding`` is now officially deprecated. It is not
2704
possible to write a deprecation wrapper, but the variable will be
2705
removed in the near future. Use ``bzrlib.osutils.get_user_encoding()``
2706
instead. (Alexander Belchenko)
2708
* Command lookup has had hooks added. ``bzrlib.Command.hooks`` has
2709
three new hook points: ``get_command``, ``get_missing_command`` and
2710
``list_commands``, which allow just-in-time command name provision
2711
rather than requiring all command names be known a-priori.
2714
* ``get_app_path`` from win32utils.py now supports REG_EXPAND_SZ data type
2715
and can read path to wordpad.exe. (Alexander Belchenko, #392046)
2717
* ``graph.KnownGraph`` has been added. This is a class that can give
2718
answers to ``heads()`` very quickly. However, it has the assumption that
2719
the whole graph has already been loaded. This is true during
2720
``annotate`` so it is used there with good success (as much as 2x faster
2721
for files with long ancestry and 'cherrypicked' changes.)
2722
(John Arbash Meinel, Vincent Ladeuil)
2724
* OS file locks are now taken out using ``CreateFile`` rather than
2725
``LockFileEx`` on Windows. The locking remains exclusive with
2726
``LockFileEx`` but now it also works on older versions of Windows (such
2727
as Win98). (Martin <gzlist>)
2729
* pack <=> pack fetching is now done via a ``PackStreamSource`` rather
2730
than the ``Packer`` code. The user visible change is that we now
2731
properly fetch the minimum number of texts for non-smart fetching.
2732
(John Arbash Meinel)
2735
* ``VersionedFiles._add_text`` is a new api that lets us insert text into
2736
the repository as a single string, rather than a list of lines. This can
2737
improve memory overhead and performance of committing large files.
2738
(Currently a private api, used only by commit). (John Arbash Meinel)
2744
* ``bzr annotate`` can now be significantly faster. The time for
2745
``bzr annotate NEWS`` is down to 7s from 22s in 1.16. Files with long
2746
histories and lots of 'duplicate insertions' will be improved more than
2747
others. (John Arbash Meinel, Vincent Ladeuil)
2749
* ``bzr ls`` is now faster. On OpenOffice.org, the time drops from 2.4
2750
to 1.1 seconds. The improvement for ``bzr ls -r-1`` is more
2751
substantial dropping from 54.3 to 1.1 seconds. (Ian Clatworthy)
2753
* Improve "Path(s) are not versioned" error reporting for some commands.
2756
* Initial commit performance in ``--2a`` repositories has been improved by
2757
making it cheaper to build the initial CHKMap. (John Arbash Meinel)
2759
* Resolving a revno to a revision id on a branch accessed via ``bzr://``
2760
or ``bzr+ssh://`` is now much faster and involves no VFS operations.
2761
This speeds up commands like ``bzr pull -r 123``. (Andrew Bennetts)
2763
* ``revision-info`` now properly aligns the revnos/revids in the output
2764
and doesn't traceback when given revisions not in the current branch.
2765
Performance is also significantly improved when requesting multiple revs
2766
at once. (Matthew Fuller, John Arbash Meinel)
2768
* Tildes are no longer escaped by Transports. (Andy Kilner)
2774
* Avoid bad text wrapping in generated documentation. Slightly better
2775
formatting in the user reference.
2776
(Martin Pool, #249908)
2778
* Minor clarifications to the help for End-Of-Line conversions.
2784
* Removed overspecific error class ``InvalidProgressBarType``.
2787
* The method ``ProgressView._show_transport_activity`` is now
2788
``show_transport_activity`` because it's part of the contract between
2789
this class and the UI. (Martin Pool)
2795
:Released: 2009-06-26
2797
End user testing of the 2a format revealed two serious bugs. The first,
2798
#365615, caused bzr to raise AbsentContentFactory errors when autopacking.
2799
This meant that commits or pushes to 2a-format repositories failed
2802
The second bug, #390563, caused the smart server to raise AbsentContentFactory
2803
when streaming 2a stacked 2a-format branches. This particularly affected
2804
branches stored on Launchpad in the 2a format.
2806
Both of these bugs cause command failures only, neither of them cause data
2807
corruption or data loss. And, of course, both of these bugs are now fixed.
2812
* We now properly request a more minimal set of file texts when fetching
2813
multiple revisions. (Robert Collins, John Arbash Meinel, #390563)
2815
* Repositories using CHK pages (which includes the new 2a format) will no
2816
longer error during commit or push operations when an autopack operation
2817
is triggered. (Robert Collins, #365615)
2819
* ``chk_map.iter_interesting_nodes`` now properly uses the *intersection*
2820
of referenced nodes rather than the *union* to determine what
2821
uninteresting pages we still need to look at. Prior to this,
2822
incrementally pushing to stacked branch would push the minimal data, but
2823
fetching everything would request extra texts. There are some unhandled
2824
cases wrt trees of different depths, but this fixes the common cases.
2825
(Robert Collins, John Arbash Meinel, #390563)
2827
* ``GroupCompress`` repositories now take advantage of the pack hints
2828
parameter to permit cross-format fetching to incrementally pack the
2829
converted data. (Robert Collins)
2831
* ``Repository.commit_write_group`` now returns opaque data about what
2832
was committed, for passing to the ``Repository.pack``. Repositories
2833
without atomic commits will still return None. (Robert Collins)
2835
* ``Repository.pack`` now takes an optional ``hint`` parameter
2836
which will support doing partial packs for repositories that can do
2837
that. (Robert Collins)
2839
* RepositoryFormat has a new attribute 'pack_compresses' which is True
2840
when doing a pack operation changes the compression of content in the
2841
repository. (Robert Collins)
2843
* ``StreamSink`` and ``InterDifferingSerialiser`` will call
2844
``Repository.pack`` with the hint returned by
2845
``Repository.commit_write_group`` if the formats were different and the
2846
repository can increase compression by doing a pack operation.
2847
(Robert Collins, #376748)
2852
:Codename: yesterday-in-california
2853
:1.16rc1: 2009-06-11
2856
This version of Bazaar contains the beta release of the new ``2a`` repository
2857
format, suitable for testing by fearless, advanced users. This format or an
2858
updated version of it will become the default format in Bazaar 2.0. Please
2859
read the NEWS entry before even thinking about upgrading to the new format.
2861
Also included are speedups for many operations on huge projects, a bug fix for
2862
pushing stacked new stacked branches to smart servers and the usual bevy of
2863
bug fixes and improvements.
2866
Changes from 1.16rc1 to 1.16final
2867
*********************************
2869
* Fix the nested tree flag check so that upgrade from development formats to
2870
2a can work correctly.
2871
(Jelmer Vernooij, #388727)
2873
* Automatic format upgrades triggered by default stacking policies on a
2874
1.16rc1 (or later) smart server work again.
2875
(Andrew Bennetts, #388675)
2878
Compatibility Breaks
2879
********************
2881
* Display prompt on stderr (instead of stdout) when querying users so
2882
that the output of commands can be safely redirected.
2883
(Vincent Ladeuil, #376582)
2889
* A new repository format ``2a`` has been added. This is a beta release
2890
of the brisbane-core (aka group-compress) project. This format now
2891
suitable for wider testing by advanced users willing to deal with some
2892
bugs. We would appreciate test reports, either positive or negative.
2893
Format 2a is substantially smaller and faster for many operations on
2894
many trees. This format or an updated version will become the default
2897
This is a rich-root format, so this repository format can be used with
2898
bzr-svn. Bazaar branches in previous non-rich-root formats can be
2899
converted (including by merge, push and pull) to format 2a, but not vice
2900
versa. We recommend upgrading previous development formats to 2a.
2902
Upgrading to this format can take considerable time because it expands
2903
and more concisely repacks the full history.
2905
If you use stacked branches, you must upgrade the stacked branches
2906
before the stacked-on branches. (See <https://bugs.launchpad.net/bugs/374735>)
2908
* ``--development7-rich-root`` is a new dev format, similar to ``--dev6``
2909
but using a Revision serializer using bencode rather than XML.
2910
(Jelmer Vernooij, John Arbash Meinel)
2912
* mail_client=claws now supports --body (and message body hooks). Also uses
2913
configured from address. (Barry Warsaw)
2919
* ``--development6-rich-root`` can now stack. (Modulo some smart-server
2920
bugs with stacking and non default formats.)
2921
(John Arbash Meinel, #373455)
2923
* ``--development6-rich-root`` delays generating a delta index for the
2924
first object inserted into a group. This has a beneficial impact on
2925
``bzr commit`` since each committed texts goes to its own group. For
2926
committing a 90MB file, it drops peak memory by about 200MB, and speeds
2927
up commit from 7s => 4s. (John Arbash Meinel)
2929
* Numerous operations are now faster for huge projects, i.e. those
2930
with a large number of files and/or a large number of revisions,
2931
particularly when the latest development format is used. These
2932
operations (and improvements on OpenOffice.org) include:
2934
* branch in a shared repository (2X faster)
2935
* branch --no-tree (100X faster)
2941
* Pyrex version of ``bencode`` support. This provides optimized support
2942
for both encoding and decoding, and is now found at ``bzrlib.bencode``.
2943
``bzrlib.utils.bencode`` is now deprecated.
2944
(Alexander Belchenko, Jelmer Vernooij, John Arbash Meinel)
2950
* Bazaar can now pass attachment files to the mutt email client.
2951
(Edwin Grubbs, #384158)
2953
* Better message in ``bzr add`` output suggesting using ``bzr ignored`` to
2954
see which files can also be added. (Jason Spashett, #76616)
2956
* ``bzr pull -r 123`` from a stacked branch on a smart server no longer fails.
2957
Also, the ``Branch.revision_history()`` API now works in the same
2958
situation. (Andrew Bennetts, #380314)
2960
* ``bzr serve`` on Windows no longer displays a traceback simply because a
2961
TCP client disconnected. (Andrew Bennetts)
2963
* Clarify the rules for locking and fallback repositories. Fix bugs in how
2964
``RemoteRepository`` was handling fallbacks along with the
2965
``_real_repository``. (Andrew Bennetts, John Arbash Meinel, #375496)
2967
* Fix a small bug with fetching revisions w/ ghosts into a new stacked
2968
branch. Not often triggered, because it required ghosts to be part of
2969
the fetched revisions, not in the stacked-on ancestry.
2970
(John Arbash Meinel)
2972
* Fix status and commit to work with content filtered trees, addressing
2973
numerous bad bugs with line-ending support. (Ian Clatworthy, #362030)
2975
* Fix problem of "directory not empty" when contending for a lock over
2976
sftp. (Martin Pool, #340352)
2978
* Fix rule handling so that eol is optional, not mandatory.
2979
(Ian Clatworthy, #379370)
2981
* Pushing a new stacked branch to a 1.15 smart server was broken due to a
2982
bug in the ``BzrDirFormat.initialize_ex`` smart verb. This is fixed in
2983
1.16, but required changes to the network protocol, so the
2984
``BzrDirFormat.initialize_ex`` verb has been removed and replaced with a
2985
corrected ``BzrDirFormat.initialize_ex_1.16`` verb. 1.15 clients will
2986
still work with a 1.16 server as they will fallback to slower (and
2988
(Jonathan Lange, Robert Collins, Andrew Bennetts, #385132)
2990
* Reconcile can now deal with text revisions that originated in revisions
2991
that are ghosts. (Jelmer Vernooij, #336749)
2993
* Support cloning of branches with ghosts in the left hand side history.
2994
(Jelmer Vernooij, #248540)
2996
* The ''bzr diff'' now catches OSError from osutils.rmtree and logs a
2997
helpful message to the trace file, unless the temp directory really was
2998
removed (which would be very strange). Since the diff operation has
2999
succeeded from the user's perspective, no output is written to stderr
3000
or stdout. (Maritza Mendez, #363837)
3002
* Translate errors received from a smart server in response to a
3003
``BzrDirFormat.initialize`` or ``BzrDirFormat.initialize_ex`` request.
3004
This was causing tracebacks even for mundane errors like
3005
``PermissionDenied``. (Andrew Bennetts, #381329)
3010
* Added directory structure and started translation of docs in Russian.
3011
(Alexey Shtokalo, Alexander Iljin, Alexander Belchenko, Dmitry Vasiliev,
3012
Volodymyr Kotulskyi)
3017
* Added osutils.parent_directories(). (Ian Clatworthy)
3019
* ``bzrlib.progress.ProgressBar``, ``ChildProgress``, ``DotsProgressBar``,
3020
``TTYProgressBar`` and ``child_progress`` are now deprecated; use
3021
``ui_factory.nested_progress_bar`` instead. (Martin Pool)
3023
* ``graph.StackedParentsProvider`` is now a public API, replacing
3024
``graph._StackedParentsProvider``. The api is now considered stable and ready
3025
for external users. (Gary van der Merwe)
3027
* ``bzrlib.user_encoding`` is deprecated in favor of
3028
``get_user_encoding``. (Alexander Belchenko)
3030
* TreeTransformBase no longer assumes that limbo is provided via disk.
3031
DiskTreeTransform now provides disk functionality. (Aaron Bentley)
3036
* Remove ``weave.py`` script for accessing internals of old weave-format
3037
repositories. (Martin Pool)
3042
* ``make check`` no longer repeats the test run in ``LANG=C``.
3043
(Martin Pool, #386180)
3045
* The number of cores is now correctly detected on OSX. (John Szakmeister)
3047
* The number of cores is also detected on Solaris and win32. (Vincent Ladeuil)
3049
* The number of cores is also detected on FreeBSD. (Matthew Fuller)
3054
:1.15rc1: 2009-05-16
3058
The smart server will no longer raise 'NoSuchRevision' when streaming content
3059
with a size mismatch in a reconstructed graph search. New command ``bzr
3060
dpush``. Plugins can now define their own annotation tie-breaker when two
3061
revisions introduce the exact same line.
3063
Changes from 1.15.1 to 1.15.2
3064
*****************************
3066
* Use zdll on Windows to build ``_chk_map_pyx`` extension.
3067
(Alexander Belchenko)
3069
Changes from 1.15final to 1.15.1
3070
*********************************
3072
* Translate errors received from a smart server in response to a
3073
``BzrDirFormat.initialize`` or ``BzrDirFormat.initialize_ex`` request.
3074
This was causing tracebacks even for mundane errors like
3075
``PermissionDenied``. (Andrew Bennetts, #381329)
3077
Changes from 1.15rc1 to 1.15final
3078
*********************************
3082
Compatibility Breaks
3083
********************
3085
* ``bzr ls`` is no longer recursive by default. To recurse, use the
3086
new ``-R`` option. The old ``--non-recursive`` option has been removed.
3087
If you alias ``ls`` to ``ls -R``, you can disable recursion using
3088
``--no-recursive`` instead. (Ian Clatworthy)
3093
* New command ``bzr dpush`` that can push changes to foreign
3094
branches (svn, git) without setting custom bzr-specific metadata.
3097
* The new development format ``--development6-rich-root`` now supports
3098
stacking. We chose not to use a new format marker, since old clients
3099
will just fail to open stacked branches, the same as if we used a new
3100
format flag. (John Arbash Meinel, #373455)
3102
* Plugins can now define their own annotation tie-breaker when two revisions
3103
introduce the exact same line. See ``bzrlib.annotate._break_annotation_tie``
3104
Be aware though that this is temporary, private (as indicated by the leading
3105
'_') and a first step to address the problem. (Vincent Ladeuil, #348459)
3107
* New command ``bzr dpush`` that can push changes to foreign
3108
branches (svn, git) without setting custom bzr-specific metadata.
3111
* ``bzr send`` will now check the ``child_submit_format`` setting in
3112
the submit branch to determine what format to use, if none was
3113
specified on the command-line. (Jelmer Vernooij)
3118
* -Dhpss output now includes the number of VFS calls made to the remote
3119
server. (Jonathan Lange)
3121
* ``--coverage`` works for code running in threads too.
3122
(Andrew Bennets, Vincent Ladeuil)
3124
* ``bzr pull`` now has a ``--local`` option to only make changes to the
3125
local branch, and not the bound master branch.
3126
(Gary van der Merwe, #194716)
3128
* ``bzr rm *`` is now as fast as ``bzr rm * --keep``. (Johan Walles, #180116)
3133
* Adding now works properly when path contains a symbolic link.
3134
(Geoff Bache, #183831)
3136
* An error is now raised for unknown eol values. (Brian de Alwis, #358199)
3138
* ``bzr merge --weave`` will now generate a conflict if one side deletes a
3139
line, and the other side modifies the line. (John Arbash Meinel, #328171)
3141
* ``bzr reconfigure --standalone`` no longer raises IncompatibleRepositories.
3142
(Martin von Gagern, #248932)
3144
* ``bzr send`` works to send emails again using MAPI.
3145
(Neil Martinsen-Burrell, #346998)
3147
* Check for missing parent inventories in StreamSink. This prevents
3148
incomplete stacked branches being created by 1.13 bzr:// and
3149
bzr+ssh:// clients (which have bug #354036). Instead, the server now
3150
causes those clients to send the missing records. (Andrew Bennetts)
3152
* Correctly handle http servers proposing multiple authentication schemes.
3153
(Vincent Ladeuil, #366107)
3155
* End-Of-Line content filters are now loaded correctly.
3156
(Ian Clatworthy, Brian de Alwis, #355280)
3158
* Fix a bug in the pure-python ``GroupCompress`` code when handling copies
3159
longer than 64KiB. (John Arbash Meinel, #364900)
3161
* Fix TypeError in running ``bzr break-lock`` on some URLs.
3162
(Alexander Belchenko, Martin Pool, #365891)
3164
* Non-recursive ``bzr ls`` now works properly when a path is specified.
3165
(Jelmer Vernooij, #357863)
3167
* ssh usernames (defined in ~/.ssh/config) are honoured for bzr+ssh connections.
3168
(Vincent Ladeuil, #367726)
3170
* Several bugs related to unicode symlinks have been fixed and the test suite
3171
enhanced to better catch regressions for them. (Vincent Ladeuil)
3173
* The smart server will no longer raise 'NoSuchRevision' when streaming
3174
content with a size mismatch in a reconstructed graph search: it assumes
3175
that the client will make sure it is happy with what it got, and this
3176
sort of mismatch is normal for stacked environments.
3177
bzr 1.13.0/1 will stream from unstacked branches only - in that case not
3178
getting all the content expected would be a bug. However the graph
3179
search is how we figured out what we wanted, so a mismatch is both odd
3180
and unrecoverable without starting over, and starting over will end up
3181
with the same data as if we just permitted the mismatch. If data is
3182
gc'd, doing a new search will find only the truncated data, so sending
3183
only the truncated data seems reasonable. bzr versions newer than this
3184
will stream from stacked branches and check the stream to find missing
3185
content in the stacked-on branch, and thus will handle the situation
3186
implicitly. (Robert Collins, #360791)
3188
* Upgrading to, or fetching into a 'rich-root' format will now correctly
3189
set the root data the same way that reconcile does.
3190
(Robert Collins, #368921)
3192
* Using unicode Windows API to obtain command-line arguments.
3193
(Alexander Belchenko, #375934)
3201
* ``InterPackRepo.fetch`` and ``RepoFetcher`` now raise ``NoSuchRevision``
3202
instead of ``InstallFailed`` when they detect a missing revision.
3203
``InstallFailed`` itself has been deleted. (Jonathan Lange)
3205
* Not passing arguments to ``bzrlib.commands.main()`` will now grab the
3206
arguments from ``osutils.get_unicode_argv()`` which has proper support
3207
for unicode arguments on windows. Further, the supplied arguments are now
3208
required to be unicode strings, rather than user_encoded strings.
3209
(Alexander Belchenko)
3214
* ``bzrlib.branch.Branch.set_parent`` is now present on the base branch
3215
class and will call ``_set_parent_location`` after doing unicode
3216
encoding. (Robert Collins)
3218
* ``bzrlib.remote.RemoteBranch._set_parent_location`` will use a new verb
3219
``Branch.set_parent_location`` removing further VFS operations.
3222
* ``bzrlib.bzrdir.BzrDir._get_config`` now returns a ``TransportConfig``
3223
or similar when the dir supports configuration settings. The base class
3224
defaults to None. There is a matching new server verb
3225
``BzrDir.get-config_file`` to reduce roundtrips for getting BzrDir
3226
configuration. (Robert Collins)
3228
* ``bzrlib.tests.ExtendedTestResult`` has new methods ``startTests``
3229
called before the first test is started, ``done`` called after the last
3230
test completes, and a new parameter ``strict``. (Robert Collins)
3232
* ``-Dhpss`` when passed to bzr will cause a backtrace to be printed when
3233
VFS operations are started on a smart server repository. This should not
3234
occur on regular push and pull operations, and is a key indicator for
3235
performance regressions. (Robert Collins)
3237
* ``-Dlock`` when passed to the selftest (e.g. ``bzr -Dlock selftest``) will
3238
cause mismatched physical locks to cause test errors rather than just
3239
reporting to the screen. (Robert Collins)
3241
* -Dprogress will cause pdb to start up if a progress view jumps
3242
backwards. (Robert Collins)
3244
* Fallback ``CredentialStore`` instances registered with ``fallback=True``
3245
are now be able to provide credentials if obtaining credentials
3246
via ~/.bazaar/authentication.conf fails. (Jelmer Vernooij,
3247
Vincent Ladeuil, #321918)
3249
* New hook ``Lock.lock_broken`` which runs when a lock is
3250
broken. This is mainly for testing that lock/unlock are
3251
balanced in tests. (Vincent Ladeuil)
3253
* New MergeDirective hook 'merge_request_body' allows hooks to supply or
3254
alter a body for the message produced by ``bzr send``.
3256
* New smart server verb ``BzrDir.initialize_ex`` which implements a
3257
refactoring to the core of clone allowing less round trips on new
3258
branches. (Robert Collins)
3260
* New method ``Tags.rename_revisions`` that can rename revision ids tags
3261
are pointing at. (Jelmer Vernooij)
3263
* Updated the bundled ``ConfigObj`` library to 4.6.0 (Matt Nordhoff)
3268
* ``bzr selftest`` will now fail if lock/unlock are not correctly balanced in
3269
tests. Using ``-Dlock`` will turn the related failures into warnings.
3270
(Vincent Ladeuil, Robert Collins)
3274
:Codename: brisbane-core
3275
:1.14rc1: 2009-04-06
3276
:1.14rc2: 2009-04-19
3280
New formats 1.14 and 1.14-rich-root supporting End-Of-Line (EOL) conversions,
3281
keyword templating (via the bzr-keywords plugin) and generic content filtering.
3282
End-of-line conversion is now supported for formats supporting content
3285
Changes from 1.14final to 1.14.1
3286
********************************
3288
* Change api_minimum_version back to api_minimum_version = (1, 13, 0)
3290
Changes from 1.14rc2 to 1.14final
3291
*********************************
3293
* Fix a bug in the pure-python ``GroupCompress`` code when handling copies
3294
longer than 64KiB. (John Arbash Meinel, #364900)
3296
Changes from 1.14rc1 to 1.14rc2
3297
*******************************
3299
* Fix for bug 358037 Revision not in
3300
bzrlib.groupcompress.GroupCompressVersionedFiles (Brian de Alwis,
3303
* Fix for bug 354036 ErrorFromSmartServer - AbsentContentFactory object has no
3304
attribute 'get_bytes_as' exception while pulling from Launchpad
3305
(Jean-Francois Roy, Andrew Bennetts, Robert Collins)
3307
* Fix for bug 355280 eol content filters are never loaded and thus never
3308
applied (Brian de Alwis, Ian Clatworthy)
3310
* bzr.dev -r4280 Change _fetch_uses_deltas = False for CHK repos until we can
3311
write a better fix. (John Arbash Meinel, Robert Collins)
3313
* Fix for bug 361574 uncommit recommends undefined --levels and -n options
3314
(Marius Kruger, Ian Clatworthy)
3316
* bzr.dev r4289 as cherrypicked at lp:~spiv/bzr/stacking-cherrypick-1.14
3317
(Andrew Bennetts, Robert Collins)
3319
12
Compatibility Breaks
3320
13
********************