6
5
.. contents:: List of Releases
12
:2.2.1: NOT RELEASED YET
20
* CommitBuilder now uses the committer instead of _config.username to generate
21
the revision-id. (Aaron Bentley, #614404)
42
This release marks the start of another long-term-stable series. From
43
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
44
while 2.3 will become our new development series. The 2.0 and 2.1 series
45
will also continue to get bugfixes. (Currently 2.0 is planned to be
46
supported for another 6 months.)
48
This is primarily a bugfix and polish release over the 2.1 series, with
49
a large number of bugs fixed (>120), and some performance improvements.
51
There are some compatibility changes in this release. For users of bzrlib
52
as a library, we now request that they call ``bzrlib.initialize`` and use
53
the returned context manager appropriately. For commandline users we no
54
longer guess user identity for ``bzr commit``, users must specify their
55
identity using ``bzr whoami`` (you don't need to specify your identity for
58
Users are encouraged to upgrade from the other stable series.
63
* BzrError subclasses no longer support the name "message" to be used
64
as an argument for __init__ or in _fmt format specification as this
65
breaks in some Python versions. errors.LockError.__init__ argument
66
is now named "msg" instead of earlier "message".
67
(Parth Malwankar, #603461)
69
* The old ``bzr selftest --benchmark`` option has been removed.
70
<https://launchpad.net/bzr-usertest> is an actively-maintained
77
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
78
``InvalidPattern`` exception error message now shows faulting
80
(Parth Malwankar #300062)
82
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
83
way which should help avoid problems with concurrent writers.
84
(Vincent Ladeuil, #525571)
86
* Don't traceback trying to unversion children files of an already
87
unversioned directory. (Vincent Ladeuil, #494221)
89
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
90
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
92
* Progress bars prefer to truncate the text message rather than the
93
counters. The spinner is shown between the network transfer indicator
94
and the progress message. Progress bars are correctly cleared off when
95
they finish. (Martin Pool, #611127)
97
* Recursive binding for checkouts is now detected by bzr. A clear error
98
message is shown to the user. (Parth Malwankar, #405192)
103
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
104
tree, and works with unrelated branches. (Andrew Bennetts)
106
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
107
GUI with out have a console open in the background.
108
(Gary van der Merwe, #433781)
113
* ``bzr help patterns`` now explains case insensitive patterns and
114
points to Python regular expression documentation.
115
(Parth Malwankar, #594386)
120
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
125
* Unit test added to ensure that "message" is not uses as a format variable
126
name in BzrError subclasses as this conflicts with some Python versions.
127
(Parth Malwankar, #603461)
132
:Codename: Monkey Magic
136
This fourth and final beta in the 2.2 series now stabilizes the internal
137
APIs. Plugin authors are recommended to ensure their releases are
138
compatible, so that 2.2rc1 can be a true release candidate, containing
139
stable and compatible plugin versions.
141
For users of bzrlib as a library, one of the primary changes is to request
142
that they call ``bzrlib.initialize`` and use the returned context manager
145
Better interaction with ``bzr-loom`` to make sure branching from a loom
146
even over a smart server still yields a local loom. Not to mention lots of
152
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
153
the result of ``bzrlib.initialize``. This change was made when fixing
154
the bad habit recent bzr versions have had of leaving progress bars
155
behind on the screen. That required calling another function before
156
exiting the program, and it made sense to provide a full context
157
manager at the same time. (Robert Collins)
159
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
160
context manager in the Python 2.5 and above sense. The bzrlib base class
161
is such a manager, but third party UI factories which do not derive from
162
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
165
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
166
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
167
scheme. Previously these URLs would be treated as local paths.
174
* Support ``--directory`` option for a number of additional commands:
175
conflicts, merge-directive, missing, resolve, shelve, switch,
176
unshelve, whoami. (Martin von Gagern, #527878)
181
* ``bzr branch`` to a new repository with a default stacking policy no
182
longer transfers the full history unnecessarily.
183
(Andrew Bennetts, #597942)
185
* ``bzr init`` does not recursively scan directory contents anymore
186
leading to faster init for directories with existing content.
187
(Martin [gz], Parth Malwankar, #501307)
189
* ``bzr log --exclude-common-ancestry`` is now taken into account for
190
linear ancetries. (Vincent Ladeuil, #575631)
192
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
193
rather than trying to fetch the data locally and failing because of a
194
readonly error. (Martin von Gagern, #149270)
196
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
197
or pull location in locations.conf or branch.conf.
198
(Gordon Tyler, #534787)
200
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
201
smart server. (Andrew Bennetts, #551525)
203
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
204
(Marius Kruger, Robert Collins)
206
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
207
(Marius Kruger, Robert Collins)
209
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
210
proper error messages. (Vincent Ladeuil, #591215)
212
* Explicitly removing ``--profile-imports`` option from parsed command-line
213
arguments on Windows, because bzr script does the same.
214
(Alexander Belchenko, #588277)
216
* Fetching was slightly confused about the best code to use and was
217
using a new code path for all branches, resulting in more lookups than
218
necessary on old branches. (Robert Collins, #593515)
220
* Final fix for 'no help for command' issue. We now show a clean message
221
when a command has no help, document how to set help more clearly, and
222
test that all commands available to the test suite have help.
223
(Robert Collins, #177500)
225
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
226
``InvalidPattern`` exception showing clear error message to the user.
227
(Parth Malwankar #300062)
229
* Progress output is cleaned up when exiting. (Aaron Bentley)
231
* Raise ValueError instead of a string exception.
232
(John Arbash Meinel, #586926)
234
* Relative imports in plugins are now handled correctly when using
235
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
237
* ``ScriptRunner`` now strips off leading indentation from test scripts,
238
which previously caused "SyntaxError: No command for line".
241
* Show unicode filenames in diff headers using terminal encoding.
242
(Alexander Belchenko, Bug #382699)
243
NOTE for Windows users: If user need to save diff to file then user need to
244
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
245
(e.g. ``chcp 1251`` for Russian Windows).
247
* URL displayed for use with ``break-lock`` when smart server sees lock
248
contention are now valid. Default timeout for lock contention retry is
249
now 30 seconds instead of 300 seconds.
250
(Parth Malwankar, #250451)
252
* ``walkdirs`` now raises a useful message when the filenames are not using
253
the filesystem encoding. (Eric Moritz, #488519)
255
* Enable debugging of bzr on windows with pdb and other tools. This was
256
broken because we call GetCommandLineW on windows. The fix adjusts the
257
command line we get to be the same length as sys.argv.
258
(Jason Spashett, Alexander Belchenko, #587868)
263
* Bazaar now reads data from SSH connections more efficiently on platforms
264
that provide the ``socketpair`` function, and when using paramiko.
265
(Andrew Bennetts, #590637)
267
* ``Branch.copy_content_into`` is now a convenience method dispatching to
268
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
269
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
270
(Robert Collins, #201613)
272
* ``Branch`` formats can now be loaded lazily by registering a
273
``MetaDirBranchFormatFactory`` rather than an actual format. This will
274
cause the named format class to be loaded only when an enumeration of
275
formats is needed or when the format string for the object is
276
encountered. (Robert Collins, Jelmer Vernooij)
278
* The encoding that bzr uses to output things other than file content can
279
now be overridden via the output_encoding configuration option.
280
(Martin Pool, #340394)
282
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
283
do not cause modules to be loaded unnecessarily just because the plugin
284
registers a merge hook. This improves ``bzr rocks`` time by about 25%
285
in a default installation (with just the core plugins).
291
* Added ``regression`` tag to our tags list. (Robert Collins)
293
* Improved our release checklist to have a bit less churn and leave things
294
ready-to-go for the next action (including other people doing
295
development). (Robert Collins)
297
* Remove obsolete discussion of PQM in documentation about how to
298
contribute to Bazaar. (Martin Pool, #588444)
303
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
304
an iterable of format pairs, rather than just a single pair, permitting
305
InterBranch objects that work with multiple permutations to be
306
comprehensively tested. (Robert Collins)
308
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
309
profiles when concurrent profile requests are made. Instead the profile
310
requests will be serialised. Reentrant requests will now deadlock.
313
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
314
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
315
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
317
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
318
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
319
case the default error message not suitable for the use case.
322
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
323
one method ``check_output``, and we now recommend checking command
324
output using ``run_script``. (Martin Pool)
326
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
327
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
328
Third-party implementations of ``SSHVendor`` may need to be updated
329
accordingly. Similarly, any code using ``SSHConnection`` directly will
330
need to be updated. (Andrew Bennetts)
332
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
333
changed to take an ``SSHParams`` instance (replacing many individual
334
values). (Andrew Bennetts)
339
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
340
selection when explicitly requested; this avoids many duplicate calls
341
being logged when helpers, wrappers and older code that manually calls
342
it are executed it is now logged deliberately by the ui setup code.
345
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
347
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
348
that ``sys.getsizeof`` and other memory analysis tools will report more
349
accurate results. (Andrew Bennetts)
351
* The symbol_versioning module can now cleanup after itself -
352
``suppress_deprecation_warnings`` now returns a cleanup function.
358
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
359
to test. (Martin Pool)
361
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
362
(Vincent Ladeuil, #595587)
369
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
370
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
371
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
372
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
373
bash completion script and bzr will no longer guess at identity details -
374
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
375
For developers we have some API changes which may impact plugins as well
376
as a bunch of our regular improvements to internal clarity and test
382
* An API break has been made to the lock_write method of ``Branch`` and
383
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
384
and ``repository.RepositoryWriteLockResult`` objects. This makes
385
changing the API in future easier and permits some cleaner calling code.
386
The lock_read method has also changed from having no defined return
387
value to returning ``LogicalLockResult`` objects.
390
* ``bzr`` does not try to guess the username as ``username@hostname``
391
and requires it to be explictly set. This can be set using ``bzr
392
whoami``. (Parth Malwankar, #549310)
394
* ``bzrlib.commands.Command`` will now raise ValueError during
395
construction if there is no __doc__ set. (Note, this will be reverted in
396
2.2b4) (Robert Collins)
398
* The source tree no longer contains a contrib/zsh/_bzr completion
399
script. The new file contrib/zsh/README suggests alternatives.
400
(Martin von Gagern, #560030)
405
* ``bzr commit`` accepts ``-p`` (for "patch") as a shorter name for
407
(Parth Malwankar, #571467)
409
* ``bzr ignore`` now supports a ``--default-rules`` option that displays
410
the default ignore rules used by bzr. The flag ``--old-default-rules``
411
is no longer supported by ``ignore``.
412
(Parth Malwankar, #538703)
414
* ``bzr pack`` now supports a ``--clean-obsolete-packs`` option that
415
can save disk space by deleting obsolete pack files created during the
417
(Parth Malwankar, #304320)
419
* New command line option ``--authors`` to ``bzr log`` allows users to
420
select which of the apparent authors and committer should be
421
included in the log. Defaults depend on format. (Martin von Gagern, #513322)
423
* Support ``--directory`` option for a number of additional commands:
424
added, annotate, bind, cat, cat-revision, clean-tree, deleted,
425
export, ignore, ignored, lookup-revision, ls, modified, nick,
426
re-sign, unbind, unknowns.
427
(Martin von Gagern, #527878)
429
* The bash_completion plugin from the bzr-bash-completion project has
430
been merged into the tree. It provides a bash-completion command and
431
replaces the outdated ``contrib/bash/bzr`` script with a version
432
using the plugin. (Martin von Gagern, #560030)
434
* A new transport based on GIO (the gnome i/o library) provides access to
435
samba shares, webdav using gio+smb and gio+dav. It is also possible to
436
use gio for some already existing transport methods as gio+file,
443
* Alias information shown by ``bzr help`` is now accurate. This
444
was showing an internal object name for some plugin aliases.
445
(Parth Malwankar, #584650)
447
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
448
group ownership from the containing directory. This allow bzr to work
450
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
452
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
453
support of bzr-externals and scmproj plugins.
454
(Alexander Belchenko, bug #572098)
456
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
457
(Gordon Tyler, #572092)
459
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
460
are part of Y ancestry but not part of X ancestry (aka the graph
462
(Vincent Ladeuil, #320119)
464
* ``bzr lp-propose`` which was switched to use production Launchpad API
465
servers a few commits ago has been reverted to use edge: there is a
466
problem with using production which isn't trivially obvious, so we've
467
filed a bug to track it, and until thats fixed will be using edge.
468
(Robert Collins, #583667)
470
* ``bzr rm`` should not refuse to delete directories which contained a file
471
which has been moved elsewhere in the tree after the previous commit.
472
(Marius Kruger, Daniel Watkins, #129880)
474
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
475
(Vincent Ladeuil, #566670)
477
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
478
(Vincent Ladeuil, #563997)
480
* CommitBuilder refuses to create revisions whose trees have no root.
483
* Do not register a SIGWINCH signal handler, instead just poll for the
484
terminal width as needed. This avoids the "Interrupted System Call"
485
problems that occur on POSIX with all currently released versions of
487
(Andrew Bennetts, #583941)
489
* Don't mention --no-strict when we just issue the warning about unclean trees.
490
(Vincent Ladeuil, #401599)
492
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
494
(Andrew Bennetts, #528041)
496
* Improved progress bar for fetch (2a format only). Bazaar now shows an
497
estimate of the number of records to be fetched vs actually fetched.
498
(Parth Malwankar, #374740, #538868)
500
* Reduce peak memory by one copy of compressed text.
501
(John Arbash Meinel, #566940)
503
* ``RemoteBranch.lock_write`` raises ``ReadOnlyError`` if called during a
504
read lock, rather than causing an ``AttributeError``.
505
(Andrew Bennetts, Данило Шеган, #582781)
507
* Selftest was failing with testtools 0.9.3, which caused an
508
AssertionError raised from a cleanUp to be reported as a Failure, not an
509
Error, breaking on of our test hygiene tests.
510
(Robert Collins, Vincent Ladeuil).
512
* ``set_user_option`` with a dict on remote branches no longer fails with
513
an AttributeError. There is a new ``Branch.set_config_option_dict`` RPC
514
to support this efficiently.
515
(Andrew Bennetts, #430382)
517
* Show the filenames when a file rename fails so that the error will be
519
(Martin Pool, #491763)
521
* Support Pyrex 0.9.9, required changing how we handle exceptions in Pyrex.
522
(John Arbash Meinel, #582656)
524
* Unicode characters in aliases are now handled correctly and do not cause
525
UnicodeEncodeError exception. (Parth Malwankar, #529930)
527
* Unicode commit messages that are the same as a file name no longer cause
528
UnicodeEncodeError. ``ui.text.show_warning`` now handles unicode
530
(Parth Malwankar, #563646)
532
* Using bzr with `lp:` urls behind an http proxy should work.
533
(Robert Collins, #558343)
535
* When passing a file to ``UTF8DirReader`` make sure to close the current
536
directory file handle after the chdir fails. Otherwise when passing many
537
filenames into a command line ``bzr status`` we would leak descriptors.
538
(John Arbash Meinel, #583486)
543
* ``append_revisions_only`` will now be interpreted as a boolean and a
544
warning emitted if illegal values are used. Note that for projects
545
that needs to maintain compatibility with previsous bzr versions,
546
only 'True' and 'False' strings must be used (previous versions of
547
bzr will interpret all strings differing from 'True'
548
(case-sensitive) as false.
549
(Brian de Alwis, Vincent Ladeuil)
551
* ``bzr ls`` now supports short options for existing long options.
552
``-k/--kind``, ``-i/--ignored``, ``-u/--unknown`` and ``-0/--null``.
553
(Parth Malwankar, #181124)
555
* ``Config.get_user_option_as_bool`` will now warn if a value cannot
556
be interpreted as a boolean.
559
* The all-in-one Windows installer will now be built with docstrings stripped
560
from the library zip, reducing the size and slightly improving cold startup
561
time. Bundled plugins are unchanged for the moment, but if adding other new
562
plugins to an all-in-one installation, ensure they are compiled and
563
installed with -O1 or help may not work. (Martin [gz])
568
* Added ``bzrlib.merge.PerFileMerger``, a more convenient way to write
569
some kinds of ``merge_file_content`` hook functions.
572
* `BzrDir`, `Branch`, `Repository` and `WorkingTree` now all support `user_url`,
573
`user_transport`, `control_url` and `control_transport` members pointing
574
respectively to the directory containing the ``.bzr`` control directory,
575
and to the directory within ``.bzr`` used for the particular component.
576
All of them inherit from `ControlComponent` which provides default
580
* Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
581
expected to return an object which can be used to unlock them. This reduces
582
duplicate code when using cleanups. The previous 'tokens's returned by
583
``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
584
on the result of the lock_write. ``repository.RepositoryWriteLockResult``
585
and ``branch.BranchWriteLockResult`` document this. (Robert Collins)
587
* ``Repository.refresh_data`` may now be called in a write group on
588
pack-based repositories. Older repositories will still raise an error
589
in this case. Subclasses of ``Repository`` can still override
590
``Repository._refresh_data``, but are now responsible for raising
591
``bzrlib.repository.IsInWriteGroupError`` if they do not support
592
``refresh_data`` during a write group.
593
(Andrew Bennetts, #574236)
598
* ``chk_map._bytes_to_text_key`` is now an optimized function to extract
599
the (file-id, revision-id) key from a CHKInventory entry. This can
600
potentially shave 5-10% time off during a large fetch. Related to bug
601
#562666. (John Arbash Meinel)
603
* ``log._get_info_for_log_files`` now takes an add_cleanup callable.
606
* ``_remember_remote_is_before`` no longer raises AssertionError when
607
suboptimal network behaviour is noticed; instead it just mutters to the
608
log file (and warns the user if they have set the ``hpss`` debug flag).
609
This was causing unnecessary aborts for performance bugs that are minor
611
(Andrew Bennetts, #528041)
613
* Permit bzr to run under ``python -OO`` which reduces the size of bytecode
614
files loaded from disk. To ensure docstrings needed for help are never
615
stripped, the prefix ``__doc__ =`` should now be used.
616
(Martin <gzlist@googlemail.com>)
618
* No longer require zlib headers to build extensions, and remove the need
619
for seperate copy of zlib library on windows.
620
(John Arbash Meinel, Martin <gzlist@googlemail.com>, #566923)
625
* Added ``bzrlib.tests.matchers`` as a place to put matchers, along with
626
our first in-tree matcher. See the module docstring for details.
629
* ``bzr selftest --parallel=subprocess`` now works correctly on win32.
630
(Gordon Tyler, #551332)
632
* Workaround ``Crypto.Random`` check leading to spurious test
633
failures on Lucid, FreeBSD and gentoo.
634
(Vincent Ladeuil, #528436)
636
* New class ``ExecutableFeature`` for checking the availability of
637
executables on the ``PATH``. Migrated from bash_completion plugin.
645
This is a somewhat early second beta of the 2.2 series, to fix a python2.4
646
incompatibility in the 2.2b1 release. It also includes a swag of
647
performance, usability and correctness improvements: test feedback on all
648
of these would be welcome.
654
* ``bzr diff`` now supports a --format option, which can be used to
655
select alternative diff formats. (Jelmer Vernooij, #555994)
660
* ``bzr dpush``, ``bzr push`` and ``bzr send`` will now issue a warning
661
instead of failing when dirty trees are involved. The corresponding
662
``dpush_strict``, ``push_strict`` and ``send_strict`` should be set to
663
True explicitly to get the previous behaviour.
664
(Vincent Ladeuil, #519319)
666
* ``bzr export`` to tar file does not fail if any parent directory
667
contains unicode characters. This works around upstream Python bug
668
http://bugs.python.org/issue8396 .
669
(Parth Malwankar, #413406)
671
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
672
(Aaron Bentley, #559436)
674
* ``bzr update`` when a pending merge in the working tree has been merged
675
into the master branch will no longer claim that old commits have become
676
pending merges. (Robert Collins, #562079)
678
* ``bzrlib.mutabletree.MutableTree.commit`` will now support a passed in
679
config as in previous versions of bzrlib. (Robert Collins)
681
* Fix glitch in the warning about unclean trees display.
682
(Vincent Ladeuil, #562665)
684
* Fixed Python2.4 incompatibilities in the bzr2.2b1 source tarball.
687
* Help messages generated by ``RegistryOption.from_kwargs`` list the
688
switches in alphabetical order, rather than in an undefined order.
689
(Martin von Gagern, #559409)
691
* Make sure the ``ExecutablePath`` and ``InterpreterPath`` are set in
692
Apport crash reports, to avoid "This problem report applies to a program
693
which is not installed any more" error.
694
(Martin Pool, James Westby, #528114)
696
* Reset ``siginterrupt`` flag to False every time we handle a signal
697
installed with ``set_signal_handler(..., restart_syscall=True)`` (from
698
``bzrlib.osutils``. Reduces the likelihood of "Interrupted System Call"
699
errors compared to registering ``signal.signal`` directly.
702
* When invoked with a range revision, ``bzr log`` doesn't show revisions
703
that are not part of the Y revisions ancestry anymore when invoked with
705
(Vincent Ladeuil, #474807)
707
* Properly handle ``param_name`` attribute for ``ListOption``.
708
(Martin von Gagern, #387117)
713
* ``bzr commit`` will prompt before using a commit message that was
714
generated by a template and not edited by the user.
715
(Robert Collins, #530265)
717
* ``bzr diff`` read-locks the trees and branches only once, saving about
718
10-20ms on ``bzr diff`` in a bzr.dev tree.
721
* ``bzr missing`` read-locks the branches only once.
724
* ``bzr pull`` locks the branches and tree only once.
727
* Index lookups in pack repositories search recently hit pack files first.
728
In repositories with many pack files this can greatly reduce the
729
number of files accessed, the number of bytes read, and the number of
730
read calls. An incremental pull via plain HTTP takes half the time and
731
bytes for a moderately large repository. (Andrew Bennetts)
733
* Index lookups only re-order the indexes when the hit files aren't
734
already first. Reduces the cost of reordering
735
(John Arbash Meinel, #562429)
737
* Less code is loaded at startup. (Cold-cache start time is about 10-20%
739
(Martin Pool, #553017)
744
* ``bzrlib.diff.get_trees_and_branches_to_diff`` is deprecated. Use
745
``get_trees_and_branches_to_diff_locked`` instead.
748
* ``TreeTransform.commit`` supports the full set of commit parameters, and
749
auto-determines branch nick if not supplied. (Aaron Bentley)
754
* ``bzrlib.commands.Command.run_direct`` is no longer needed - the pre
755
2.1 method of calling run() to perform testing or direct use via the API
756
is now possible again. As part of this, the _operation attribute on
757
Command is now transient and only exists for the duration of ``run()``.
765
This is the first beta of the 2.2 series, leading up to a 2.2.0
766
release in July or August. Beta releases are suitable for everyday use
767
but may cause some incompatibilities with plugins. Some plugins may need
768
small updates to work with 2.2b1.
770
2.2b1 includes some changes to make merge conflicts easier to understand
771
and resolve. It also removes some old unnecessary code, and loads
772
somewhat less code at startup. It starts adding a common infrastructure
773
for dealing with colocated named branches, which can be implemented in
774
various ways in either bzr native or foreign formats. On Ubuntu and
775
other platforms with the apport bug-reporting library, there's an easier
776
path to report problems with bzr. We plan to continue with these themes
777
through the 2.2 series.
779
Over thirty bugs have been fixed, including in the log command, exporting
780
to tarballs, restarting interrupted system calls, portability of compiled
781
extensions, making backups during upgrade, and locking on ftp.
786
* BTreeGraphIndex can now take an offset to indicate that the data starts
787
somewhere other than then beginning of the file. (John Arbash Meinel)
789
* Deleted very old hidden commands ``versionedfile-list``,
790
``weave-plan-merge``, ``weave-merge-text``.
793
* ``Repository.get_inventory_sha1()`` and ``Repository.get_revision_xml()``
794
have been removed. (Jelmer Vernooij)
796
* ``Repository.get_revision_inventory()`` has been removed in favor of
797
``Repository.get_inventory()``. (Jelmer Vernooij)
799
* All test servers have been moved out of the bzrlib.transport hierarchy to
800
bzrlib.tests.test_server *except* for MemoryServer, ChrootServer and
801
PathFilteringServer. ``bzrlib`` users may encounter test failures that can
802
be fixed by updating the related imports from ``bzrlib.transport.xxx`` to
803
``bzrlib.tests.test_server``.
806
* ``BranchReferenceFormat.initialize()`` now takes an optional name argument
807
as its second parameter, for consistency with the initialize() method of
808
other formats. (Jelmer Vernooij)
813
* Added ``bzr remove-branch`` command that can remove a local or remote
814
branch. (Jelmer Vernooij, #276295)
816
* ``bzr export`` now takes an optional argument ``--per-file-timestamps``
817
to set file mtimes to the last timestamp of the last revision in which
818
they were changed rather than the current time. (Jelmer Vernooij)
820
* If the Apport crash-reporting tool is available, bzr crashes are now
821
stored into the ``/var/crash`` apport spool directory, and the user is
822
invited to report them to the developers from there, either
823
automatically or by running ``apport-bug``. No information is sent
824
without specific permission from the user. (Martin Pool, #515052)
826
* Parsing of command lines, for example in ``diff --using``, no longer
827
treats backslash as an escape character on Windows. (Gordon Tyler,
830
* Plugins can be disabled by defining ``BZR_DISABLE_PLUGINS`` as
831
a list of plugin names separated by ':' (';' on windows).
832
(Vincent Ladeuil, #411413)
834
* Plugins can be loaded from arbitrary locations by defining
835
``BZR_PLUGINS_AT`` as a list of name@path separated by ':' (';' on
836
windows). This takes precedence over ``BZR_PLUGIN_PATH`` for the
837
specified plugins. This is targeted at plugin developers for punctual
838
needs and *not* intended to replace ``BZR_PLUGIN_PATH``.
839
(Vincent Ladeuil, #82693)
841
* Tag names can now be determined automatically by ``automatic_tag_name``
842
hooks on ``Branch`` if they are not specified on the command line.
845
* Tree-shape conflicts can be resolved by providing ``--take-this`` and
846
``--take-other`` to the ``bzr resolve`` command. Just marking the conflict
847
as resolved is still accessible via the ``--done`` default action.
850
* Merges can be proposed on Launchpad with the new lp-propose-merge command.
851
(Aaron Bentley, Jonathan Lange)
856
* Added docstring for ``Tree.iter_changes``
857
(John Arbash Meinel, #304182)
859
* Allow additional arguments to
860
``RemoteRepository.add_inventory_by_delta()``. (Jelmer Vernooij, #532631)
862
* Allow exporting a single file using ``bzr export``.
863
(Michal Junák, #511987)
865
* Allow syscalls to automatically restart when ``TextUIFactory``'s
866
SIGWINCH handler is invoked, avoiding ``EINTR`` errors during blocking
867
IO, which are often poorly handled by Python's libraries and parts of
868
bzrlib. (Andrew Bennetts, #496813)
870
* Avoid infinite recursion when probing for apport.
871
(Vincent Ladeuil, #516934)
873
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
874
(Martin Pool, #331095)
876
* Avoid truncating svn URLs.
877
(Martin Pool, Martin von Gagern, #545185)
879
* ``bzr add`` will not add conflict related files unless explicitly required.
880
(Vincent Ladeuil, #322767, #414589)
882
* ``bzr dump-btree`` now works on ``*.cix`` and ``*.six`` files. Those
883
indices do not have reference lists, so ``dump-btree`` will simply show
884
``None`` instead. (Andrew Bennetts, #488607)
886
* ``bzr help`` will no longer trigger the get_missing_command hook when
887
doing a topic lookup. This avoids prompting (like 'no command plugins/loom,
888
did you mean log?') when getting help. In future we may trigger the hook
889
deliberately when no help topics match from any help index.
890
(Robert Collins, #396261)
892
* ``bzr log -n0 -r..A.B.C`` should not crash but just consider the None
893
revspec as representing the first revision of the branch.
894
(Vincent Ladeuil, #519862)
896
* ``bzr remove-tree`` can now remove multiple working trees.
897
(Jared Hance, Andrew Bennetts, #253137)
899
* ``bzr resolve --take-this`` and ``--take-other`` now correctly renames
900
the kept file on content conflicts where one side deleted the file.
901
(Vincent Ladeuil, #529968)
903
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
904
permissions as ``.bzr`` directory on a POSIX OS.
905
(Parth Malwankar, #262450)
907
* ``bzr upgrade`` now names backup directory as ``backup.bzr.~N~`` instead
908
of ``backup.bzr``. This directory is ignored by bzr commands such as
910
(Parth Malwankar, #335033, #300001)
912
* Cope with non-utf8 characters inside ``.bzrignore``.
913
(Jason Spashett, #183504)
915
* Correctly interpret "451 Rename/move failure: Directory not empty" from
916
ftp servers while trying to take a lock.
917
(Martin Pool, #528722)
919
* DirStateRevisionTree.kind() was returning wrong result when 'kind'
920
changes occured between the workingtree and one of its parents.
921
(Vincent Ladeuil, #535547)
923
* Fix ``log`` to better check ancestors even if merged revisions are involved.
924
(Vincent Ladeuil, #476293)
926
* Loading a plugin from a given path with ``BZR_PLUGINS_AT`` doesn't depend
927
on os.lisdir() order and is now reliable.
928
(Vincent Ladeuil, #552922).
930
* Many IO operations that returned ``EINTR`` were retried even if it
931
wasn't safe to do so via careless use of ``until_no_eintr``. Bazaar now
932
only retries operations that are safe to retry, and in some cases has
933
switched to operations that can be retried (e.g. ``sock.send`` rather than
935
(Andrew Bennetts, Martin <gzlist@googlemail.com>, #496813)
937
* Path conflicts now support --take-this and --take-other even when a
938
deletion is involved.
939
(Vincent Ladeuil, #531967)
941
* Network transfer amounts and rates are now displayed in SI units according
942
to the Ubuntu Units Policy <https://wiki.ubuntu.com/UnitsPolicy>.
943
(Gordon Tyler, #514399)
945
* Support kind markers for socket and fifo filesystem objects. This
946
prevents ``bzr status --short`` from crashing when those files are
947
present. (John Arbash Meinel, #303275)
949
* ``bzr mkdir DIR`` will not create DIR unless DIR's parent is a versioned
950
directory. (Parth Malwankar, #138600)
952
* SSH child processes will now ignore SIGQUIT on nix systems so breaking into
953
the debugger won't kill the session.
954
(Martin <gzlist@googlemail.com>, #162502)
956
* Tolerate patches with leading noise in ``bzr-handle-patch``.
957
(Toshio Kuratomi, Martin Pool, #502076)
959
* ``update -r`` now supports updating to revisions that are not on
960
mainline (i.e. it supports dotted revisions).
961
(Parth Malwankar, #517800)
963
* Use first apparent author not committer in GNU Changelog format.
964
(Martin von Gagern, #513322)
969
* ``bzrlib.merge_directive._BaseMergeDirective`` has been renamed to
970
``bzrlib.merge_directive.BaseMergeDirective`` and is now public.
973
* ``BranchFormat.initialize`` now takes an optional ``name`` of the colocated
974
branch to create. (Jelmer Vernooij)
976
* ``BzrDir.get_branch_transport`` now takes an optional ``name`` of the
977
colocated branch to open. (Jelmer Vernooij)
979
* Added ``bzrlib.osutils.set_signal_handler``, a convenience function that
980
can set a signal handler and call ``signal.siginterrupt(signum,
981
False)`` for it, if the platform and Python version supports it.
982
(Andrew Bennetts, #496813)
984
* New ``bzrlib.initialize`` is recommended for programs using bzrlib to
985
run when starting up; it sets up several things that previously needed
986
to be done separately.
987
(Martin Pool, #507710)
989
* Exporters now support a ``per_file_timestamps`` argument to write out the
990
timestamp of the commit in which a file revision was introduced.
993
* New method ``BzrDir.list_branches()`` that returns a sequence of branches
994
present in a control directory. (Jelmer Vernooij)
996
* New method ``Repository.get_known_graph_ancestry()``.
997
(Jelmer Vernooij, #495502)
999
* New transport methods ``readlink``, ``symlink`` and ``hardlink``.
1002
* Remove unused ``CommandFailed`` exception.
1008
* ``bzrlib.branchbuilder.BranchBuilder.build_snapshot`` now accepts a
1009
``message_callback`` in the same way that commit does. (Robert Collins)
1011
* ``bzrlib.builtins.Commit.run`` raises ``bzrlib.errors.BoundBranchOutOfDate``
1012
rather than ``bzrlib.errors.BzrCommandError`` when the bound branch is out
1013
of date. (Gary van der Merwe)
1015
* ``bzrlib.commands.run_bzr`` is more extensible: callers can supply the
1016
functions to load or disable plugins if they wish to use a different
1017
plugin mechanism; the --help, --version and no-command name code paths
1018
now use the generic pluggable command lookup infrastructure.
1021
* ``bzrlib.errors.BoundBranchOutOfDate`` has a new field ``extra_help``
1022
which can be set to add extra help to the error. (Gary van der Merwe)
1024
* New method ``Branch.automatic_tag_name`` that can be used to find the
1025
tag name for a particular revision automatically. (Jelmer Vernooij)
1027
* The methods ``BzrDir.create_branch()``, ``BzrDir.destroy_branch()`` and
1028
``BzrDir.open_branch()`` now take an optional ``name`` argument.
1034
* bzr now has a ``.testr.conf`` file in its source tree configured
1035
appropriately for running tests with Testrepository
1036
(``https://launchpad.net/testrepository``). (Robert Collins)
1038
* Documentation about testing with ``subunit`` has been tweaked.
1041
* Known failures has been added for resolve --take-other on ParentLoop
1042
conflicts. This reflects bug #537956 without fixing it.
1045
* New ``bzrlib.tests.test_import_tariff`` can make assertions about what
1046
Python modules are loaded, to guard against startup time or library
1047
dependency regressions.
1050
* PQM will now run with subunit output. To analyze a PQM error use
1051
tribunal, or cat log | subunit-filter | subunit2pyunit. (Robert Collins)
1053
* Stop sending apport crash files to ``.cache`` in the directory from
1054
which ``bzr selftest`` was run. (Martin Pool, #422350)
1056
* Tests no longer fail if "close() called during concurrent
1057
operation on the same file object" occurs when closing the log file
1058
(which can happen if a thread tries to write to the log file at the
1059
wrong moment). An warning will be written to ``stderr`` when this
1060
happens, and another warning will be written if the log file could not
1061
be closed after retrying 100 times. (Andrew Bennetts, #531746)
1066
:Codename: Do run run
1067
:2.1.3: NOT RELEASED YET
1069
Compatibility Breaks
1070
********************
1078
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
1079
way which should help avoid problems with concurrent writers.
1080
(Vincent Ladeuil, #525571)
1082
* Don't traceback trying to unversion children files of an already
1083
unversioned directory. (Vincent Ladeuil, #494221)
1085
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
1086
which can result in "missing referenced chk root keys" errors when
1087
fetching from repositories with affected revisions.
1088
(Andrew Bennetts, #522637)
1090
* Raise ValueError instead of a string exception.
1091
(John Arbash Meinel, #586926)
1113
This release fixes two critical networking issues with older servers and
1114
with interrupted system call errors when pushing or pulling. We recommend
1115
upgrading to anyone running a 2.1.x version of bzr.
1120
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
1121
support of bzr-externals and scmproj plugins.
1122
(Alexander Belchenko, bug #572098)
1124
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
1125
(Aaron Bentley, #559436)
1127
* Do not register a SIGWINCH signal handler, instead just poll for the
1128
terminal width as needed. This avoids the "Interrupted System Call"
1129
problems that occur on POSIX with all currently released versions of
1131
(Andrew Bennetts, #583941)
1133
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
1134
versions before 1.6.
1135
(Andrew Bennetts, #528041)
1137
* Reset ``siginterrupt`` flag to False every time we handle a signal
1138
installed with ``set_signal_handler(..., restart_syscall=True)`` (from
1139
``bzrlib.osutils``. Reduces the likelihood of "Interrupted System Call"
1140
errors compared to registering ``signal.signal`` directly.
1143
* Reduce peak memory by one copy of compressed text.
1144
(John Arbash Meinel, #566940)
1146
* Support Pyrex 0.9.9, required changing how we handle exceptions in Pyrex.
1147
(John Arbash Meinel, #582656)
1149
* When passing a file to ``UTF8DirReader`` make sure to close the current
1150
directory file handle after the chdir fails. Otherwise when passing many
1151
filenames into a command line ``bzr status`` we would leak descriptors.
1152
(John Arbash Meinel, #583486)
1157
* ``_remember_remote_is_before`` no longer raises AssertionError when
1158
suboptimal network behaviour is noticed; instead it just mutters to the
1159
log file (and warns the user if they have set the ``hpss`` debug flag).
1160
This was causing unnecessary aborts for performance bugs that are minor
1162
(Andrew Bennetts, #528041)
1170
This is a small bugfix release. Upgrading is recommended for anyone
1171
running 2.1.0 or earlier.
1176
* Allow syscalls to automatically restart when ``TextUIFactory``'s
1177
SIGWINCH handler is invoked, avoiding ``EINTR`` errors during blocking
1178
IO, which are often poorly handled by Python's libraries and parts of
1179
bzrlib. (Andrew Bennetts, #496813)
1181
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
1182
(Martin Pool, #331095)
1184
* Fix plugin packaging on Windows. (Ian Clatworthy, #524162)
1186
* Fix stub sftp test server to call os.getcwdu().
1187
(Vincent Ladeuil, #526221, #526353)
1189
* Fixed CHM generation by moving the NEWS section template into
1190
a separate file. (Ian Clatworthy, #524184)
1192
* Merge correctly when this_tree is not a WorkingTree. (Aaron Bentley)
1194
* Register SIGWINCH handler only when creating a ``TextUIFactory``; avoids
1195
problems importing bzrlib from a non-main thread.
1196
(Elliot Murphy, #521989)
1198
* Repositories accessed via a smart server now reject being stacked on a
1199
repository in an incompatible format, as is the case when accessing them
1200
via other methods. This was causing fetches from those repositories via
1201
a smart server (e.g. using ``bzr branch``) to receive invalid data.
1202
(Andrew Bennetts, #562380)
1204
* Standardize the error handling when creating a new ``StaticTuple``
1205
(problems will raise TypeError). (Matt Nordhoff, #457979)
1207
* Warn if pyrex is too old to compile the new ``SimpleSet`` and
1208
``StaticTuple`` extensions, rather than having the build fail randomly.
1209
(John Arbash Meinel, #449776)
1214
* Added a link to the Desktop Guide. (Ian Clatworthy)
1216
* Added What's New in Bazaar 2.1 document. (Ian Clatworthy)
1218
* Drop Google Analytics from the core docs as they caused problems
1219
in the CHM files. (Ian Clatworthy, #502010)
1224
* Added ``bzrlib.osutils.set_signal_handler``, a convenience function that
1225
can set a signal handler and call ``signal.siginterrupt(signum,
1226
False)`` for it, if the platform and Python version supports it.
1227
(Andrew Bennetts, #496813)
1233
:Codename: Strasbourg
1236
This release marks our second long-term-stable series. The Bazaar team
1237
has decided that we will continue to make bugfix-only 2.0.x and 2.1.x
1238
releases, along with 2.2 development releases.
1240
This is a fairly incremental update, focusing on polish and bugfixing.
1241
There are no changes for supported disk formats. Key updates include
1242
reduced memory consumption for many operations, a new per-file merge
1243
hook, ignore patterns can now include '!' to exclude files, globbing
1244
support for all commands on Windows, and support for addressing home
1245
directories via ``bzr+ssh://host/~/`` syntax.
1247
Users are encouraged to upgrade from the 2.0 stable series.
1252
* Don't require testtools to use sftp.
1253
(Vincent Ladeuil, #516183)
1255
* Fix "AttributeError in Inter1and2Helper" during fetch.
1256
(Martin Pool, #513432)
1258
* ``bzr update`` performs the two merges in a more logical order and will stop
1259
when it encounters conflicts.
1260
(Gerard Krol, #113809)
1262
* Give a better error message when doing ``bzr bind`` in an already bound
1263
branch. (Neil Martinsen-Burrell, #513063)
1265
* Ignore ``KeyError`` from ``remove_index`` during ``_abort_write_group``
1266
in a pack repository, which can happen harmlessly if the abort occurs during
1267
finishing the write group. Also use ``bzrlib.cleanup`` so that any
1268
other errors that occur while aborting the individual packs won't be
1269
hidden by secondary failures when removing the corresponding indices.
1270
(Andrew Bennetts, #423015)
1272
* Set the mtime of files exported to a directory by ``bzr export`` all to
1273
the same value to avoid confusing ``make`` and other date-based build
1274
systems. (Robert Collins, #515631)
1279
* Fetching into experimental formats will now print a warning. (Jelmer
1285
* ``Repository.deserialise_inventory`` has been renamed to
1286
``Repository._deserialise_inventory`` to indicate it is private.
1289
* ``Repository.get_inventory_xml`` has been renamed to
1290
``Repository._get_inventory_xml`` to indicate it is private.
1293
* ``Repository.serialise_inventory`` has been renamed to
1294
``Repository._serialise_inventory`` to indicate it is private.
1296
* Using the ``bzrlib.chk_map`` module from within multiple threads at the
1297
same time was broken due to race conditions with a module level page
1298
cache. This shows up as a KeyError in the ``bzrlib.lru_cache`` code with
1299
``bzrlib.chk_map`` in the backtrace, and can be triggered without using
1300
the same high level objects such as ``bzrlib.repository.Repository``
1301
from different threads. chk_map now uses a thread local cache which may
1302
increase memory pressure on processes using threads.
1303
(Robert Collins, John Arbash Meinel, #514090)
1305
* The new ``merge_file_content`` should now be ok with tests to avoid
1307
(Vincent Ladeuil, #515597)
1312
* Use ``bzrlib.cleanup`` rather than less robust ``try``/``finally``
1313
blocks in several places in ``bzrlib.merge``. This avoids masking prior
1314
errors when errors like ``ImmortalPendingDeletion`` occur during cleanup
1316
(Andrew Bennetts, #517275)
1321
* The ``remove_index`` method of
1322
``bzrlib.repofmt.pack_repo.AggregateIndex`` no longer takes a ``pack``
1323
argument. This argument was always ignored.
1324
(Andrew Bennetts, #423015)
1329
:Codename: after the bubbles
1330
:2.1.0rc2: 2010-01-29
1332
This is a quick-turn-around to update a small issue with our new per-file
1333
merge hook. We expect no major changes from this to the final 2.1.0.
1338
* The new ``merge_file_content`` hook point has been altered to provide a
1339
better API where state for extensions can be stored rather than the
1340
too-simple function based approach. This fixes a performance regression
1341
where branch configuration would be parsed per-file during merge. As
1342
part of this the included news_merger has been refactored into a base
1343
helper class ``bzrlib.merge.ConfigurableFileMerger``.
1344
(Robert Collins, John Arbash Meinel, #513822)
1350
:Codename: the 'new' stable
1351
:2.1.0rc1: 2009-01-21
1353
This is the first stable release candidate for Bazaar's 2.1 series. From
1354
this point onwards, the 2.1 series will be considered stable (as the 2.0
1355
series) and only bugfixes are expected to be incorporated. The dozen or so
1356
bugfixes in the 2.0.4 release are also included in this release (along
1357
with more than 15 more bugfixes). Some of the interesting features are
1358
support for per-file merge hooks, ``bzr unshelve --preview``, support
1359
for using ! in ignore files to exclude files from being ignored, a small
1360
memory leak was squashed, and many ``ObjectNotLocked`` errors were fixed.
1361
This looks to be a very good start for a new stable series.
1367
* Add bug information to log output when available.
1368
(Neil Martinsen-Burrell, Guillermo Gonzalez, #251729)
1370
* Added ``merge_file_content`` hook point to ``Merger``, allowing plugins
1371
to register custom merge logic, e.g. to provide smarter merging for
1374
* Bazaar now includes the ``news_merge`` plugin. It is disabled by
1375
default, to enable it add a ``news_merge_files`` option to your
1376
configuration. Consult ``bzr help news_merge`` for more information.
1379
* ``bzr branch`` now takes a ``--bind`` option. This lets you
1380
branch and bind all in one command. (Ian Clatworthy)
1382
* ``bzr switch`` now takes a ``--revision`` option, to allow switching to
1383
a specific revision of a branch. (Daniel Watkins, #183559)
1385
* ``bzr unshelve --preview`` can now be used to show how a patch on the
1386
shelf would be applied to the working tree.
1387
(Guilherme Salgado, #308122)
1389
* ``bzr update`` now takes a ``--revision`` argument. This lets you
1390
change the revision of the working tree to any revision in the
1391
ancestry of the current or master branch. (Matthieu Moy, Mark Hammond,
1392
Martin Pool, #45719)
1394
* ``-Dbytes`` can now be used to display the total number of bytes
1395
transferred for the current command. This information is always logged
1396
to ``.bzr.log`` for later inspection. (John Arbash Meinel)
1398
* New ignore patterns. Patterns prefixed with '!' are exceptions to
1399
ignore patterns and take precedence over regular ignores. Such
1400
exceptions are used to specify files that should be versioned which
1401
would otherwise be ignored. Patterns prefixed with '!!' act as regular
1402
ignore patterns, but have highest precedence, even over the '!'
1403
exception patterns. (John Whitley, #428031)
1405
* The ``supress_warnings`` configuration option has been introduced to disable
1406
various warnings (it currently only supports the ``format_deprecation``
1407
warning). The new option can be set in any of the following locations:
1408
``bazaar.conf``, ``locations.conf`` and/or ``branch.conf``.
1409
(Ted Gould, Matthew Fuller, Vincent Ladeuil)
1414
* Always show a message if an OS error occurs while trying to run a
1415
user-specified commit message editor.
1416
(Martin Pool, #504842)
1418
* ``bzr diff`` will now use the epoch when it is unable to determine
1419
the timestamp of a file, if the revision it was introduced in is a
1420
ghost. (Jelmer Vernooij, #295611)
1422
* ``bzr switch -b`` can now create branches that are located using directory
1423
services such as ``lp:``, even when the branch name doesn't contain a
1424
'/'. (Neil Martinsen-Burrell, #495263)
1426
* ``bzr unshelve`` has improved messages about what it is doing.
1427
(Neil Martinsen-Burrell, #496917)
1429
* Concurrent autopacking is more resilient to already-renamed pack files.
1430
If we find that a file we are about to obsolete is already obsoleted, we
1431
do not try to rename it, and we leave the file in ``obsolete_packs``.
1432
The code is also fault tolerant if a file goes missing, assuming that
1433
another process already removed the file.
1434
(John Arbash Meinel, Gareth White, #507557)
1436
* Fix "Too many concurrent requests" in reconcile when network connection
1437
fails. (Andrew Bennetts, #503878)
1439
* Fixed a side effect mutation of ``RemoteBzrDirFormat._network_name``
1440
that caused some tests to fail when run in a non-default order.
1441
Probably no user impact. (Martin Pool, #504102)
1443
* Fixed ``ObjectNotLocked`` error in ``bzr cat -rbranch:../foo FILE``.
1444
(Andrew Bennetts, #506274)
1446
* FTP transports support Unicode paths by encoding/decoding them as utf8.
1447
(Vincent Ladeuil, #472161)
1449
* Listen to the SIGWINCH signal to update the terminal width.
1450
(Vincent Ladeuil, #316357)
1452
* Progress bars are now hidden when ``--quiet`` is given.
1453
(Martin Pool, #320035)
1455
* ``SilentUIFactory`` now supports ``make_output_stream`` and discards
1456
whatever is written to it. This un-breaks some plugin tests that
1457
depended on this behaviour.
1458
(Martin Pool, #499757)
1460
* When operations update the working tree, all affected files should end
1461
up with the same mtime. (eg. when versioning a generated file, if you
1462
update the source and the generated file together, the generated file
1463
should appear up-to-date.)
1464
(John Arbash Meinel, Martin <gzlist>, #488724)
1469
* Added ``add_cleanup`` and ``cleanup_now`` to ``bzrlib.command.Command``.
1470
All the builtin commands now use ``add_cleanup`` rather than
1471
``try``/``finally`` blocks where applicable as it is simpler and more
1472
robust. (Andrew Bennetts)
1474
* All except a small number of storage formats are now hidden, making
1475
the help for numerous commands far more digestible. (Ian Clatworthy)
1477
* Attempts to open a shared repository as a branch (e.g. ``bzr branch
1478
path/to/repo``) will now include "location is a repository" as a hint in
1479
the error message. (Brian de Alwis, Andrew Bennetts, #440952)
1481
* Push will now inform the user when they are trying to push to a foreign
1482
VCS for which roundtripping is not supported, and will suggest them to
1483
use dpush. (Jelmer Vernooij)
1485
* The version of bzr being run is now written to the log file.
1486
(__monty__, #257170)
1488
* Transport network activity indicator is shown more of the time when
1489
Bazaar is doing network IO.
1495
* Add documentation on creating merges with more than one parent.
1496
(Neil Martinsen-Burrell, #481526)
1498
* Better explain the --uncommitted option of merge.
1499
(Neil Martinsen-Burrell, #505088)
1501
* Improve discussion of pending merges in the documentation for
1502
``revert``. (Neil Martinsen-Burrell, #505093)
1504
* Improved help for ``bzr send``.
1505
(Martin Pool, Bojan Nikolic)
1507
* There is a System Administrator's Guide in ``doc/en/admin-guide``,
1508
including discussions of installation, relevant plugins, security and
1509
backup. (Neil Martinsen-Burrell)
1511
* The ``conflicts`` help topic has been renamed to ``conflict-types``.
1514
* The User Reference is now presented as a series of topics.
1515
Many of the included topics have link and format tweaks applied.
1521
* Added ``cachedproperty`` decorator to ``bzrlib.decorators``.
1524
* Many test features were renamed from ``FooFeature`` to ``foo_feature``
1525
to be consistent with instances being lower case and classes being
1526
CamelCase. For the features that were more likely to be used, we added a
1527
deprecation thunk, but not all. (John Arbash Meinel)
1529
* Merger classes (such as ``Merge3Merger``) now expect a ``this_branch``
1530
parameter in their constructors, and provide ``this_branch`` as an
1531
attribute. (Andrew Bennetts)
1533
* The Branch hooks pre_change_branch_tip no longer masks exceptions raised
1534
by plugins - the original exceptions are now preserved. (Robert Collins)
1536
* The Transport ``Server.tearDown`` method is now renamed to
1537
``stop_server`` and ``setUp`` to ``start_server`` for consistency with
1538
our normal naming pattern, and to avoid confusion with Python's
1539
``TestCase.tearDown``. (Martin Pool)
1541
* ``WorkingTree.update`` implementations must now accept a ``revision``
1547
* Added ``BzrDir.open_branchV3`` smart server request, which can receive
1548
a string of details (such as "location is a repository") as part of a
1549
``nobranch`` response. (Andrew Bennetts, #440952)
1551
* New helper osutils.UnicodeOrBytesToBytesWriter which encodes unicode
1552
objects but passes str objects straight through. This is used for
1553
selftest but may be useful for diff and other operations that generate
1554
mixed output. (Robert Collins)
1556
* New exception ``NoRoundtrippingSupport``, for use by foreign branch
1557
plugins. (Jelmer Vernooij)
1562
* ``bzrlib.tests.permute_for_extension`` is a helper that simplifies
1563
running all tests in the current module, once against a pure python
1564
implementation, and once against an extension (pyrex/C) implementation.
1565
It can be used to dramatically simplify the implementation of
1566
``load_tests``. (John Arbash Meinel)
1568
* ``bzrlib.tests.TestCase`` now subclasses ``testtools.testcase.TestCase``.
1569
This permits features in testtools such as getUniqueInteger and
1570
getUniqueString to be used. Because of this, testtools version 0.9.2 or
1571
newer is now a dependency to run bzr selftest. Running with versions of
1572
testtools less than 0.9.2 will cause bzr to error while loading the test
1573
suite. (Robert Collins)
1575
* Shell-like tests now support the command "mv" for moving files. The
1576
syntax for ``mv file1 file2``, ``mv dir1 dir2`` and ``mv file dir`` is
1577
supported. (Neil Martinsen-Burrell)
1579
* The test progress bar no longer distinguishes tests that 'errored' from
1580
tests that 'failed' - they're all just failures.
1586
:2.0.6: NOT RELEASED YET
1591
* Additional merges after an unrelated branch has been merged with its
1592
history no longer crash when deleted files are involved.
1593
(Vincent Ladeuil, John Arbash Meinel, #375898)
1595
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
1596
target of the symlink.
1597
(Martin Pool, John Arbash Meinel, #128562)
1599
* ``bzr revert`` now only takes write lock on working tree, instead of on
1600
both working tree and branch.
1601
(Danny van Heumen, #498409)
1603
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
1604
permissions as ``.bzr`` directory on a POSIX OS.
1605
(Parth Malwankar, #262450)
1607
* Don't traceback trying to unversion children files of an already
1608
unversioned directory. (Vincent Ladeuil, #494221)
1610
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
1611
which can result in "missing referenced chk root keys" errors when
1612
fetching from repositories with affected revisions.
1613
(Andrew Bennetts, #522637)
1615
* Raise ValueError instead of a string exception.
1616
(John Arbash Meinel, #586926)
1618
* Reduce peak memory by one copy of compressed text.
1619
(John Arbash Meinel, #566940)
1621
* Repositories accessed via a smart server now reject being stacked on a
1622
repository in an incompatible format, as is the case when accessing them
1623
via other methods. This was causing fetches from those repositories via
1624
a smart server (e.g. using ``bzr branch``) to receive invalid data.
1625
(Andrew Bennetts, #562380)
1627
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
1628
error. This error was caused by 2.0 not being updated when upstream
1629
python merged the end of run patch, which chose ``stopTestRun`` rather than
1630
``done``. (Robert Collins, #571437)
1632
* When passing a file to ``UTF8DirReader`` make sure to close the current
1633
directory file handle after the chdir fails. Otherwise when passing many
1634
filenames into a command line ``bzr status`` we would leak descriptors.
1635
(John Arbash Meinel, #583486)
1641
* ``build_tree_contents`` can create symlinks.
1642
(Martin Pool, John Arbash Meinel)
1650
This fifth release in our 2.0 series addresses several user-inconvenience
1651
bugs. None are critical, but upgrading is recommended for all users on
1652
earlier 2.0 releases.
1657
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
1658
(Martin Pool, #331095)
1660
* Concurrent autopacking is more resilient to already-renamed pack files.
1661
If we find that a file we are about to obsolete is already obsoleted, we
1662
do not try to rename it, and we leave the file in ``obsolete_packs``.
1663
The code is also fault tolerant if a file goes missing, assuming that
1664
another process already removed the file.
1665
(John Arbash Meinel, Gareth White, #507557)
1667
* Cope with the lockdir ``held/info`` file being empty, which seems to
1668
happen fairly often if the process is suddenly interrupted while taking
1670
(Martin Pool, #185103)
1672
* Give the warning about potentially slow cross-format fetches much
1673
earlier on in the fetch operation. Don't show this message during
1674
upgrades, and show the correct format indication for remote
1676
(Martin Pool, #456077, #515356, #513157)
1678
* Handle renames correctly when there are files or directories that
1679
differ only in case. (Chris Jones, Martin Pool, #368931)
1681
* If ``bzr push --create-prefix`` triggers an unexpected ``NoSuchFile``
1682
error, report that error rather than failing with an unhelpful
1683
``UnboundLocalError``.
1684
(Andrew Bennetts, #423563)
1686
* Running ``bzr`` command without any arguments now shows bzr
1687
version number along with rest of the help text.
1688
(Parth Malwankar, #369501)
1690
* Use osutils.O_NOINHERIT for some files on win32 to avoid PermissionDenied
1692
(Inada Naoki, #524560)
1697
* Added ``location-alias`` help topic.
1698
(Andrew Bennetts, #337834)
1700
* Fixed CHM generation by moving the NEWS section template into
1701
a separate file. (Ian Clatworthy, #524184)
1707
:Codename: smooth sailing
1710
The fourth bugfix-only release in the 2.0 series contains more than a
1711
dozen bugfixes relative to 2.0.3. The primary focus is on handling
1712
interruptions and concurrent operations more cleanly, there is also a fair
1713
improvement to ``bzr export`` when exporting a remote branch.
1719
* ``bzr annotate`` on another branch with ``-r branch:...`` no longer
1720
fails with an ``ObjectNotLocked`` error. (Andrew Bennetts, #496590)
1722
* ``bzr export dir`` now requests all file content as a record stream,
1723
rather than requsting the file content one file-at-a-time. This can make
1724
exporting over the network significantly faster (54min => 9min in one
1725
case). (John Arbash Meinel, #343218)
1727
* ``bzr serve`` no longer slowly leaks memory. The compiled
1728
``bzrlib.bencode.Encoder()`` class was using ``__del__`` to cleanup and
1729
free resources, and it should have been using ``__dealloc__``.
1730
This will likely have an impact on any other process that is serving for
1731
an extended period of time. (John Arbash Meinel, #494406)
1733
* Check for SIGINT (Ctrl-C) and other signals immediately if ``readdir``
1734
returns ``EINTR`` by calling ``PyErr_CheckSignals``. This affected the
1735
optional ``_readdir_pyx`` extension. (Andrew Bennetts, #495023)
1737
* Concurrent autopacks will no longer lose a newly created pack file.
1738
There was a race condition, where if the reload happened at the right
1739
time, the second packer would forget the name of the newly added pack
1740
file. (John Arbash Meinel, Gareth White, #507566)
1742
* Give a clearer message if the lockdir disappears after being apparently
1743
successfully taken. (Martin Pool, #498378)
1745
* Give a warning when fetching between repositories (local or remote) with
1746
sufficiently different formats that the content will need to be
1747
serialized (ie ``InterDifferingSerializer`` or ``inventory-deltas``), so
1748
the user has a clue that upgrading could make it faster.
1749
(Martin Pool, #456077)
1751
* If we fail to open ``~/.bzr.log`` write a clear message to stderr rather
1752
than using ``warning()``. The log file is opened before logging is set
1753
up, and it leads to very confusing: 'no handlers for "bzr"' messages for
1754
users, rather than something nicer.
1755
(John Arbash Meinel, Barry Warsaw, #503886)
1757
* Refuse to build with any Pyrex 0.9.4 release, as they have known bugs.
1758
(Martin Pool, John Arbash Meinel, #449372)
1760
* ``setup.py bdist_rpm`` now properly finds extra files needed for the
1761
build. (there is still the distutils bug
1762
http://bugs.python.org/issue644744) (Joe Julian, #175839)
1764
* The 2a format wasn't properly restarting autopacks when something
1765
changed underneath it (like another autopack). Now concurrent
1766
autopackers will properly succeed. (John Arbash Meinel, #495000)
1768
* ``TreeTransform`` can now handle when a delta says that the file id for
1769
the tree root changes. Rather than trying to rename your working
1770
directory, or failing early saying that you can't have multiple
1771
tree roots. This also fixes revert, update, and pull when the root id
1772
changes. (John Arbash Meinel, #494269, #504390)
1774
* ``_update_current_block`` no longer suppresses exceptions, so ^C at just
1775
the right time will get propagated, rather than silently failing to move
1776
the block pointer. (John Arbash Meinel, Gareth White, #495023)
1781
* We have a new ``test_source`` that ensures all pyrex ``cdef`` functions
1782
handle exceptions somehow. (Possibly by setting ``# cannot_raise``
1783
rather than an ``except ?:`` clause.) This should help prevent bugs like
1784
bug #495023. (John Arbash Meinel)
1790
:Codename: san francisco airport
1791
:2.1.0b4: 2009-12-14
1793
The fourth beta release in the 2.1 series brings with it a significant
1794
number of bugfixes (~20). The test suite is once again (finally) "green"
1795
on Windows, and should remain that way for future releases. There are a
1796
few performance related updates (faster upgrade and log), and several UI
1797
tweaks. There has also been a significant number of tweaks to the runtime
1798
documentation. 2.1.0b4 include everything from the 2.0.3 release.
1801
Compatibility Breaks
1802
********************
1804
* The BZR_SSH environmental variable may now be set to the path of a secure
1805
shell client. If currently set to the value ``ssh`` it will now guess the
1806
vendor of the program with that name, to restore the old behaviour that
1807
indicated the SSH Corporation client use ``sshcorp`` instead as the magic
1808
string. (Martin <gzlist@googlemail.com>, #176292)
1813
* ``bzr commit`` now has a ``--commit-time`` option.
1814
(Alexander Sack, #459276)
1816
* ``-Dhpss`` now increases logging done when run on the bzr server,
1817
similarly to how it works on the client. (John Arbash Meinel)
1819
* New option ``bzr unshelve --keep`` applies the changes and leaves them
1820
on the shelf. (Martin Pool, Oscar Fuentes, #492091)
1822
* The ``BZR_COLUMNS`` envrionment variable can be set to force bzr to
1823
respect a given terminal width. This can be useful when output is
1824
redirected or in obscure cases where the default value is not
1825
appropriate. Pagers can use it to get a better control of the line
1829
* The new command ``bzr lp-mirror`` will request that Launchpad update its
1830
mirror of a local branch. This command will only function if launchpadlib
1838
* After renaming a file, the dirstate could accidentally reference
1839
``source\\path`` rather than ``source/path`` on Windows. This might be a
1840
source of some dirstate-related failures. (John Arbash Meinel)
1842
* ``bzr commit`` now detects commit messages that looks like file names
1843
and issues a warning.
1844
(Gioele Barabucci, #73073)
1846
* ``bzr ignore /`` no longer causes an IndexError. (Gorden Tyler, #456036)
1848
* ``bzr log -n0 -rN`` should not return revisions beyond its merged revisions.
1849
(#325618, #484109, Marius Kruger)
1851
* ``bzr merge --weave`` and ``--lca`` will now create ``.BASE`` files for
1852
files with conflicts (similar to ``--merge3``). The contents of the file
1853
is a synthesis of all bases used for the merge.
1854
(John Arbash Meinel, #40412)
1856
* ``bzr mv --quiet`` really is quiet now. (Gordon Tyler, #271790)
1858
* ``bzr serve`` is more clear about the risk of supplying --allow-writes.
1859
(Robert Collins, #84659)
1861
* ``bzr serve --quiet`` really is quiet now. (Gordon Tyler, #252834)
1863
* Fix bug with redirected URLs over authenticated HTTP.
1864
(Glen Mailer, Neil Martinsen-Burrell, Vincent Ladeuil, #395714)
1866
* Interactive merge doesn't leave branch locks behind. (Aaron Bentley)
1868
* Lots of bugfixes for the test suite on Windows. We should once again
1869
have a test suite with no failures on Windows. (John Arbash Meinel)
1871
* ``osutils.terminal_width()`` obeys the BZR_COLUMNS environment
1872
variable but returns None if the terminal is not a tty (when output is
1873
redirected for example). Also fixes its usage under OSes that doesn't
1874
provide termios.TIOCGWINSZ. Make sure the corresponding tests runs on
1876
(Joke de Buhr, Vincent Ladeuil, #353370, #62539)
1877
(John Arbash Meinel, Vincent Ladeuil, #492561)
1879
* Terminate ssh subprocesses when no references to them remain, fixing
1880
subprocess and file descriptor leaks. (Andrew Bennetts, #426662)
1882
* The ``--hardlink`` option of ``bzr branch`` and ``bzr checkout`` now
1883
works for 2a format trees. Only files unaffected by content filters
1884
will be hardlinked. (Andrew Bennetts, #408193)
1886
* The new glob expansion on Windows would replace all ``\`` characters
1887
with ``/`` even if it there wasn't a glob to expand, the arg was quoted,
1888
etc. Now only change slashes if there is something being glob expanded.
1889
(John Arbash Meinel, #485771)
1891
* Use our faster ``KnownGraph.heads()`` functionality when computing the
1892
new rich-root heads. This can cut a conversion time in half (mysql from
1893
13.5h => 6.2h) (John Arbash Meinel, #487632)
1895
* When launching a external diff tool via bzr diff --using, temporary files
1896
are no longer created, rather, the path to the file in the working tree is
1897
passed to the external diff tool. This allows the file to be edited if the
1898
diff tool provides for this. (Gary van der Merwe, #490738)
1900
* The launchpad-open command can now be used from a subdirectory of a
1901
branch, not just from the root of the branch.
1902
(Neil Martinsen-Burrell, #489102)
1908
* ``bzr log`` is now faster. (Ian Clatworthy)
1910
* ``bzr update`` provides feedback on which branch it is up to date with.
1911
(Neil Martinsen-Burrell)
1913
* ``bzr upgrade`` from pre-2a to 2a can be significantly faster (4x).
1914
For details see the xml8 patch and heads() improvements.
1915
(John Arbash Meinel)
1917
* ``bzrlib.urlutils.local_path_from_url`` now accepts
1918
'file://localhost/' as well as 'file:///' URLs on POSIX. (Michael
1921
* The progress bar now shows only a spinner and per-operation counts,
1922
not an overall progress bar. The previous bar was often not correlated
1923
with real overall operation progress, either because the operations take
1924
nonlinear time, or because at the start of the operation Bazaar couldn't
1925
estimate how much work there was to do. (Martin Pool)
1930
* Lots of documentation tweaks for inline help topics and command help
1936
* ``bzrlib.textui`` (vestigial module) removed. (Martin Pool)
1938
* The Launchpad plugin now has a function ``login`` which will log in to
1939
Launchpad with launchpadlib, and ``load_branch`` which will return the
1940
Launchpad Branch object corresponding to a given Bazaar Branch object.
1946
* New test Feature: ``ModuleAvailableFeature``. It is designed to make it
1947
easier to handle what tests you want to run based on what modules can be
1948
imported. (Rather than lots of custom-implemented features that were
1949
basically copy-and-pasted.) (John Arbash Meinel)
1951
* ``osutils.timer_func()`` can be used to get either ``time.time()`` or
1952
``time.clock()`` when you want to do performance timing.
1953
``time.time()`` is limited to 15ms resolution on Windows, but
1954
``time.clock()`` gives CPU and not wall-clock time on other platforms.
1955
(John Arbash Meinel)
1957
* Several code paths that were calling ``Transport.get().read()`` have
1958
been changed to the equalivent ``Transport.get_bytes()``. The main
1959
difference is that the latter will explicitly call ``file.close()``,
1960
rather than expecting the garbage collector to handle it. This helps
1961
with some race conditions on Windows during the test suite and sftp
1962
tests. (John Arbash Meinel)
1967
* TestCaseWithMemoryTransport no longer sets $HOME and $BZR_HOME to
1968
unicode strings. (Michael Hudson, #464174)
1974
:Codename: little italy
1978
The third stable release of Bazaar has a small handful of bugfixes. As
1979
expected, this has no internal or external compatibility changes versus
1985
* ``bzr push --use-existing-dir`` no longer crashes if the directory
1986
exists but contains an invalid ``.bzr`` directory.
1987
(Andrew Bennetts, #423563)
1989
* Content filters are now applied correctly after pull, merge and switch.
1990
(Ian Clatworthy, #385879)
1992
* Fix a potential segfault in the groupcompress hash map handling code.
1993
When inserting new entries, if the final hash bucket was empty, we could
1994
end up trying to access if ``(last_entry+1)->ptr == NULL``.
1995
(John Arbash Meinel, #490228)
1997
* Improve "Binary files differ" hunk handling. (Aaron Bentley, #436325)
2003
:Codename: after sprint recovery
2004
:2.1.0b3: 2009-11-16
2006
This release was pushed up from its normal release cycle due to a
2007
regression in python 2.4 compatibility in 2.1.0b2. Since this regression
2008
was caught before 2.1.0b2 was officially announced, the full changelog
2009
includes both 2.1.0b3 and 2.1.0b2 changes.
2011
Highlights of 2.1.0b3 are: new globbing code for all commands on Windows,
2012
the test suite now conforms to python's trunk enhanced semantics (skip,
2013
etc.), and ``bzr info -v`` will now report the correct branch and repo
2014
formats for Remote objects.
2020
* Users can define a shelve editor to provide shelf functionality at a
2021
granularity finer than per-patch-hunk. (Aaron Bentley)
2026
* Fix for shell completion and short options. (Benoît PIERRE)
2028
* Fix ``bzr --profile-imports`` with Python 2.6. (Martin Pool)
2030
* Hooks daughter classes should always call the base constructor.
2031
(Alexander Belchenko, Vincent Ladeuil, #389648)
2033
* Improve "Binary files differ" hunk handling. (Aaron Bentley, #436325)
2035
* On Windows, do glob expansion at the command-line level (as is usually
2036
done in bash, etc.) This means that *all* commands get glob expansion
2037
(bzr status, bzr add, bzr mv, etc). It uses a custom command line
2038
parser, which allows us to know if a given section was quoted. It means
2039
you can now do ``bzr ignore "*.py"``.
2040
(John Arbash Meinel, #425510, #426410, #194450)
2042
* Sanitize commit messages that come in from the '-m' flag. We translate
2043
'\r\n' => '\n' and a plain '\r' => '\n'. The storage layer doesn't
2044
allow those because XML store silently translate it anyway. (The parser
2045
auto-translates \r\n => \n in ways that are hard for us to catch.)
2047
* Show correct branch and repository format descriptions in
2048
``bzr info -v`` on a smart server location. (Andrew Bennetts, #196080)
2050
* The fix for bug #186920 accidentally broke compatibility with python
2051
2.4. (Vincent Ladeuil, #475585)
2053
* Using ``Repository.get_commit_builder().record_iter_changes()`` now
2054
correctly sets ``self.inv_sha1`` to a sha1 string and
2055
``self.new_inventory`` to an Inventory instance after calling
2056
``self.finish_inventory()``. (Previously it accidently set both values
2057
as a tuple on ``self.inv_sha1``. This was missed because
2058
``repo.add_revision`` ignores the supplied inventory sha1 and recomputes
2059
the sha1 from the repo directly. (John Arbash Meinel)
2061
* Shelve command refuse to run if there is no real terminal.
2062
(Alexander Belchenko)
2064
* Avoid unnecessarily flushing of trace file; it's now unbuffered at the
2065
Python level. (Martin Pool)
2070
* Include Japanese translations for documentation (Inada Naoki)
2072
* New API ``ui_factory.make_output_stream`` to be used for sending bulk
2073
(rather than user-interaction) data to stdout. This automatically
2074
coordinates with progress bars or other terminal activity, and can be
2076
(Martin Pool, 493944)
2081
* Some of the core groupcompress functionality now releases the GIL before
2082
operation. Similar to how zlib and bz2 operate without the GIL in the
2083
core compression and decompression routines. (John Arbash Meinel)
2088
* -Dhpssvfs will now trigger on ``RemoteBzrDir._ensure_real``, providing
2089
more debugging of VFS access triggers. (Robert Collins)
2091
* KnownFailure is now signalled to ``ExtendedTestResult`` using the same
2092
method that Python 2.7 uses - ``addExpectedFailure``. (Robert Collins)
2094
* ``--parallel=fork`` is now compatible with --subunit.
2095
(Robert Collins, Vincent Ladeuil, #419776)
2097
* Reporting of failures shows test ids not descriptions and thus shows
2098
parameterised tests correctly. (Robert Collins)
2100
* TestNotApplicable is now handled within the TestCase.run method rather
2101
than being looked for within ``ExtendedTestResult.addError``. This
2102
provides better handling with other ``TestResult`` objects, degrading to
2103
sucess rather than error. (Robert Collins)
2105
* The private method ``_testConcluded`` on ``ExtendedTestResult`` has been
2106
removed - it was empty and unused. (Robert Collins)
2108
* UnavailableFeature is now handled within the TestCase.run method rather
2109
than being looked for within addError. If the Result object does not
2110
have an addNotSupported method, addSkip is attempted instead, and
2111
failing that addSuccess. (Robert Collins)
2113
* When a TestResult does not have an addSkip method, skipped tests are now
2114
reported as successful tests, rather than as errors. This change is
2115
to make it possible to get a clean test run with a less capable
2116
TestResult. (Robert Collins)
2123
:Codename: a load off my mind
2124
:2.1.0b2: 2009-11-02
2126
This is our second feature-filled release since 2.0, pushing us down the
2127
path to a 2.1.0. Once again, all bugfixes in 2.0.2 are present in 2.1.0b2.
2129
Key highlights in this release are: improved handling of
2130
failures-during-cleanup for commit, fixing a long-standing bug with
2131
``bzr+http`` and shared repositories, all ``lp:`` urls to be resolved
2132
behind proxies, and a new StaticTuple datatype, allowing us to reduce
2133
memory consumption (50%) and garbage collector overhead (40% faster) for
2136
* A new ``--concurrency`` option has been added as well as an associated
2137
BZR_CONCURRENCY environment variable to specify the number of
2138
processes that can be run concurrently when running ``bzr selftest``. The
2139
command-line option overrides the environment variable if both are
2140
specified. If none is specified. the number of processes is obtained
2141
from the OS as before. (Matt Nordhoff, Vincent Ladeuil)
2146
* ``bzr+http`` servers no longer give spurious jail break errors when
2147
serving branches inside a shared repository. (Andrew Bennetts, #348308)
2149
* Errors during commit are handled more robustly so that knock-on errors
2150
are less likely to occur, and will not obscure the original error if
2151
they do occur. This fixes some causes of ``TooManyConcurrentRequests``
2152
and similar errors. (Andrew Bennetts, #429747, #243391)
2154
* Launchpad urls can now be resolved from behind proxies.
2155
(Gordon Tyler, Vincent Ladeuil, #186920)
2157
* Reduce the strictness for StaticTuple, instead add a debug flag
2158
``-Dstatic_tuple`` which will change apis to be strict and raise errors.
2159
This way, most users won't see failures, but developers can improve
2160
internals. (John Arbash Meinel, #471193)
2162
* TreeTransform.adjust_path updates the limbo paths of descendants of adjusted
2163
files. (Aaron Bentley)
2165
* Unicode paths are now handled correctly and consistently by the smart
2166
server. (Andrew Bennetts, Michael Hudson, #458762)
2171
* When reading index files, we now use a ``StaticTuple`` rather than a
2172
plain ``tuple`` object. This generally gives a 20% decrease in peak
2173
memory, and can give a performance boost up to 40% on large projects.
2174
(John Arbash Meinel)
2176
* Peak memory under certain operations has been reduced significantly.
2177
(eg, 'bzr branch launchpad standalone' is cut in half)
2178
(John Arbash Meinel)
2183
* Filtered views user documentation upgraded to refer to format 2a
2184
instead of pre-2.0 formats. (Ian Clatworthy)
2189
* Remove deprecated ``CLIUIFactory``. (Martin Pool)
2191
* ``UIFactory`` now has new ``show_error``, ``show_message`` and
2192
``show_warning`` methods, which can be hooked by non-text UIs.
2198
* Added ``bzrlib._simple_set_pyx``. This is a hybrid between a Set and a
2199
Dict (it only holds keys, but you can lookup the object located at a
2200
given key). It has significantly reduced memory consumption versus the
2201
builtin objects (1/2 the size of Set, 1/3rd the size of Dict). This is
2202
used as the interning structure for StaticTuple objects.
2203
(John Arbash Meinel)
2205
* ``bzrlib._static_tuple_c.StaticTuple`` is now available and used by
2206
the btree index parser and the chk map parser. This class functions
2207
similarly to ``tuple`` objects. However, it can only point to a limited
2208
collection of types. (Currently StaticTuple, str, unicode, None, bool,
2209
int, long, float, but not subclasses). This allows us to remove it from
2210
the garbage collector (it cannot be in a cycle), it also allows us to
2211
intern the objects. In testing, this can reduce peak memory by 20-40%,
2212
and significantly improve performance by removing objects from being
2213
inspected by the garbage collector. (John Arbash Meinel)
2215
* ``GroupCompressBlock._ensure_content()`` will now release the
2216
``zlib.decompressobj()`` when the first request is for all of the
2217
content. (Previously it would only be released if you made a request for
2218
part of the content, and then all of it later.) This turns out to be a
2219
significant memory savings, as a ``zstream`` carries around approx 260kB
2220
of internal state and buffers. (For branching bzr.dev this drops peak
2221
memory from 382MB => 345MB.) (John Arbash Meinel)
2223
* When streaming content between ``2a`` format repositories, we now clear
2224
caches from earlier versioned files. (So 'revisions' is cleared when we
2225
start reading 'inventories', etc.) This can have a significant impact on
2226
peak memory for initial copies (~200MB). (John Arbash Meinel)
2232
:Codename: after the scare
2235
The second in our "let's keep the stable bugfixes flowing" series. As
2236
expected this has a few (~9) bugfixes relative to 2.0.1, and no major api
2237
changes or features.
2242
* Avoid "NoneType has no attribute st_mode" error when files disappear
2243
from a directory while it's being read. (Martin Pool, #446033)
2245
* Content filters are now applied correctly after revert.
2248
* Diff parsing handles "Binary files differ" hunks. (Aaron Bentley, #436325)
2250
* Fetching from stacked pre-2a repository via a smart server no longer
2251
fails intermittently with "second push failed to complete".
2252
(Andrew Bennetts, #437626)
2254
* Fix typos left after test_selftest refactoring.
2255
(Vincent Ladeuil, Matt Nordhoff, #461149)
2257
* Fixed ``ObjectNotLocked`` errors during ``bzr log -r NNN somefile``.
2258
(Andrew Bennetts, #445171)
2260
* PreviewTree file names are not limited by the encoding of the temp
2261
directory's filesystem. (Aaron Bentley, #436794)
2266
* ``bzr log`` now read-locks branches exactly once, so makes better use of
2267
data caches. (Andrew Bennetts)
2272
* Filtered views user documentation upgraded to refer to format 2a
2273
instead of pre-2.0 formats. (Ian Clatworthy)
2279
:Codename: While the cat is away
2280
:2.1.0b1: 2009-10-14
2282
This is the first development release in the new split "stable" and
2283
"development" series. As such, the release is a snapshot of bzr.dev
2284
without creating a release candidate first. This release includes a
2285
fair amount of internal changes, with deprecated code being removed,
2286
and several new feature developments. People looking for a stable code
2287
base with only bugfixes should focus on the 2.0.1 release. All bugfixes
2288
present in 2.0.1 are present in 2.1.0b1.
2290
Highlights include support for ``bzr+ssh://host/~/homedir`` style urls,
2291
finer control over the plugin search path via extended BZR_PLUGIN_PATH
2292
syntax, visible warnings when extension modules fail to load, and improved
2293
error handling during unlocking.
2299
* Bazaar can now send mail through Apple OS X Mail.app.
2302
* ``bzr+ssh`` and ``bzr`` paths can now be relative to home directories
2303
specified in the URL. Paths starting with a path segment of ``~`` are
2304
relative to the home directory of the user running the server, and paths
2305
starting with ``~user`` are relative to the home directory of the named
2306
user. For example, for a user "bob" with a home directory of
2307
``/home/bob``, these URLs are all equivalent:
2309
* ``bzr+ssh://bob@host/~/repo``
2310
* ``bzr+ssh://bob@host/~bob/repo``
2311
* ``bzr+ssh://bob@host/home/bob/repo``
2313
If ``bzr serve`` was invoked with a ``--directory`` argument, then no
2314
home directories outside that directory will be accessible via this
2317
This is a feature of ``bzr serve``, so pre-2.1 clients will
2318
automatically benefit from this feature when ``bzr`` on the server is
2319
upgraded. (Andrew Bennetts, #109143)
2321
* Extensions can now be compiled if either Cython or Pyrex is available.
2322
Currently Pyrex is preferred, but that may change in the future.
2325
* Give more control on BZR_PLUGIN_PATH by providing a way to refer to or
2326
disable the user, site and core plugin directories.
2327
(Vincent Ladeuil, #412930, #316192, #145612)
2332
* Bazaar's native protocol code now correctly handles EINTR, which most
2333
noticeably occurs if you break in to the debugger while connected to a
2334
bzr+ssh server. You can now can continue from the debugger (by typing
2335
'c') and the process continues. However, note that pressing C-\ in the
2336
shell may still kill the SSH process, which is bug 162509, so you must
2337
sent a signal to the bzr process specifically, for example by typing
2338
``kill -QUIT PID`` in another shell. (Martin Pool, #341535)
2340
* ``bzr add`` in a tree that has files with ``\r`` or ``\n`` in the
2341
filename will issue a warning and skip over those files.
2342
(Robert Collins, #3918)
2344
* ``bzr dpush`` now aborts if uncommitted changes (including pending merges)
2345
are present in the working tree. The configuration option ``dpush_strict``
2346
can be used to set the default for this behavior.
2347
(Vincent Ladeuil, #438158)
2349
* ``bzr merge`` and ``bzr remove-tree`` now requires --force if pending
2350
merges are present in the working tree.
2351
(Vincent Ladeuil, #426344)
2353
* Clearer message when Bazaar runs out of memory, instead of a ``MemoryError``
2354
traceback. (Martin Pool, #109115)
2356
* Don't give a warning on Windows when failing to import ``_readdir_pyx``
2357
as it is never built. (John Arbash Meinel, #430645)
2359
* Don't restrict the command name used to run the test suite.
2360
(Vincent Ladeuil, #419950)
2362
* ftp transports were built differently when the kerberos python module was
2363
present leading to obscure failures related to ASCII/BINARY modes.
2364
(Vincent Ladeuil, #443041)
2366
* Network streams now decode adjacent records of the same type into a
2367
single stream, reducing layering churn. (Robert Collins)
2369
* PreviewTree behaves correctly when get_file_mtime is invoked on an unmodified
2370
file. (Aaron Bentley, #251532)
2372
* Registry objects should not use iteritems() when asked to use items().
2373
(Vincent Ladeuil, #430510)
2375
* Weave based repositories couldn't be cloned when committers were using
2376
domains or user ids embedding '.sig'. Now they can.
2377
(Matthew Fuller, Vincent Ladeuil, #430868)
2382
* Revision specifiers can now be given in a more DWIM form, without
2383
needing explicit prefixes for specifiers like tags or revision id's.
2384
See ``bzr help revisionspec`` for full details. (Matthew Fuller)
2386
* Bazaar gives a warning before exiting, and writes into ``.bzr.log``, if
2387
compiled extensions can't be loaded. This typically indicates a
2388
packaging or installation problem. In this case Bazaar will keep
2389
running using pure-Python versions, but this may be substantially
2390
slower. The warning can be disabled by setting
2391
``ignore_missing_extensions = True`` in ``bazaar.conf``.
2392
See also <https://answers.launchpad.net/bzr/+faq/703>.
2393
(Martin Pool, #406113, #430529)
2395
* Secondary errors that occur during Branch.unlock and Repository.unlock
2396
no longer obscure the original error. These methods now use a new
2397
decorator, ``only_raises``. This fixes many causes of
2398
``TooManyConcurrentRequests`` and similar errors.
2399
(Andrew Bennetts, #429747)
2404
* Describe the new shell-like test feature. (Vincent Ladeuil)
2406
* Help on hooks no longer says 'Not deprecated' for hooks that are
2407
currently supported. (Ian Clatworthy, #422415)
2412
* ``bzrlib.user_encoding`` has been removed; use
2413
``bzrlib.osutils.get_user_encoding`` instead. (Martin Pool)
2415
* ``bzrlib.tests`` now uses ``stopTestRun`` for its ``TestResult``
2416
subclasses - the same as python's unittest module. (Robert Collins)
2418
* ``diff._get_trees_to_diff`` has been renamed to
2419
``diff.get_trees_and_branches_to_diff``. It is now a public API, and it
2420
returns the old and new branches. (Gary van der Merwe)
2422
* ``bzrlib.trace.log_error``, ``error`` and ``info`` have been deprecated.
2425
* ``MutableTree.has_changes()`` does not require a tree parameter anymore. It
2426
now defaults to comparing to the basis tree. It now checks for pending
2427
merges too. ``Merger.check_basis`` has been deprecated and replaced by the
2428
corresponding has_changes() calls. ``Merge.compare_basis``,
2429
``Merger.file_revisions`` and ``Merger.ensure_revision_trees`` have also
2431
(Vincent Ladeuil, #440631)
2433
* ``ProgressTask.note`` is deprecated.
2439
* Added ``-Drelock`` debug flag. It will ``note`` a message every time a
2440
repository or branch object is unlocked then relocked the same way.
2443
* ``BTreeLeafParser.extract_key`` has been tweaked slightly to reduce
2444
mallocs while parsing the index (approx 3=>1 mallocs per key read).
2445
This results in a 10% speedup while reading an index.
2446
(John Arbash Meinel)
2448
* The ``bzrlib.lsprof`` module has a new class ``BzrProfiler`` which makes
2449
profiling in some situations like callbacks and generators easier.
2455
* Passing ``--lsprof-tests -v`` to bzr selftest will cause lsprof output to
2456
be output for every test. Note that this is very verbose! (Robert Collins)
2458
* Setting ``BZR_TEST_PDB=1`` when running selftest will cause a pdb
2459
post_mortem to be triggered when a test failure occurs. (Robert Collins)
2461
* Shell-like tests can now be written. Code in ``bzrlib/tests/script.py`` ,
2462
documentation in ``developers/testing.txt`` for details.
2465
* Some tests could end up with the same id, that was dormant for
2467
(Vincent Ladeuil, #442980)
2469
* Stop showing the number of tests due to missing features in the test
2470
progress bar. (Martin Pool)
2472
* Test parameterisation now does a shallow copy, not a deep copy of the test
2473
to be parameterised. This is not expected to break external use of test
2474
parameterisation, and is substantially faster. (Robert Collins)
2476
* Tests that try to open a bzr dir on an arbitrary transport will now
2477
fail unless they have explicitly permitted the transport via
2478
``self.permit_url``. The standard test factories such as ``self.get_url``
2479
will permit the urls they provide automatically, so only exceptional
2480
tests should need to do this. (Robert Collins)
2482
* The break-in test no longer cares about clean shutdown of the child,
2483
instead it is happy if the debugger starts up. (Robert Collins)
2485
* The full test suite is expected to pass when the C extensions are not
2486
present. (Vincent Ladeuil, #430749)
2492
:Codename: Stability First
2495
The first of our new ongoing bugfix-only stable releases has arrived. It
2496
includes a collection of 12 bugfixes applied to bzr 2.0.0, but does not
2497
include any of the feature development in the 2.1.0 series.
2503
* ``bzr add`` in a tree that has files with ``\r`` or ``\n`` in the
2504
filename will issue a warning and skip over those files.
2505
(Robert Collins, #3918)
2507
* bzr will attempt to authenticate with SSH servers that support
2508
``keyboard-interactive`` auth but not ``password`` auth when using
2509
Paramiko. (Andrew Bennetts, #433846)
2511
* Fixed fetches from a stacked branch on a smart server that were failing
2512
with some combinations of remote and local formats. This was causing
2513
"unknown object type identifier 60" errors. (Andrew Bennetts, #427736)
2515
* Fixed ``ObjectNotLocked`` errors when doing some log and diff operations
2516
on branches via a smart server. (Andrew Bennetts, #389413)
2518
* Handle things like ``bzr add foo`` and ``bzr rm foo`` when the tree is
2519
at the root of a drive. ``osutils._cicp_canonical_relpath`` always
2520
assumed that ``abspath()`` returned a path that did not have a trailing
2521
``/``, but that is not true when working at the root of the filesystem.
2522
(John Arbash Meinel, Jason Spashett, #322807)
2524
* Hide deprecation warnings for 'final' releases for python2.6.
2525
(John Arbash Meinel, #440062)
2527
* Improve the time for ``bzr log DIR`` for 2a format repositories.
2528
We had been using the same code path as for <2a formats, which required
2529
iterating over all objects in all revisions.
2530
(John Arbash Meinel, #374730)
2532
* Make sure that we unlock the tree if we fail to create a TreeTransform
2533
object when doing a merge, and there is limbo, or pending-deletions
2534
directory. (Gary van der Merwe, #427773)
2536
* Occasional IndexError on renamed files have been fixed. Operations that
2537
set a full inventory in the working tree will now go via the
2538
apply_inventory_delta code path which is simpler and easier to
2539
understand than dirstates set_state_from_inventory method. This may
2540
have a small performance impact on operations built on _write_inventory,
2541
but such operations are already doing full tree scans, so no radical
2542
performance change should be observed. (Robert Collins, #403322)
2544
* Retrieving file text or mtime from a _PreviewTree has good performance when
2545
there are many changes. (Aaron Bentley)
2547
* The CHK index pages now use an unlimited cache size. With a limited
2548
cache and a large project, the random access of chk pages could cause us
2549
to download the entire cix file many times.
2550
(John Arbash Meinel, #402623)
2552
* When a file kind becomes unversionable after being added, a sensible
2553
error will be shown instead of a traceback. (Robert Collins, #438569)
2558
* Improved README. (Ian Clatworthy)
2560
* Improved upgrade documentation for Launchpad branches.
2568
:Codename: Instant Karma
2570
This release of Bazaar makes the 2a (previously 'brisbane-core') format
2571
the default when new branches or repositories are created. This format is
2572
substantially smaller and faster for many operations. Most of the work in
2573
this release focuses on bug fixes and stabilization, covering both 2a and
2574
previous formats. (See the Upgrade Guide for information on migrating
2577
This release also improves the documentation content and presentation,
2578
including adding Windows HtmlHelp manuals.
2580
The Bazaar team decided that 2.0 will be a long-term supported release,
2581
with bugfix-only 2.0.x releases based on it, continuing for at least six
2582
months or until the following stable release.
2584
Changes from 2.0.0rc2 to final
2585
******************************
2587
* Officially branded as 2.0.0 rather than 2.0 to clarify between things
2588
that "want to happen on the 2.0.x stable series" versus things that want
2589
to "land in 2.0.0". (Changes how bzrlib._format_version_tuple() handles
2590
micro = 0.) (John Arbash Meinel)
2596
:2.0.0rc2: 2009-09-10
2601
* Added post_commit hook for mutable trees. This allows the keywords
2602
plugin to expand keywords on files changed by the commit.
2603
(Ian Clatworthy, #408841)
2608
* Bazaar's native protocol code now correctly handles EINTR, which most
2609
noticeably occurs if you break in to the debugger while connected to a
2610
bzr+ssh server. You can now can continue from the debugger (by typing
2611
'c') and the process continues. However, note that pressing C-\ in the
2612
shell may still kill the SSH process, which is bug 162509, so you must
2613
sent a signal to the bzr process specifically, for example by typing
2614
``kill -QUIT PID`` in another shell. (Martin Pool, #341535)
2616
* ``bzr check`` in pack-0.92, 1.6 and 1.9 format repositories will no
2617
longer report incorrect errors about ``Missing inventory ('TREE_ROOT', ...)``
2618
(Robert Collins, #416732)
2620
* ``bzr info -v`` on a 2a format still claimed that it was a "Development
2621
format" (John Arbash Meinel, #424392)
2623
* ``bzr log stacked-branch`` shows the full log including
2624
revisions that are in the fallback repository. (Regressed in 2.0rc1).
2625
(John Arbash Meinel, #419241)
2627
* Clearer message when Bazaar runs out of memory, instead of a ``MemoryError``
2628
traceback. (Martin Pool, #109115)
2630
* Conversion to 2a will create a single pack for all the new revisions (as
2631
long as it ran without interruption). This improves both ``bzr upgrade``
2632
and ``bzr pull`` or ``bzr merge`` from local branches in older formats.
2633
The autopack logic that occurs every 100 revisions during local
2634
conversions was not returning that pack's identifier, which resulted in
2635
the partial packs created during the conversion not being consolidated
2636
at the end of the conversion process. (Robert Collins, #423818)
2638
* Fetches from 2a to 2a are now again requested in 'groupcompress' order.
2639
Groups that are seen as 'underutilized' will be repacked on-the-fly.
2640
This means that when the source is fully packed, there is minimal
2641
overhead during the fetch, but if the source is poorly packed the result
2642
is a fairly well packed repository (not as good as 'bzr pack' but
2643
good-enough.) (Robert Collins, John Arbash Meinel, #402652)
2645
* Fix a potential segmentation fault when doing 'log' of a branch that had
2646
ghosts in its mainline. (Evaluating None as a tuple is bad.)
2647
(John Arbash Meinel, #419241)
2649
* ``groupcompress`` sort order is now more stable, rather than relying on
2650
``topo_sort`` ordering. The implementation is now
2651
``KnownGraph.gc_sort``. (John Arbash Meinel)
2653
* Local data conversion will generate correct deltas. This is a critical
2654
bugfix vs 2.0rc1, and all 2.0rc1 users should upgrade to 2.0rc2 before
2655
converting repositories. (Robert Collins, #422849)
2657
* Network streams now decode adjacent records of the same type into a
2658
single stream, reducing layering churn. (Robert Collins)
2660
* Prevent some kinds of incomplete data from being committed to a 2a
2661
repository, such as revisions without inventories, a missing chk_bytes
2662
record for an inventory, or a missing text referenced by an inventory.
2663
(Andrew Bennetts, #423506, #406687)
2668
* Fix assertion error about "_remember_remote_is_before" when pushing to
2669
older smart servers.
2670
(Andrew Bennetts, #418931)
2672
* Help on hooks no longer says 'Not deprecated' for hooks that are
2673
currently supported. (Ian Clatworthy, #422415)
2675
* PDF and CHM (Windows HtmlHelp) formats are now supported for the
2676
user documentation. The HTML documentation is better broken up into
2677
topics. (Ian Clatworthy)
2679
* The developer and foreign language documents are now separated
2680
out so that searching in the HTML and CHM files produces more
2681
useful results. (Ian Clatworthy)
2683
* The main table of contents now provides links to the new Migration Docs
2684
and Plugins Guide. (Ian Clatworthy)
2690
:Codename: no worries
2691
:2.0.0rc1: 2009-08-26
2693
Compatibility Breaks
2694
********************
2696
* The default format for bzr is now ``2a``. This format brings many
2697
significant performance and size improvements. bzr can pull from
2698
any existing repository into a ``2a`` one, but can only transfer
2699
from ``2a`` into ``rich-root`` repositories. The Upgrade guide
2700
has more information about this change. (Robert Collins)
2702
* On Windows auto-detection of Putty's plink.exe is disabled.
2703
Default SSH client for Windows is paramiko. User still can force
2704
usage of plink if explicitly set environment variable BZR_SSH=plink.
2705
(#414743, Alexander Belchenko)
2710
* ``bzr branch --switch`` can now switch the checkout in the current directory
2711
to the newly created branch. (Lukáš Lalinský)
2716
* Further tweaks to handling of ``bzr add`` messages about ignored files.
2717
(Jason Spashett, #76616)
2719
* Fetches were being requested in 'groupcompress' order, but weren't
2720
recombining the groups. Thus they would 'fragment' to get the correct
2721
order, but not 'recombine' to actually benefit from it. Until we get
2722
recombining to work, switching to 'unordered' fetches avoids the
2723
fragmentation. (John Arbash Meinel, #402645)
2725
* Fix a pycurl related test failure on karmic by recognizing an error
2726
raised by newer versions of pycurl.
2727
(Vincent Ladeuil, #306264)
2729
* Fix a test failure on karmic by making a locale test more robust.
2730
(Vincent Ladeuil, #413514)
2732
* Fix IndexError printing CannotBindAddress errors.
2733
(Martin Pool, #286871)
2735
* Fix "Revision ... not present" errors when upgrading stacked branches,
2736
or when doing fetches from a stacked source to a stacked target.
2737
(Andrew Bennetts, #399140)
2739
* ``bzr branch`` of 2a repositories over HTTP is much faster. bzr now
2740
batches together small fetches from 2a repositories, rather than
2741
fetching only a few hundred bytes at a time.
2742
(Andrew Bennetts, #402657)
2747
* A better description of the platform is shown in crash tracebacks, ``bzr
2748
--version`` and ``bzr selftest``.
2749
(Martin Pool, #409137)
2751
* bzr can now (again) capture crash data through the apport library,
2752
so that a single human-readable file can be attached to bug reports.
2753
This can be disabled by using ``-Dno_apport`` on the command line, or by
2754
putting ``no_apport`` into the ``debug_flags`` section of
2756
(Martin Pool, Robert Collins, #389328)
2758
* ``bzr push`` locally on windows will no longer give a locking error with
2759
dirstate based formats. (Robert Collins)
2761
* ``bzr shelve`` and ``bzr unshelve`` now work on windows.
2762
(Robert Collins, #305006)
2764
* Commit of specific files no longer prevents using the iter_changes
2765
codepath. On 2a repositories, commit of specific files should now be as
2766
fast, or slightly faster, than a full commit. (Robert Collins)
2768
* The internal core code that handles specific file operations like
2769
``bzr st FILENAME`` or ``bzr commit FILENAME`` has been changed to
2770
include the parent directories if they have altered, and when a
2771
directory stops being a directory its children are always included. This
2772
fixes a number of causes for ``InconsistentDelta`` errors, and permits
2773
faster commit of specific paths. (Robert Collins, #347649)
2778
* New developer documentation for content filtering.
2784
* ``bzrlib.shelf_ui`` has had the ``from_args`` convenience methods of its
2785
classes changed to manage lock lifetime of the trees they open in a way
2786
consistent with reader-exclusive locks. (Robert Collins, #305006)
2794
:Codename: nein nein nein!
2797
This release fixes two small but worthwhile bugs relevant to users on
2798
Microsoft Windows: some commands that failed on with locking errors will
2799
now work, and a bug that caused poor performance after committing a file
2800
with line-ending conversion has now been fixed. It also fixes a bug in
2801
pushing to older servers.
2806
* Fixed a problem where using content filtering and especially end-of-line
2807
conversion will commit too many copies a file.
2808
(Martin Pool, #415508)
2810
* Fix assertion error about ``_remember_remote_is_before`` in
2811
``set_tags_bytes`` when pushing to older smart servers.
2812
(Andrew Bennetts, Alexander Belchenko, #418931)
2817
* ``bzr push`` locally on Windows will no longer give a locking error with
2818
dirstate based formats. (Robert Collins)
2820
* ``bzr shelve`` and ``bzr unshelve`` now work on Windows.
2821
(Robert Collins, #305006)
2826
* ``bzrlib.shelf_ui`` has had the ``from_args`` convenience methods of its
2827
classes changed to manage lock lifetime of the trees they open in a way
2828
consistent with reader-exclusive locks. (Robert Collins, #305006)
2830
* ``Tree.path_content_summary`` may return a size of None, when called on
2831
a tree with content filtering where the size of the canonical form
2832
cannot be cheaply determined. (Martin Pool)
2834
* When manually creating transport servers in test cases, a new helper
2835
``TestCase.start_server`` that registers a cleanup and starts the server
2836
should be used. (Robert Collins)
12
2841
Compatibility Breaks
13
2842
********************