6
5
.. contents:: List of Releases
8
bzr 2.2.0b1 (not released yet)
9
##############################
17
* ``Repository.get_inventory_sha1()`` has been removed. (Jelmer Vernooij)
25
* Fix "AttributeError in Inter1and2Helper" during fetch.
26
(Martin Pool, #513432)
47
:Codename: after the bubbles
50
This is a quick-turn-around to update a small issue with our new per-file
51
merge hook. We expect no major changes from this to the final 2.1.0.
56
* The new ``merge_file_content`` hook point has been altered to provide a
57
better API where state for extensions can be stored rather than the
58
too-simple function based approach. This fixes a performance regression
59
where branch configuration would be parsed per-file during merge. As
60
part of this the included news_merger has been refactored into a base
61
helper class ``bzrlib.merge.ConfigurableFileMerger``.
62
(Robert Collins, John Arbash Meinel, #513822)
68
:Codename: the 'new' stable
71
This is the first stable release candidate for Bazaar's 2.1 series. From
72
this point onwards, the 2.1 series will be considered stable (as the 2.0
73
series) and only bugfixes are expected to be incorporated. The dozen or so
74
bugfixes in the 2.0.4 release are also included in this release (along
75
with more than 15 more bugfixes). Some of the interesting features are
76
support for per-file merge hooks, ``bzr unshelve --preview``, support
77
for using ! in ignore files to exclude files from being ignored, a small
78
memory leak was squashed, and many ``ObjectNotLocked`` errors were fixed.
79
This looks to be a very good start for a new stable series.
85
* Add bug information to log output when available.
86
(Neil Martinsen-Burrell, Guillermo Gonzalez, #251729)
88
* Added ``merge_file_content`` hook point to ``Merger``, allowing plugins
89
to register custom merge logic, e.g. to provide smarter merging for
92
* Bazaar now includes the ``news_merge`` plugin. It is disabled by
93
default, to enable it add a ``news_merge_files`` option to your
94
configuration. Consult ``bzr help news_merge`` for more information.
97
* ``bzr branch`` now takes a ``--bind`` option. This lets you
98
branch and bind all in one command. (Ian Clatworthy)
100
* ``bzr switch`` now takes a ``--revision`` option, to allow switching to
101
a specific revision of a branch. (Daniel Watkins, #183559)
103
* ``bzr unshelve --preview`` can now be used to show how a patch on the
104
shelf would be applied to the working tree.
105
(Guilherme Salgado, #308122)
107
* ``bzr update`` now takes a ``--revision`` argument. This lets you
108
change the revision of the working tree to any revision in the
109
ancestry of the current or master branch. (Matthieu Moy, Mark Hammond,
112
* ``-Dbytes`` can now be used to display the total number of bytes
113
transferred for the current command. This information is always logged
114
to ``.bzr.log`` for later inspection. (John Arbash Meinel)
116
* New ignore patterns. Patterns prefixed with '!' are exceptions to
117
ignore patterns and take precedence over regular ignores. Such
118
exceptions are used to specify files that should be versioned which
119
would otherwise be ignored. Patterns prefixed with '!!' act as regular
120
ignore patterns, but have highest precedence, even over the '!'
121
exception patterns. (John Whitley, #428031)
123
* The ``supress_warnings`` configuration option has been introduced to disable
124
various warnings (it currently only supports the ``format_deprecation``
125
warning). The new option can be set in any of the following locations:
126
``bazaar.conf``, ``locations.conf`` and/or ``branch.conf``.
127
(Ted Gould, Matthew Fuller, Vincent Ladeuil)
132
* Always show a message if an OS error occurs while trying to run a
133
user-specified commit message editor.
134
(Martin Pool, #504842)
136
* ``bzr diff`` will now use the epoch when it is unable to determine
137
the timestamp of a file, if the revision it was introduced in is a
138
ghost. (Jelmer Vernooij, #295611)
140
* ``bzr switch -b`` can now create branches that are located using directory
141
services such as ``lp:``, even when the branch name doesn't contain a
142
'/'. (Neil Martinsen-Burrell, #495263)
144
* ``bzr unshelve`` has improved messages about what it is doing.
145
(Neil Martinsen-Burrell, #496917)
147
* Concurrent autopacking is more resilient to already-renamed pack files.
148
If we find that a file we are about to obsolete is already obsoleted, we
149
do not try to rename it, and we leave the file in ``obsolete_packs``.
150
The code is also fault tolerant if a file goes missing, assuming that
151
another process already removed the file.
152
(John Arbash Meinel, Gareth White, #507557)
154
* Fix "Too many concurrent requests" in reconcile when network connection
155
fails. (Andrew Bennetts, #503878)
157
* Fixed a side effect mutation of ``RemoteBzrDirFormat._network_name``
158
that caused some tests to fail when run in a non-default order.
159
Probably no user impact. (Martin Pool, #504102)
161
* Fixed ``ObjectNotLocked`` error in ``bzr cat -rbranch:../foo FILE``.
162
(Andrew Bennetts, #506274)
164
* FTP transports support Unicode paths by encoding/decoding them as utf8.
165
(Vincent Ladeuil, #472161)
167
* Listen to the SIGWINCH signal to update the terminal width.
168
(Vincent Ladeuil, #316357)
170
* Progress bars are now hidden when ``--quiet`` is given.
171
(Martin Pool, #320035)
173
* ``SilentUIFactory`` now supports ``make_output_stream`` and discards
174
whatever is written to it. This un-breaks some plugin tests that
175
depended on this behaviour.
176
(Martin Pool, #499757)
178
* When operations update the working tree, all affected files should end
179
up with the same mtime. (eg. when versioning a generated file, if you
180
update the source and the generated file together, the generated file
181
should appear up-to-date.)
182
(John Arbash Meinel, Martin <gzlist>, #488724)
187
* Added ``add_cleanup`` and ``cleanup_now`` to ``bzrlib.command.Command``.
188
All the builtin commands now use ``add_cleanup`` rather than
189
``try``/``finally`` blocks where applicable as it is simpler and more
190
robust. (Andrew Bennetts)
192
* All except a small number of storage formats are now hidden, making
193
the help for numerous commands far more digestible. (Ian Clatworthy)
195
* Attempts to open a shared repository as a branch (e.g. ``bzr branch
196
path/to/repo``) will now include "location is a repository" as a hint in
197
the error message. (Brian de Alwis, Andrew Bennetts, #440952)
199
* Push will now inform the user when they are trying to push to a foreign
200
VCS for which roundtripping is not supported, and will suggest them to
201
use dpush. (Jelmer Vernooij)
203
* The version of bzr being run is now written to the log file.
206
* Transport network activity indicator is shown more of the time when
207
Bazaar is doing network IO.
213
* Add documentation on creating merges with more than one parent.
214
(Neil Martinsen-Burrell, #481526)
216
* Better explain the --uncommitted option of merge.
217
(Neil Martinsen-Burrell, #505088)
219
* Improve discussion of pending merges in the documentation for
220
``revert``. (Neil Martinsen-Burrell, #505093)
222
* Improved help for ``bzr send``.
223
(Martin Pool, Bojan Nikolic)
225
* There is a System Administrator's Guide in ``doc/en/admin-guide``,
226
including discussions of installation, relevant plugins, security and
227
backup. (Neil Martinsen-Burrell)
229
* The ``conflicts`` help topic has been renamed to ``conflict-types``.
232
* The User Reference is now presented as a series of topics.
233
Many of the included topics have link and format tweaks applied.
239
* Added ``cachedproperty`` decorator to ``bzrlib.decorators``.
242
* Many test features were renamed from ``FooFeature`` to ``foo_feature``
243
to be consistent with instances being lower case and classes being
244
CamelCase. For the features that were more likely to be used, we added a
245
deprecation thunk, but not all. (John Arbash Meinel)
247
* Merger classes (such as ``Merge3Merger``) now expect a ``this_branch``
248
parameter in their constructors, and provide ``this_branch`` as an
249
attribute. (Andrew Bennetts)
251
* The Branch hooks pre_change_branch_tip no longer masks exceptions raised
252
by plugins - the original exceptions are now preserved. (Robert Collins)
254
* The Transport ``Server.tearDown`` method is now renamed to
255
``stop_server`` and ``setUp`` to ``start_server`` for consistency with
256
our normal naming pattern, and to avoid confusion with Python's
257
``TestCase.tearDown``. (Martin Pool)
259
* ``WorkingTree.update`` implementations must now accept a ``revision``
265
* Added ``BzrDir.open_branchV3`` smart server request, which can receive
266
a string of details (such as "location is a repository") as part of a
267
``nobranch`` response. (Andrew Bennetts, #440952)
269
* New helper osutils.UnicodeOrBytesToBytesWriter which encodes unicode
270
objects but passes str objects straight through. This is used for
271
selftest but may be useful for diff and other operations that generate
272
mixed output. (Robert Collins)
274
* New exception ``NoRoundtrippingSupport``, for use by foreign branch
275
plugins. (Jelmer Vernooij)
280
* ``bzrlib.tests.permute_for_extension`` is a helper that simplifies
281
running all tests in the current module, once against a pure python
282
implementation, and once against an extension (pyrex/C) implementation.
283
It can be used to dramatically simplify the implementation of
284
``load_tests``. (John Arbash Meinel)
286
* ``bzrlib.tests.TestCase`` now subclasses ``testtools.testcase.TestCase``.
287
This permits features in testtools such as getUniqueInteger and
288
getUniqueString to be used. Because of this, testtools version 0.9.2 or
289
newer is now a dependency to run bzr selftest. Running with versions of
290
testtools less than 0.9.2 will cause bzr to error while loading the test
291
suite. (Robert Collins)
293
* Shell-like tests now support the command "mv" for moving files. The
294
syntax for ``mv file1 file2``, ``mv dir1 dir2`` and ``mv file dir`` is
295
supported. (Neil Martinsen-Burrell)
297
* The test progress bar no longer distinguishes tests that 'errored' from
298
tests that 'failed' - they're all just failures.
305
:Codename: smooth sailing
308
The fourth bugfix-only release in the 2.0 series contains more than a
309
dozen bugfixes relative to 2.0.3. The primary focus is on handling
310
interruptions and concurrent operations more cleanly, there is also a fair
311
improvement to ``bzr export`` when exporting a remote branch.
317
* ``bzr annotate`` on another branch with ``-r branch:...`` no longer
318
fails with an ``ObjectNotLocked`` error. (Andrew Bennetts, #496590)
320
* ``bzr export dir`` now requests all file content as a record stream,
321
rather than requsting the file content one file-at-a-time. This can make
322
exporting over the network significantly faster (54min => 9min in one
323
case). (John Arbash Meinel, #343218)
325
* ``bzr serve`` no longer slowly leaks memory. The compiled
326
``bzrlib.bencode.Encoder()`` class was using ``__del__`` to cleanup and
327
free resources, and it should have been using ``__dealloc__``.
328
This will likely have an impact on any other process that is serving for
329
an extended period of time. (John Arbash Meinel, #494406)
331
* Check for SIGINT (Ctrl-C) and other signals immediately if ``readdir``
332
returns ``EINTR`` by calling ``PyErr_CheckSignals``. This affected the
333
optional ``_readdir_pyx`` extension. (Andrew Bennetts, #495023)
335
* Concurrent autopacks will no longer lose a newly created pack file.
336
There was a race condition, where if the reload happened at the right
337
time, the second packer would forget the name of the newly added pack
338
file. (John Arbash Meinel, Gareth White, #507566)
340
* Give a clearer message if the lockdir disappears after being apparently
341
successfully taken. (Martin Pool, #498378)
343
* Give a warning when fetching between repositories (local or remote) with
344
sufficiently different formats that the content will need to be
345
serialized (ie ``InterDifferingSerializer`` or ``inventory-deltas``), so
346
the user has a clue that upgrading could make it faster.
347
(Martin Pool, #456077)
349
* If we fail to open ``~/.bzr.log`` write a clear message to stderr rather
350
than using ``warning()``. The log file is opened before logging is set
351
up, and it leads to very confusing: 'no handlers for "bzr"' messages for
352
users, rather than something nicer.
353
(John Arbash Meinel, Barry Warsaw, #503886)
355
* Refuse to build with any Pyrex 0.9.4 release, as they have known bugs.
356
(Martin Pool, John Arbash Meinel, #449372)
358
* ``setup.py bdist_rpm`` now properly finds extra files needed for the
359
build. (there is still the distutils bug
360
http://bugs.python.org/issue644744) (Joe Julian, #175839)
362
* The 2a format wasn't properly restarting autopacks when something
363
changed underneath it (like another autopack). Now concurrent
364
autopackers will properly succeed. (John Arbash Meinel, #495000)
366
* ``TreeTransform`` can now handle when a delta says that the file id for
367
the tree root changes. Rather than trying to rename your working
368
directory, or failing early saying that you can't have multiple
369
tree roots. This also fixes revert, update, and pull when the root id
370
changes. (John Arbash Meinel, #494269, #504390)
372
* ``_update_current_block`` no longer suppresses exceptions, so ^C at just
373
the right time will get propagated, rather than silently failing to move
374
the block pointer. (John Arbash Meinel, Gareth White, #495023)
379
* We have a new ``test_source`` that ensures all pyrex ``cdef`` functions
380
handle exceptions somehow. (Possibly by setting ``# cannot_raise``
381
rather than an ``except ?:`` clause.) This should help prevent bugs like
382
bug #495023. (John Arbash Meinel)
388
:Codename: san francisco airport
391
The fourth beta release in the 2.1 series brings with it a significant
392
number of bugfixes (~20). The test suite is once again (finally) "green"
393
on Windows, and should remain that way for future releases. There are a
394
few performance related updates (faster upgrade and log), and several UI
395
tweaks. There has also been a significant number of tweaks to the runtime
396
documentation. 2.1.0b4 include everything from the 2.0.3 release.
402
* The BZR_SSH environmental variable may now be set to the path of a secure
403
shell client. If currently set to the value ``ssh`` it will now guess the
404
vendor of the program with that name, to restore the old behaviour that
405
indicated the SSH Corporation client use ``sshcorp`` instead as the magic
406
string. (Martin <gzlist@googlemail.com>, #176292)
411
* ``bzr commit`` now has a ``--commit-time`` option.
412
(Alexander Sack, #459276)
414
* ``-Dhpss`` now increases logging done when run on the bzr server,
415
similarly to how it works on the client. (John Arbash Meinel)
417
* New option ``bzr unshelve --keep`` applies the changes and leaves them
418
on the shelf. (Martin Pool, Oscar Fuentes, #492091)
420
* The ``BZR_COLUMNS`` envrionment variable can be set to force bzr to
421
respect a given terminal width. This can be useful when output is
422
redirected or in obscure cases where the default value is not
423
appropriate. Pagers can use it to get a better control of the line
427
* The new command ``bzr lp-mirror`` will request that Launchpad update its
428
mirror of a local branch. This command will only function if launchpadlib
436
* After renaming a file, the dirstate could accidentally reference
437
``source\\path`` rather than ``source/path`` on Windows. This might be a
438
source of some dirstate-related failures. (John Arbash Meinel)
440
* ``bzr commit`` now detects commit messages that looks like file names
441
and issues a warning.
442
(Gioele Barabucci, #73073)
444
* ``bzr ignore /`` no longer causes an IndexError. (Gorden Tyler, #456036)
446
* ``bzr log -n0 -rN`` should not return revisions beyond its merged revisions.
447
(#325618, #484109, Marius Kruger)
449
* ``bzr merge --weave`` and ``--lca`` will now create ``.BASE`` files for
450
files with conflicts (similar to ``--merge3``). The contents of the file
451
is a synthesis of all bases used for the merge.
452
(John Arbash Meinel, #40412)
454
* ``bzr mv --quiet`` really is quiet now. (Gordon Tyler, #271790)
456
* ``bzr serve`` is more clear about the risk of supplying --allow-writes.
457
(Robert Collins, #84659)
459
* ``bzr serve --quiet`` really is quiet now. (Gordon Tyler, #252834)
461
* Fix bug with redirected URLs over authenticated HTTP.
462
(Glen Mailer, Neil Martinsen-Burrell, Vincent Ladeuil, #395714)
464
* Interactive merge doesn't leave branch locks behind. (Aaron Bentley)
466
* Lots of bugfixes for the test suite on Windows. We should once again
467
have a test suite with no failures on Windows. (John Arbash Meinel)
469
* ``osutils.terminal_width()`` obeys the BZR_COLUMNS environment
470
variable but returns None if the terminal is not a tty (when output is
471
redirected for example). Also fixes its usage under OSes that doesn't
472
provide termios.TIOCGWINSZ. Make sure the corresponding tests runs on
474
(Joke de Buhr, Vincent Ladeuil, #353370, #62539)
475
(John Arbash Meinel, Vincent Ladeuil, #492561)
477
* Terminate ssh subprocesses when no references to them remain, fixing
478
subprocess and file descriptor leaks. (Andrew Bennetts, #426662)
480
* The ``--hardlink`` option of ``bzr branch`` and ``bzr checkout`` now
481
works for 2a format trees. Only files unaffected by content filters
482
will be hardlinked. (Andrew Bennetts, #408193)
484
* The new glob expansion on Windows would replace all ``\`` characters
485
with ``/`` even if it there wasn't a glob to expand, the arg was quoted,
486
etc. Now only change slashes if there is something being glob expanded.
487
(John Arbash Meinel, #485771)
489
* Use our faster ``KnownGraph.heads()`` functionality when computing the
490
new rich-root heads. This can cut a conversion time in half (mysql from
491
13.5h => 6.2h) (John Arbash Meinel, #487632)
493
* When launching a external diff tool via bzr diff --using, temporary files
494
are no longer created, rather, the path to the file in the working tree is
495
passed to the external diff tool. This allows the file to be edited if the
496
diff tool provides for this. (Gary van der Merwe, #490738)
498
* The launchpad-open command can now be used from a subdirectory of a
499
branch, not just from the root of the branch.
500
(Neil Martinsen-Burrell, #489102)
506
* ``bzr log`` is now faster. (Ian Clatworthy)
508
* ``bzr update`` provides feedback on which branch it is up to date with.
509
(Neil Martinsen-Burrell)
511
* ``bzr upgrade`` from pre-2a to 2a can be significantly faster (4x).
512
For details see the xml8 patch and heads() improvements.
515
* ``bzrlib.urlutils.local_path_from_url`` now accepts
516
'file://localhost/' as well as 'file:///' URLs on POSIX. (Michael
519
* The progress bar now shows only a spinner and per-operation counts,
520
not an overall progress bar. The previous bar was often not correlated
521
with real overall operation progress, either because the operations take
522
nonlinear time, or because at the start of the operation Bazaar couldn't
523
estimate how much work there was to do. (Martin Pool)
528
* Lots of documentation tweaks for inline help topics and command help
534
* ``bzrlib.textui`` (vestigial module) removed. (Martin Pool)
536
* The Launchpad plugin now has a function ``login`` which will log in to
537
Launchpad with launchpadlib, and ``load_branch`` which will return the
538
Launchpad Branch object corresponding to a given Bazaar Branch object.
544
* New test Feature: ``ModuleAvailableFeature``. It is designed to make it
545
easier to handle what tests you want to run based on what modules can be
546
imported. (Rather than lots of custom-implemented features that were
547
basically copy-and-pasted.) (John Arbash Meinel)
549
* ``osutils.timer_func()`` can be used to get either ``time.time()`` or
550
``time.clock()`` when you want to do performance timing.
551
``time.time()`` is limited to 15ms resolution on Windows, but
552
``time.clock()`` gives CPU and not wall-clock time on other platforms.
555
* Several code paths that were calling ``Transport.get().read()`` have
556
been changed to the equalivent ``Transport.get_bytes()``. The main
557
difference is that the latter will explicitly call ``file.close()``,
558
rather than expecting the garbage collector to handle it. This helps
559
with some race conditions on Windows during the test suite and sftp
560
tests. (John Arbash Meinel)
565
* TestCaseWithMemoryTransport no longer sets $HOME and $BZR_HOME to
566
unicode strings. (Michael Hudson, #464174)
572
:Codename: little italy
576
The third stable release of Bazaar has a small handful of bugfixes. As
577
expected, this has no internal or external compatibility changes versus
583
* ``bzr push --use-existing-dir`` no longer crashes if the directory
584
exists but contains an invalid ``.bzr`` directory.
585
(Andrew Bennetts, #423563)
587
* Content filters are now applied correctly after pull, merge and switch.
588
(Ian Clatworthy, #385879)
590
* Fix a potential segfault in the groupcompress hash map handling code.
591
When inserting new entries, if the final hash bucket was empty, we could
592
end up trying to access if ``(last_entry+1)->ptr == NULL``.
593
(John Arbash Meinel, #490228)
595
* Improve "Binary files differ" hunk handling. (Aaron Bentley, #436325)
601
:Codename: after sprint recovery
604
This release was pushed up from its normal release cycle due to a
605
regression in python 2.4 compatibility in 2.1.0b2. Since this regression
606
was caught before 2.1.0b2 was officially announced, the full changelog
607
includes both 2.1.0b3 and 2.1.0b2 changes.
609
Highlights of 2.1.0b3 are: new globbing code for all commands on Windows,
610
the test suite now conforms to python's trunk enhanced semantics (skip,
611
etc.), and ``bzr info -v`` will now report the correct branch and repo
612
formats for Remote objects.
618
* Users can define a shelve editor to provide shelf functionality at a
619
granularity finer than per-patch-hunk. (Aaron Bentley)
624
* Fix for shell completion and short options. (Benoît PIERRE)
626
* Hooks daughter classes should always call the base constructor.
627
(Alexander Belchenko, Vincent Ladeuil, #389648)
629
* Improve "Binary files differ" hunk handling. (Aaron Bentley, #436325)
631
* On Windows, do glob expansion at the command-line level (as is usually
632
done in bash, etc.) This means that *all* commands get glob expansion
633
(bzr status, bzr add, bzr mv, etc). It uses a custom command line
634
parser, which allows us to know if a given section was quoted. It means
635
you can now do ``bzr ignore "*.py"``.
636
(John Arbash Meinel, #425510, #426410, #194450)
638
* Sanitize commit messages that come in from the '-m' flag. We translate
639
'\r\n' => '\n' and a plain '\r' => '\n'. The storage layer doesn't
640
allow those because XML store silently translate it anyway. (The parser
641
auto-translates \r\n => \n in ways that are hard for us to catch.)
643
* Show correct branch and repository format descriptions in
644
``bzr info -v`` on a smart server location. (Andrew Bennetts, #196080)
646
* The fix for bug #186920 accidentally broke compatibility with python
647
2.4. (Vincent Ladeuil, #475585)
649
* Using ``Repository.get_commit_builder().record_iter_changes()`` now
650
correctly sets ``self.inv_sha1`` to a sha1 string and
651
``self.new_inventory`` to an Inventory instance after calling
652
``self.finish_inventory()``. (Previously it accidently set both values
653
as a tuple on ``self.inv_sha1``. This was missed because
654
``repo.add_revision`` ignores the supplied inventory sha1 and recomputes
655
the sha1 from the repo directly. (John Arbash Meinel)
657
* Shelve command refuse to run if there is no real terminal.
658
(Alexander Belchenko)
660
* Avoid unnecessarily flushing of trace file; it's now unbuffered at the
661
Python level. (Martin Pool)
666
* Include Japanese translations for documentation (Inada Naoki)
668
* New API ``ui_factory.make_output_stream`` to be used for sending bulk
669
(rather than user-interaction) data to stdout. This automatically
670
coordinates with progress bars or other terminal activity, and can be
672
(Martin Pool, 493944)
677
* Some of the core groupcompress functionality now releases the GIL before
678
operation. Similar to how zlib and bz2 operate without the GIL in the
679
core compression and decompression routines. (John Arbash Meinel)
684
* -Dhpssvfs will now trigger on ``RemoteBzrDir._ensure_real``, providing
685
more debugging of VFS access triggers. (Robert Collins)
687
* KnownFailure is now signalled to ``ExtendedTestResult`` using the same
688
method that Python 2.7 uses - ``addExpectedFailure``. (Robert Collins)
690
* ``--parallel=fork`` is now compatible with --subunit.
691
(Robert Collins, Vincent Ladeuil, #419776)
693
* Reporting of failures shows test ids not descriptions and thus shows
694
parameterised tests correctly. (Robert Collins)
696
* TestNotApplicable is now handled within the TestCase.run method rather
697
than being looked for within ``ExtendedTestResult.addError``. This
698
provides better handling with other ``TestResult`` objects, degrading to
699
sucess rather than error. (Robert Collins)
701
* The private method ``_testConcluded`` on ``ExtendedTestResult`` has been
702
removed - it was empty and unused. (Robert Collins)
704
* UnavailableFeature is now handled within the TestCase.run method rather
705
than being looked for within addError. If the Result object does not
706
have an addNotSupported method, addSkip is attempted instead, and
707
failing that addSuccess. (Robert Collins)
709
* When a TestResult does not have an addSkip method, skipped tests are now
710
reported as successful tests, rather than as errors. This change is
711
to make it possible to get a clean test run with a less capable
712
TestResult. (Robert Collins)
719
:Codename: a load off my mind
722
This is our second feature-filled release since 2.0, pushing us down the
723
path to a 2.1.0. Once again, all bugfixes in 2.0.2 are present in 2.1.0b2.
725
Key highlights in this release are: improved handling of
726
failures-during-cleanup for commit, fixing a long-standing bug with
727
``bzr+http`` and shared repositories, all ``lp:`` urls to be resolved
728
behind proxies, and a new StaticTuple datatype, allowing us to reduce
729
memory consumption (50%) and garbage collector overhead (40% faster) for
732
* A new ``--concurrency`` option has been added as well as an associated
733
BZR_CONCURRENCY environment variable to specify the number of
734
processes that can be run concurrently when running ``bzr selftest``. The
735
command-line option overrides the environment variable if both are
736
specified. If none is specified. the number of processes is obtained
737
from the OS as before. (Matt Nordhoff, Vincent Ladeuil)
742
* ``bzr+http`` servers no longer give spurious jail break errors when
743
serving branches inside a shared repository. (Andrew Bennetts, #348308)
745
* Errors during commit are handled more robustly so that knock-on errors
746
are less likely to occur, and will not obscure the original error if
747
they do occur. This fixes some causes of ``TooManyConcurrentRequests``
748
and similar errors. (Andrew Bennetts, #429747, #243391)
750
* Launchpad urls can now be resolved from behind proxies.
751
(Gordon Tyler, Vincent Ladeuil, #186920)
753
* Reduce the strictness for StaticTuple, instead add a debug flag
754
``-Dstatic_tuple`` which will change apis to be strict and raise errors.
755
This way, most users won't see failures, but developers can improve
756
internals. (John Arbash Meinel, #471193)
758
* TreeTransform.adjust_path updates the limbo paths of descendants of adjusted
759
files. (Aaron Bentley)
761
* Unicode paths are now handled correctly and consistently by the smart
762
server. (Andrew Bennetts, Michael Hudson, #458762)
767
* When reading index files, we now use a ``StaticTuple`` rather than a
768
plain ``tuple`` object. This generally gives a 20% decrease in peak
769
memory, and can give a performance boost up to 40% on large projects.
772
* Peak memory under certain operations has been reduced significantly.
773
(eg, 'bzr branch launchpad standalone' is cut in half)
779
* Filtered views user documentation upgraded to refer to format 2a
780
instead of pre-2.0 formats. (Ian Clatworthy)
785
* Remove deprecated ``CLIUIFactory``. (Martin Pool)
787
* ``UIFactory`` now has new ``show_error``, ``show_message`` and
788
``show_warning`` methods, which can be hooked by non-text UIs.
794
* Added ``bzrlib._simple_set_pyx``. This is a hybrid between a Set and a
795
Dict (it only holds keys, but you can lookup the object located at a
796
given key). It has significantly reduced memory consumption versus the
797
builtin objects (1/2 the size of Set, 1/3rd the size of Dict). This is
798
used as the interning structure for StaticTuple objects.
801
* ``bzrlib._static_tuple_c.StaticTuple`` is now available and used by
802
the btree index parser and the chk map parser. This class functions
803
similarly to ``tuple`` objects. However, it can only point to a limited
804
collection of types. (Currently StaticTuple, str, unicode, None, bool,
805
int, long, float, but not subclasses). This allows us to remove it from
806
the garbage collector (it cannot be in a cycle), it also allows us to
807
intern the objects. In testing, this can reduce peak memory by 20-40%,
808
and significantly improve performance by removing objects from being
809
inspected by the garbage collector. (John Arbash Meinel)
811
* ``GroupCompressBlock._ensure_content()`` will now release the
812
``zlib.decompressobj()`` when the first request is for all of the
813
content. (Previously it would only be released if you made a request for
814
part of the content, and then all of it later.) This turns out to be a
815
significant memory savings, as a ``zstream`` carries around approx 260kB
816
of internal state and buffers. (For branching bzr.dev this drops peak
817
memory from 382MB => 345MB.) (John Arbash Meinel)
819
* When streaming content between ``2a`` format repositories, we now clear
820
caches from earlier versioned files. (So 'revisions' is cleared when we
821
start reading 'inventories', etc.) This can have a significant impact on
822
peak memory for initial copies (~200MB). (John Arbash Meinel)
828
:Codename: after the scare
831
The second in our "let's keep the stable bugfixes flowing" series. As
832
expected this has a few (~9) bugfixes relative to 2.0.1, and no major api
838
* Avoid "NoneType has no attribute st_mode" error when files disappear
839
from a directory while it's being read. (Martin Pool, #446033)
841
* Content filters are now applied correctly after revert.
844
* Diff parsing handles "Binary files differ" hunks. (Aaron Bentley, #436325)
846
* Fetching from stacked pre-2a repository via a smart server no longer
847
fails intermittently with "second push failed to complete".
848
(Andrew Bennetts, #437626)
850
* Fix typos left after test_selftest refactoring.
851
(Vincent Ladeuil, Matt Nordhoff, #461149)
853
* Fixed ``ObjectNotLocked`` errors during ``bzr log -r NNN somefile``.
854
(Andrew Bennetts, #445171)
856
* PreviewTree file names are not limited by the encoding of the temp
857
directory's filesystem. (Aaron Bentley, #436794)
862
* ``bzr log`` now read-locks branches exactly once, so makes better use of
863
data caches. (Andrew Bennetts)
868
* Filtered views user documentation upgraded to refer to format 2a
869
instead of pre-2.0 formats. (Ian Clatworthy)
875
:Codename: While the cat is away
878
This is the first development release in the new split "stable" and
879
"development" series. As such, the release is a snapshot of bzr.dev
880
without creating a release candidate first. This release includes a
881
fair amount of internal changes, with deprecated code being removed,
882
and several new feature developments. People looking for a stable code
883
base with only bugfixes should focus on the 2.0.1 release. All bugfixes
884
present in 2.0.1 are present in 2.1.0b1.
886
Highlights include support for ``bzr+ssh://host/~/homedir`` style urls,
887
finer control over the plugin search path via extended BZR_PLUGIN_PATH
888
syntax, visible warnings when extension modules fail to load, and improved
889
error handling during unlocking.
895
* Bazaar can now send mail through Apple OS X Mail.app.
898
* ``bzr+ssh`` and ``bzr`` paths can now be relative to home directories
899
specified in the URL. Paths starting with a path segment of ``~`` are
900
relative to the home directory of the user running the server, and paths
901
starting with ``~user`` are relative to the home directory of the named
902
user. For example, for a user "bob" with a home directory of
903
``/home/bob``, these URLs are all equivalent:
905
* ``bzr+ssh://bob@host/~/repo``
906
* ``bzr+ssh://bob@host/~bob/repo``
907
* ``bzr+ssh://bob@host/home/bob/repo``
909
If ``bzr serve`` was invoked with a ``--directory`` argument, then no
910
home directories outside that directory will be accessible via this
913
This is a feature of ``bzr serve``, so pre-2.1 clients will
914
automatically benefit from this feature when ``bzr`` on the server is
915
upgraded. (Andrew Bennetts, #109143)
917
* Extensions can now be compiled if either Cython or Pyrex is available.
918
Currently Pyrex is preferred, but that may change in the future.
921
* Give more control on BZR_PLUGIN_PATH by providing a way to refer to or
922
disable the user, site and core plugin directories.
923
(Vincent Ladeuil, #412930, #316192, #145612)
928
* Bazaar's native protocol code now correctly handles EINTR, which most
929
noticeably occurs if you break in to the debugger while connected to a
930
bzr+ssh server. You can now can continue from the debugger (by typing
931
'c') and the process continues. However, note that pressing C-\ in the
932
shell may still kill the SSH process, which is bug 162509, so you must
933
sent a signal to the bzr process specifically, for example by typing
934
``kill -QUIT PID`` in another shell. (Martin Pool, #341535)
936
* ``bzr add`` in a tree that has files with ``\r`` or ``\n`` in the
937
filename will issue a warning and skip over those files.
938
(Robert Collins, #3918)
940
* ``bzr dpush`` now aborts if uncommitted changes (including pending merges)
941
are present in the working tree. The configuration option ``dpush_strict``
942
can be used to set the default for this behavior.
943
(Vincent Ladeuil, #438158)
945
* ``bzr merge`` and ``bzr remove-tree`` now requires --force if pending
946
merges are present in the working tree.
947
(Vincent Ladeuil, #426344)
949
* Clearer message when Bazaar runs out of memory, instead of a ``MemoryError``
950
traceback. (Martin Pool, #109115)
952
* Don't give a warning on Windows when failing to import ``_readdir_pyx``
953
as it is never built. (John Arbash Meinel, #430645)
955
* Don't restrict the command name used to run the test suite.
956
(Vincent Ladeuil, #419950)
958
* ftp transports were built differently when the kerberos python module was
959
present leading to obscure failures related to ASCII/BINARY modes.
960
(Vincent Ladeuil, #443041)
962
* Network streams now decode adjacent records of the same type into a
963
single stream, reducing layering churn. (Robert Collins)
965
* PreviewTree behaves correctly when get_file_mtime is invoked on an unmodified
966
file. (Aaron Bentley, #251532)
968
* Registry objects should not use iteritems() when asked to use items().
969
(Vincent Ladeuil, #430510)
971
* Weave based repositories couldn't be cloned when committers were using
972
domains or user ids embedding '.sig'. Now they can.
973
(Matthew Fuller, Vincent Ladeuil, #430868)
978
* Revision specifiers can now be given in a more DWIM form, without
979
needing explicit prefixes for specifiers like tags or revision id's.
980
See ``bzr help revisionspec`` for full details. (Matthew Fuller)
982
* Bazaar gives a warning before exiting, and writes into ``.bzr.log``, if
983
compiled extensions can't be loaded. This typically indicates a
984
packaging or installation problem. In this case Bazaar will keep
985
running using pure-Python versions, but this may be substantially
986
slower. The warning can be disabled by setting
987
``ignore_missing_extensions = True`` in ``bazaar.conf``.
988
See also <https://answers.launchpad.net/bzr/+faq/703>.
989
(Martin Pool, #406113, #430529)
991
* Secondary errors that occur during Branch.unlock and Repository.unlock
992
no longer obscure the original error. These methods now use a new
993
decorator, ``only_raises``. This fixes many causes of
994
``TooManyConcurrentRequests`` and similar errors.
995
(Andrew Bennetts, #429747)
1000
* Describe the new shell-like test feature. (Vincent Ladeuil)
1002
* Help on hooks no longer says 'Not deprecated' for hooks that are
1003
currently supported. (Ian Clatworthy, #422415)
1008
* ``bzrlib.user_encoding`` has been removed; use
1009
``bzrlib.osutils.get_user_encoding`` instead. (Martin Pool)
1011
* ``bzrlib.tests`` now uses ``stopTestRun`` for its ``TestResult``
1012
subclasses - the same as python's unittest module. (Robert Collins)
1014
* ``diff._get_trees_to_diff`` has been renamed to
1015
``diff.get_trees_and_branches_to_diff``. It is now a public API, and it
1016
returns the old and new branches. (Gary van der Merwe)
1018
* ``bzrlib.trace.log_error``, ``error`` and ``info`` have been deprecated.
1021
* ``MutableTree.has_changes()`` does not require a tree parameter anymore. It
1022
now defaults to comparing to the basis tree. It now checks for pending
1023
merges too. ``Merger.check_basis`` has been deprecated and replaced by the
1024
corresponding has_changes() calls. ``Merge.compare_basis``,
1025
``Merger.file_revisions`` and ``Merger.ensure_revision_trees`` have also
1027
(Vincent Ladeuil, #440631)
1029
* ``ProgressTask.note`` is deprecated.
1035
* Added ``-Drelock`` debug flag. It will ``note`` a message every time a
1036
repository or branch object is unlocked then relocked the same way.
1039
* ``BTreeLeafParser.extract_key`` has been tweaked slightly to reduce
1040
mallocs while parsing the index (approx 3=>1 mallocs per key read).
1041
This results in a 10% speedup while reading an index.
1042
(John Arbash Meinel)
1044
* The ``bzrlib.lsprof`` module has a new class ``BzrProfiler`` which makes
1045
profiling in some situations like callbacks and generators easier.
1051
* Passing ``--lsprof-tests -v`` to bzr selftest will cause lsprof output to
1052
be output for every test. Note that this is very verbose! (Robert Collins)
1054
* Setting ``BZR_TEST_PDB=1`` when running selftest will cause a pdb
1055
post_mortem to be triggered when a test failure occurs. (Robert Collins)
1057
* Shell-like tests can now be written. Code in ``bzrlib/tests/script.py`` ,
1058
documentation in ``developers/testing.txt`` for details.
1061
* Some tests could end up with the same id, that was dormant for
1063
(Vincent Ladeuil, #442980)
1065
* Stop showing the number of tests due to missing features in the test
1066
progress bar. (Martin Pool)
1068
* Test parameterisation now does a shallow copy, not a deep copy of the test
1069
to be parameterised. This is not expected to break external use of test
1070
parameterisation, and is substantially faster. (Robert Collins)
1072
* Tests that try to open a bzr dir on an arbitrary transport will now
1073
fail unless they have explicitly permitted the transport via
1074
``self.permit_url``. The standard test factories such as ``self.get_url``
1075
will permit the urls they provide automatically, so only exceptional
1076
tests should need to do this. (Robert Collins)
1078
* The break-in test no longer cares about clean shutdown of the child,
1079
instead it is happy if the debugger starts up. (Robert Collins)
1081
* The full test suite is expected to pass when the C extensions are not
1082
present. (Vincent Ladeuil, #430749)
1088
:Codename: Stability First
1091
The first of our new ongoing bugfix-only stable releases has arrived. It
1092
includes a collection of 12 bugfixes applied to bzr 2.0.0, but does not
1093
include any of the feature development in the 2.1.0 series.
1099
* ``bzr add`` in a tree that has files with ``\r`` or ``\n`` in the
1100
filename will issue a warning and skip over those files.
1101
(Robert Collins, #3918)
1103
* bzr will attempt to authenticate with SSH servers that support
1104
``keyboard-interactive`` auth but not ``password`` auth when using
1105
Paramiko. (Andrew Bennetts, #433846)
1107
* Fixed fetches from a stacked branch on a smart server that were failing
1108
with some combinations of remote and local formats. This was causing
1109
"unknown object type identifier 60" errors. (Andrew Bennetts, #427736)
1111
* Fixed ``ObjectNotLocked`` errors when doing some log and diff operations
1112
on branches via a smart server. (Andrew Bennetts, #389413)
1114
* Handle things like ``bzr add foo`` and ``bzr rm foo`` when the tree is
1115
at the root of a drive. ``osutils._cicp_canonical_relpath`` always
1116
assumed that ``abspath()`` returned a path that did not have a trailing
1117
``/``, but that is not true when working at the root of the filesystem.
1118
(John Arbash Meinel, Jason Spashett, #322807)
1120
* Hide deprecation warnings for 'final' releases for python2.6.
1121
(John Arbash Meinel, #440062)
1123
* Improve the time for ``bzr log DIR`` for 2a format repositories.
1124
We had been using the same code path as for <2a formats, which required
1125
iterating over all objects in all revisions.
1126
(John Arbash Meinel, #374730)
1128
* Make sure that we unlock the tree if we fail to create a TreeTransform
1129
object when doing a merge, and there is limbo, or pending-deletions
1130
directory. (Gary van der Merwe, #427773)
1132
* Occasional IndexError on renamed files have been fixed. Operations that
1133
set a full inventory in the working tree will now go via the
1134
apply_inventory_delta code path which is simpler and easier to
1135
understand than dirstates set_state_from_inventory method. This may
1136
have a small performance impact on operations built on _write_inventory,
1137
but such operations are already doing full tree scans, so no radical
1138
performance change should be observed. (Robert Collins, #403322)
1140
* Retrieving file text or mtime from a _PreviewTree has good performance when
1141
there are many changes. (Aaron Bentley)
1143
* The CHK index pages now use an unlimited cache size. With a limited
1144
cache and a large project, the random access of chk pages could cause us
1145
to download the entire cix file many times.
1146
(John Arbash Meinel, #402623)
1148
* When a file kind becomes unversionable after being added, a sensible
1149
error will be shown instead of a traceback. (Robert Collins, #438569)
1154
* Improved README. (Ian Clatworthy)
1156
* Improved upgrade documentation for Launchpad branches.
1164
:Codename: Instant Karma
1166
This release of Bazaar makes the 2a (previously 'brisbane-core') format
1167
the default when new branches or repositories are created. This format is
1168
substantially smaller and faster for many operations. Most of the work in
1169
this release focuses on bug fixes and stabilization, covering both 2a and
1170
previous formats. (See the Upgrade Guide for information on migrating
1173
This release also improves the documentation content and presentation,
1174
including adding Windows HtmlHelp manuals.
1176
The Bazaar team decided that 2.0 will be a long-term supported release,
1177
with bugfix-only 2.0.x releases based on it, continuing for at least six
1178
months or until the following stable release.
1180
Changes from 2.0.0rc2 to final
1181
******************************
1183
* Officially branded as 2.0.0 rather than 2.0 to clarify between things
1184
that "want to happen on the 2.0.x stable series" versus things that want
1185
to "land in 2.0.0". (Changes how bzrlib._format_version_tuple() handles
1186
micro = 0.) (John Arbash Meinel)
1192
:2.0.0rc2: 2009-09-10
1197
* Added post_commit hook for mutable trees. This allows the keywords
1198
plugin to expand keywords on files changed by the commit.
1199
(Ian Clatworthy, #408841)
1204
* Bazaar's native protocol code now correctly handles EINTR, which most
1205
noticeably occurs if you break in to the debugger while connected to a
1206
bzr+ssh server. You can now can continue from the debugger (by typing
1207
'c') and the process continues. However, note that pressing C-\ in the
1208
shell may still kill the SSH process, which is bug 162509, so you must
1209
sent a signal to the bzr process specifically, for example by typing
1210
``kill -QUIT PID`` in another shell. (Martin Pool, #341535)
1212
* ``bzr check`` in pack-0.92, 1.6 and 1.9 format repositories will no
1213
longer report incorrect errors about ``Missing inventory ('TREE_ROOT', ...)``
1214
(Robert Collins, #416732)
1216
* ``bzr info -v`` on a 2a format still claimed that it was a "Development
1217
format" (John Arbash Meinel, #424392)
1219
* ``bzr log stacked-branch`` shows the full log including
1220
revisions that are in the fallback repository. (Regressed in 2.0rc1).
1221
(John Arbash Meinel, #419241)
1223
* Clearer message when Bazaar runs out of memory, instead of a ``MemoryError``
1224
traceback. (Martin Pool, #109115)
1226
* Conversion to 2a will create a single pack for all the new revisions (as
1227
long as it ran without interruption). This improves both ``bzr upgrade``
1228
and ``bzr pull`` or ``bzr merge`` from local branches in older formats.
1229
The autopack logic that occurs every 100 revisions during local
1230
conversions was not returning that pack's identifier, which resulted in
1231
the partial packs created during the conversion not being consolidated
1232
at the end of the conversion process. (Robert Collins, #423818)
1234
* Fetches from 2a to 2a are now again requested in 'groupcompress' order.
1235
Groups that are seen as 'underutilized' will be repacked on-the-fly.
1236
This means that when the source is fully packed, there is minimal
1237
overhead during the fetch, but if the source is poorly packed the result
1238
is a fairly well packed repository (not as good as 'bzr pack' but
1239
good-enough.) (Robert Collins, John Arbash Meinel, #402652)
1241
* Fix a potential segmentation fault when doing 'log' of a branch that had
1242
ghosts in its mainline. (Evaluating None as a tuple is bad.)
1243
(John Arbash Meinel, #419241)
1245
* ``groupcompress`` sort order is now more stable, rather than relying on
1246
``topo_sort`` ordering. The implementation is now
1247
``KnownGraph.gc_sort``. (John Arbash Meinel)
1249
* Local data conversion will generate correct deltas. This is a critical
1250
bugfix vs 2.0rc1, and all 2.0rc1 users should upgrade to 2.0rc2 before
1251
converting repositories. (Robert Collins, #422849)
1253
* Network streams now decode adjacent records of the same type into a
1254
single stream, reducing layering churn. (Robert Collins)
1256
* Prevent some kinds of incomplete data from being committed to a 2a
1257
repository, such as revisions without inventories, a missing chk_bytes
1258
record for an inventory, or a missing text referenced by an inventory.
1259
(Andrew Bennetts, #423506, #406687)
1264
* Fix assertion error about "_remember_remote_is_before" when pushing to
1265
older smart servers.
1266
(Andrew Bennetts, #418931)
1268
* Help on hooks no longer says 'Not deprecated' for hooks that are
1269
currently supported. (Ian Clatworthy, #422415)
1271
* PDF and CHM (Windows HtmlHelp) formats are now supported for the
1272
user documentation. The HTML documentation is better broken up into
1273
topics. (Ian Clatworthy)
1275
* The developer and foreign language documents are now separated
1276
out so that searching in the HTML and CHM files produces more
1277
useful results. (Ian Clatworthy)
1279
* The main table of contents now provides links to the new Migration Docs
1280
and Plugins Guide. (Ian Clatworthy)
1286
:Codename: no worries
1287
:2.0.0rc1: 2009-08-26
1289
Compatibility Breaks
1290
********************
1292
* The default format for bzr is now ``2a``. This format brings many
1293
significant performance and size improvements. bzr can pull from
1294
any existing repository into a ``2a`` one, but can only transfer
1295
from ``2a`` into ``rich-root`` repositories. The Upgrade guide
1296
has more information about this change. (Robert Collins)
1298
* On Windows auto-detection of Putty's plink.exe is disabled.
1299
Default SSH client for Windows is paramiko. User still can force
1300
usage of plink if explicitly set environment variable BZR_SSH=plink.
1301
(#414743, Alexander Belchenko)
1306
* ``bzr branch --switch`` can now switch the checkout in the current directory
1307
to the newly created branch. (Lukáš Lalinský)
1312
* Further tweaks to handling of ``bzr add`` messages about ignored files.
1313
(Jason Spashett, #76616)
1315
* Fetches were being requested in 'groupcompress' order, but weren't
1316
recombining the groups. Thus they would 'fragment' to get the correct
1317
order, but not 'recombine' to actually benefit from it. Until we get
1318
recombining to work, switching to 'unordered' fetches avoids the
1319
fragmentation. (John Arbash Meinel, #402645)
1321
* Fix a pycurl related test failure on karmic by recognizing an error
1322
raised by newer versions of pycurl.
1323
(Vincent Ladeuil, #306264)
1325
* Fix a test failure on karmic by making a locale test more robust.
1326
(Vincent Ladeuil, #413514)
1328
* Fix IndexError printing CannotBindAddress errors.
1329
(Martin Pool, #286871)
1331
* Fix "Revision ... not present" errors when upgrading stacked branches,
1332
or when doing fetches from a stacked source to a stacked target.
1333
(Andrew Bennetts, #399140)
1335
* ``bzr branch`` of 2a repositories over HTTP is much faster. bzr now
1336
batches together small fetches from 2a repositories, rather than
1337
fetching only a few hundred bytes at a time.
1338
(Andrew Bennetts, #402657)
1343
* A better description of the platform is shown in crash tracebacks, ``bzr
1344
--version`` and ``bzr selftest``.
1345
(Martin Pool, #409137)
1347
* bzr can now (again) capture crash data through the apport library,
1348
so that a single human-readable file can be attached to bug reports.
1349
This can be disabled by using ``-Dno_apport`` on the command line, or by
1350
putting ``no_apport`` into the ``debug_flags`` section of
1352
(Martin Pool, Robert Collins, #389328)
1354
* ``bzr push`` locally on windows will no longer give a locking error with
1355
dirstate based formats. (Robert Collins)
1357
* ``bzr shelve`` and ``bzr unshelve`` now work on windows.
1358
(Robert Collins, #305006)
1360
* Commit of specific files no longer prevents using the iter_changes
1361
codepath. On 2a repositories, commit of specific files should now be as
1362
fast, or slightly faster, than a full commit. (Robert Collins)
1364
* The internal core code that handles specific file operations like
1365
``bzr st FILENAME`` or ``bzr commit FILENAME`` has been changed to
1366
include the parent directories if they have altered, and when a
1367
directory stops being a directory its children are always included. This
1368
fixes a number of causes for ``InconsistentDelta`` errors, and permits
1369
faster commit of specific paths. (Robert Collins, #347649)
1374
* New developer documentation for content filtering.
1380
* ``bzrlib.shelf_ui`` has had the ``from_args`` convenience methods of its
1381
classes changed to manage lock lifetime of the trees they open in a way
1382
consistent with reader-exclusive locks. (Robert Collins, #305006)
1390
:Codename: nein nein nein!
1393
This release fixes two small but worthwhile bugs relevant to users on
1394
Microsoft Windows: some commands that failed on with locking errors will
1395
now work, and a bug that caused poor performance after committing a file
1396
with line-ending conversion has now been fixed. It also fixes a bug in
1397
pushing to older servers.
1402
* Fixed a problem where using content filtering and especially end-of-line
1403
conversion will commit too many copies a file.
1404
(Martin Pool, #415508)
1406
* Fix assertion error about ``_remember_remote_is_before`` in
1407
``set_tags_bytes`` when pushing to older smart servers.
1408
(Andrew Bennetts, Alexander Belchenko, #418931)
1413
* ``bzr push`` locally on Windows will no longer give a locking error with
1414
dirstate based formats. (Robert Collins)
1416
* ``bzr shelve`` and ``bzr unshelve`` now work on Windows.
1417
(Robert Collins, #305006)
1422
* ``bzrlib.shelf_ui`` has had the ``from_args`` convenience methods of its
1423
classes changed to manage lock lifetime of the trees they open in a way
1424
consistent with reader-exclusive locks. (Robert Collins, #305006)
1426
* ``Tree.path_content_summary`` may return a size of None, when called on
1427
a tree with content filtering where the size of the canonical form
1428
cannot be cheaply determined. (Martin Pool)
1430
* When manually creating transport servers in test cases, a new helper
1431
``TestCase.start_server`` that registers a cleanup and starts the server
1432
should be used. (Robert Collins)
1437
Compatibility Breaks
1438
********************
1440
* Committing directly to a stacked branch from a lightweight checkout will
1441
no longer work. In previous versions this would appear to work but would
1442
generate repositories with insufficient data to create deltas, leading
1443
to later errors when branching or reading from the repository.
1444
(Robert Collins, bug #375013)
1452
* Fetching from 2a branches from a version-2 bzr protocol would fail to
1453
copy the internal inventory pages from the CHK store. This cannot happen
1454
in normal use as all 2a compatible clients and servers support the
1455
version-3 protocol, but it does cause test suite failures when testing
1456
downlevel protocol behaviour. (Robert Collins)
1458
* Fix a test failure on karmic by making a locale test more robust.
1459
(Vincent Ladeuil, #413514)
1461
* Fixed "Pack ... already exists" error when running ``bzr pack`` on a
1462
fully packed 2a repository. (Andrew Bennetts, #382463)
1464
* Further tweaks to handling of ``bzr add`` messages about ignored files.
1465
(Jason Spashett, #76616)
1467
* Properly handle fetching into a stacked branch while converting the
1468
data, especially when there are also ghosts. The code was filling in
1469
parent inventories incorrectly, and also not handling when one of the
1470
parents was a ghost. (John Arbash Meinel, #402778, #412198)
1472
* ``RemoteStreamSource.get_stream_for_missing_keys`` will fetch CHK
1473
inventory pages when appropriate (by falling back to the vfs stream
1474
source). (Andrew Bennetts, #406686)
1476
* StreamSource generates rich roots from non-rich root sources correctly
1477
now. (Andrew Bennetts, #368921)
1479
* When deciding whether a repository was compatible for upgrading or
1480
fetching, we previously incorrectly checked the default repository
1481
format for the bzrdir format, rather than the format that was actually
1482
present on disk. (Martin Pool, #408824)
1487
* A better description of the platform is shown in crash tracebacks, ``bzr
1488
--version`` and ``bzr selftest``.
1489
(Martin Pool, #409137)
1491
* Cross-format fetches (such as between 1.9-rich-root and 2a) via the
1492
smart server are more efficient now. They send inventory deltas rather
1493
than full inventories. The smart server has two new requests,
1494
``Repository.get_stream_1.19`` and ``Repository.insert_stream_1.19`` to
1495
support this. (Andrew Bennetts, #374738, #385826)
1497
* Extracting the full ancestry and computing the ``merge_sort`` is now
1498
significantly faster. This effects things like ``bzr log -n0``. (For
1499
example, ``bzr log -r -10..-1 -n0 bzr.dev`` is 2.5s down to 1.0s.
1500
(John Arbash Meinel)
1511
* ``-Dstrict_locks`` can now be used to check that read and write locks
1512
are treated properly w.r.t. exclusivity. (We don't try to take an OS
1513
read lock on a file that we already have an OS write lock on.) This is
1514
now set by default for all tests, if you have a test which cannot be
1515
fixed, you can use ``self.thisFailsStrictLockCheck()`` as a
1516
compatibility knob. (John Arbash Meinel)
1518
* InterDifferingSerializer is now only used locally. Other fetches that
1519
would have used InterDifferingSerializer now use the more network
1520
friendly StreamSource, which now automatically does the same
1521
transformations as InterDifferingSerializer. (Andrew Bennetts)
1523
* ``KnownGraph`` now has a ``.topo_sort`` and ``.merge_sort`` member which
1524
are implemented in pyrex and significantly faster. This is exposed along
1525
with ``CombinedGraphIndex.find_ancestry()`` as
1526
``VersionedFiles.get_known_graph_ancestry(keys)``.
1527
(John Arbash Meinel)
1529
* RemoteBranch.open now honours ignore_fallbacks correctly on bzr-v2
1530
protocols. (Robert Collins)
1532
* The index code now has some specialized routines to extract the full
1533
ancestry of a key in a more efficient manner.
1534
``CombinedGraphIndex.find_ancestry()``. (Time to get ancestry for
1535
bzr.dev drops from 1.5s down to 300ms. For OOo from 33s => 10.5s) (John
1541
* Install the test ssl certificate and key so that installed bzr
1542
can run the https tests. (Denys Duchier, #392401)
1548
:Codename: little traveller
1550
:1.18rc1: 2009-08-10
1552
This release of Bazaar marches on towards the 2.0 release in which the 2a
1553
'brisbane-core' format becomes generally recommended. Most of the work in
1554
this release now focusses on bug fixes and stabilization, covering both 2a
1555
and previous formats. There is a new text-mode interactive merge feature,
1556
a new guide to migration to 2a format in the user documentation, and
1557
pushing branches to a smart server is now much faster.
1559
The Bazaar team decided that 2.0 will be a long-term supported release,
1560
with bugfix-only releases based on it continuing for at least six months
1561
or until the following stable release.
1563
There are no changes from 1.18rc1 to 1.18.
1568
* ``bzr merge --interactive`` applies a user-selected portion of the
1569
merge. The UI is similar to ``shelve``. (Aaron Bentley)
1571
* ``bzr reconfigure`` now takes options ``--stacked-on URL`` and
1572
``--unstacked`` to change stacking of a branch.
1573
(Martin Pool, #391411)
1578
* Annotating on a stacked branch will now succeed in simple scenarios.
1579
There are still some complex scenarios where it will fail (bug #399884)
1580
(John Arbash Meinel, #393366)
1582
* A progress bar is no longer left dangling when ``bzr selftest``
1583
completes, and the progress bar updates with zero latency so the
1584
displayed test name is always the one that's actually running.
1585
(Martin Pool, #123688)
1587
* Authenticating against an ssh server now uses ``auth_none`` to determine
1588
if password authentication is even supported. This fixes a bug where
1589
users would be prompted for a launchpad password, even though launchpad
1590
only supports publickey authentication. (John Arbash Meinel, #375867)
1592
* BranchBuilder now accepts timezone to avoid test failures in countries far
1593
from GMT. (Vincent Ladeuil, #397716)
1595
* ``bzr commit`` no longer saves the unversioning of missing files until
1596
the commit has completed on the branch. This means that aborting a
1597
commit that found a missing file will leave the tree unedited.
1598
(Robert Collins, #282402)
1600
* ``bzr mv`` no longer takes out branch locks, which allows it to work
1601
when the branch is readonly. (Robert Collins, #216541)
1603
* ``bzr revert .`` no longer generates an InconsistentDelta error when
1604
there are missing subtrees. (Robert Collins, #367632)
1606
* ``bzr send`` now generates valid bundles with ``--2a`` formats. However,
1607
do to internal changes necessary to support this, older clients will
1608
fail when trying to insert them. For newer clients, the bundle can be
1609
used to apply the changes to any rich-root compatible format.
1610
(John Arbash Meinel, #393349)
1612
* Cope with FTP servers that don't support restart/append by falling back
1613
to reading and then rewriting the whole file, such as TahoeLAFS. (This
1614
fallback may be slow for some access patterns.) (Nils Durner, #294709)
1616
* Encode the paths in ``mbcs`` encoding on Windows when spawning an
1617
external diff client. This at least allows supporting filenames that are
1618
not ascii, but are present in the current locale. Ideally we would be
1619
able to pass the Unicode path, but that would be client dependent.
1620
(John Arbash Meinel, #382709)
1622
* Fix a compile bug on Solaris having to do with const and
1623
pointer-to-pointers. (John Arbash Meinel, #408441)
1625
* Fixed a NameError that occurs when merging or pulling from a URL that
1626
causes a redirection loop when bzr tries to read a URL as a bundle.
1627
(Andrew Bennetts, #400847)
1629
* Fix ``AttributeError: 'TestUIFactory' object has no attribute 'tick'``
1630
running send and similar commands on 2a formats.
1631
(Martin Pool, #408201)
1633
* Fix crash in some invocations of ``bzr status`` in format 2a.
1634
(Martin Pool, #403523)
1636
* Fixed export to existing directory: if directory is empty then export
1637
will succeed, otherwise it fails with error.
1638
(Alexander Belchenko, #406174)
1640
* Fixed spurious "Source branch does not support stacking" warning when
1641
pushing. (Andrew Bennetts, #388908)
1643
* Fixed spurious transport activity indicator appearing while tests are
1644
running. (Martin Pool, #343532)
1646
* Merge now correctly handles empty right-hand revision specs.
1647
(Aaron Bentley, #333961)
1649
* Renames to lexographically lower basenames in trees that have never been
1650
committed to will no longer corrupt the dirstate. This was caused by an
1651
bug in the dirstate update_minimal method. (Robert Collins, #395556)
1653
* Requests for unknown methods no longer cause the smart server to log
1654
lots of backtraces about ``UnknownSmartMethod``, ``do_chunk`` or
1655
``do_end``. (Andrew Bennetts, #338561)
1657
* Shelve will not shelve the initial add of the tree root. (Aaron Bentley)
1659
* Streaming from bzr servers where there is a chain of stacked branches
1660
(A stacked on B stacked on C) will now work. (Robert Collins, #406597)
1662
* The environment variable ``BZR_PROGRESS_BAR`` set to either ``text`` or ``none``
1663
always forces progress bars either on or off respectively. Otherwise,
1664
they're turned on if ``TERM`` is not ``dumb`` and stderr is a terminal.
1665
bzr always uses the 'text' user interface when run as a command, so
1666
``BZR_USE_TEXT_UI`` is no longer needed.
1667
(Martin Pool, #339385, #387717)
1669
* The optional ``_knit_load_data_pyx`` C extension was never being
1670
imported. This caused significant slowdowns when reading data from
1671
repositories. (Andrew Bennetts, #405653)
1673
* The ``--hardlink`` option to ``branch`` and ``checkout`` is not
1674
supported at the moment on workingtree formats that can do content
1675
filtering. (See <https://bugs.edge.launchpad.net/bzr/+bug/408193>.)
1676
bzr now says so, rather than just ignoring the option. (Martin Pool)
1678
* There was a bug in ``osutils.relpath`` that was only triggered on
1679
Windows. Essentially if you were at the root of a drive, and did
1680
something to a branch/repo on another drive, we would go into an
1681
infinite loop while trying to find a 'relative path'.
1682
(John Arbash Meinel, #394227)
1684
* ``WorkingTree4.unversion`` will no longer fail to unversion ids which
1685
were present in a parent tree but renamed in the working tree.
1686
(Robert Collins, #187207)
1691
* Can now rename/move files even if they have been removed from the inventory.
1694
* Pushing branches with tags via ``bzr://`` and ``bzr+ssh://`` is much
1695
faster, using a new ``Branch.set_tags_bytes`` smart server verb rather
1696
than VFS methods. For example, pushes of small branches with tags take
1697
11 rather than 18 smart server requests. (Andrew Bennetts, #398608)
1699
* Sending Ctrl-Break on Windows will now drop you into the debugger, in
1700
the same way that sending Ctrl-\\ does on other platforms.
1701
(John Arbash Meinel)
1706
* Added Bazaar 2.0 Upgrade Guide. (Ian Clatworthy)
1711
* ``CLIUIFactory`` is deprecated; use ``TextUIFactory`` instead if you
1712
need to subclass or create a specific class, or better yet the existing
1713
``make_ui_for_terminal``. ``SilentUIFactory`` is clarified to do no
1714
user interaction at all, rather than trying to read from stdin but not
1715
writing any output, which would be strange if reading prompts or
1716
passwords. (Martin Pool)
1718
* New TransformPreview.commit() allows committing without a working tree.
1721
* ``pb`` parameter to ``TextTestResult`` is deprecated and ignored.
1724
* ProgressTasks now prefer to talk direct to their ProgressView not to the
1728
* ``WorkingTree._check`` now requires a references dict with keys matching
1729
those returned by ``WorkingTree._get_check_refs``. (Robert Collins)
1734
* ``CHKInventory.path2id`` uses the parent_id to basename hash to avoid
1735
reading the entries along the path, reducing work to lookup ids from
1736
paths. (Robert Collins)
1738
* ``CHKMap.apply_delta`` now raises ``InconsistentDelta`` if a delta adds
1739
as new a key which was already mapped. (Robert Collins)
1741
* Inventory delta application catches more cases of corruption and can
1742
prevent corrupt deltas from affecting consistency of data structures on
1743
disk. (Robert Collins)
1745
* --subunit support now adds timestamps if the subunit version supports
1746
it. (Robert Collins)
1748
* The Windows all-in-one installer now bundles the PyQt image format
1749
plugins, which allows previewing more images as part of 'qdiff'.
1750
(Alexander Belchenko)
1756
* Merge directive cherrypick tests must use the same root id.
1757
(Martin Pool, #409684)
1759
* Spurious failure in ``check`` tests on rich-root formats fixed.
1760
(Martin Pool, #408199)
1762
* The ``bzrlib.tests.TextTestRunner`` will no longer call
1763
``countTestsCases`` on the test being run. Progress information is
1764
instead handled by having the test passed in call ``result.progress``
1765
before running its contents. This improves the behaviour when using
1766
``TextTestRunner`` with test suites that don't support
1767
``countTestsCases``. (Robert Collins)
1770
bzr 1.17.1 (unreleased)
1771
#######################
1776
* The optional ``_knit_load_data_pyx`` C extension was never being
1777
imported. This caused significant slowdowns when reading data from
1778
knit format repositories. (Andrew Bennetts, #405653)
1783
:Codename: so-late-its-brunch
1784
:1.17rc1: 2009-07-13
1788
Bazaar continues to blaze a straight and shining path to the 2.0 release and
1789
the elevation of the ``2a`` beta format to the full glory of "supported and
1792
Highlights in this release include greatly reduced memory consumption during
1793
commits, faster ``ls``, faster ``annotate``, faster network operations if
1794
you're specifying a revision number and the final destruction of those
1795
annoying progress bar artifacts.
1798
Changes from 1.17rc1 to 1.17final
1799
*********************************
1801
* Change an extension to call the python ``frozenset()`` rather than the C
1802
api ``PyFrozenSet_New``. It turns out that python2.4 did not expose the
1803
C api. (John Arbash Meinel, #399366)
1805
* Fixes for the Makefile and the rename of ``generate_docs.py`` to
1806
``tools/generate_docs.py`` to allow everything to be built on Windows.
1807
(John Arbash Meinel, #399356)
1809
* ``bzr serve`` once again applies a ``ChrootServer`` to the given
1810
directory before serving it. (Andrew Bennetts, #400535)
1813
Compatibility Breaks
1814
********************
1816
* ``bzr register-branch`` from the Launchpad plugin now refers to "project"
1817
instead of "product" which is the correct Launchpad terminology. The
1818
--product option is deprecated and users should switch to using --project.
1819
(Neil Martinsen-Burrell, #238764)
1825
* ``bzr push`` now aborts if uncommitted changes (including pending merges)
1826
are present in the working tree (if one is present) and no revision is
1827
specified. The configuration option ``push_strict`` can be used to set the
1828
default for this behavior. (Vincent Ladeuil, #284038, #322808, #65286)
1830
* ``bzr revno`` and ``bzr revision-info`` now have a ``--tree`` option to
1831
show revision info for the working tree instead of the branch.
1832
(Matthew Fuller, John Arbash Meinel)
1834
* ``bzr send`` now aborts if uncommitted changes (including pending merges)
1835
are present in the working tree and no revision is specified. The
1836
configuration option ``send_strict`` can be used to set the default for this
1838
(Vincent Ladeuil, #206577)
1840
* ``bzr switch --create-branch/-b`` can now be used to create and switch
1841
to a new branch. Supplying a name without a ``/`` will create the branch
1842
relative to the existing branch. (similar to how ``bzr switch name``
1843
works when the branch already exists.) (John Arbash Meinel)
1849
* Accept uppercase "Y/N" to prompts such as from break lock.
1850
(#335182, Tim Powell, Martin Pool)
1852
* Add documentation about diverged branches and how to fix them in the
1853
centralized workflow with local commits. Mention ``bzr help
1854
diverged-branches`` when a push fails because the branches have
1855
diverged. (Neil Martinsen-Burrell, #269477)
1857
* Annotate would sometimes 'latch on' to trivial lines, causing important
1858
lines to be incorrectly annotated. (John Arbash Meinel, #387952)
1860
* Automatic format upgrades triggered by default stacking policies on a
1861
1.16rc1 (or later) smart server work again.
1862
(Andrew Bennetts, #388675)
1864
* Avoid progress bar artifacts being left behind on the screen.
1865
(Martin Pool, #321935)
1867
* Better message in ``bzr split`` error suggesting a rich root format.
1868
(Neil Martinsen-Burrell, #220067)
1870
* ``Branch.set_append_revisions_only`` now works with branches on a smart
1871
server. (Andrew Bennetts, #365865)
1873
* By default, ``bzr branch`` will fail if the target directory exists, but
1874
does not already have a control directory. The flag ``--use-existing-dir``
1875
will allow operation to proceed. (Alexander Belchenko, #307554)
1877
* ``bzr ls DIR --from-root`` now shows only things in DIR, not everything.
1880
* Fetch between repositories does not error if they have inconsistent data
1881
that should be irrelevant to the fetch operation. (Aaron Bentley)
1883
* Fix ``AttributeError`` exception when reconfiguring lightweight checkout
1884
of a remote repository.
1885
(Jelmer Vernooij, #332194)
1887
* Fix bug in decoding v3 smart server messages when receiving multiple
1888
lots of excess bytes after an end-of-message.
1891
* Force deletion of readonly files during merge, update and other tree
1893
(Craig Hewetson, Martin Pool, #218206)
1895
* Force socket shutdown in threaded http test servers to avoid client hangs
1896
(pycurl). (Vincent Ladeuil, #383920).
1898
* ``LRUCache`` will maintain the linked list pointers even if a nodes
1899
cleanup function raises an exception. (John Arbash Meinel, #396838)
1901
* Progress bars are now suppressed again when the environment variable
1902
``BZR_PROGRESS_BAR`` is set to ``none``.
1903
(Martin Pool, #339385)
1905
* Reduced memory consumption during ``bzr commit`` of large files. For
1906
pre 2a formats, should be down to ~3x the size of a file.
1907
For ``--2a`` format repositories, it is down to the size of the file
1908
content plus the size of the compressed text. Related to bug #109114.
1909
(John Arbash Meinel)
1911
* Set hidden attribute on .bzr directory below unicode path should never
1912
fail with error. The operation should succeed even if bzr unable to set
1913
the attribute. (Alexander Belchenko, related to bug #335362).
1915
* Stacking will no longer accept requests to stack on the same
1916
branch/repository. Existing branches that incorrectly reference the same
1917
repository in a stacking configuration will now raise
1918
UnstackableLocationError when the branch is opened. This can be fixed by
1919
removing the stacking location inside ``.bzr/branch``.
1920
(Robert Collins, #376243)
1922
* The ``log+`` decorator, useful in debugging or profiling, could cause
1923
"AttributeError: 'list' object has no attribute 'next'". This is now
1924
fixed. The log decorator no longer shows the elapsed time or transfer
1925
rate because they're available in the log prefixes and the transport
1926
activity display respectively.
1927
(Martin Pool, #340347)
1929
* Unshelve works correctly when multiple zero-length files are present on
1930
the shelf. (Aaron Bentley, #363444)
1932
* Progress bars no longer show the network transport scheme or direction.
1935
* launchpad-login now respects the 'verbose' option.
1936
(Jonathan Lange, #217031)
1942
* ``bzrlib.user_encoding`` is now officially deprecated. It is not
1943
possible to write a deprecation wrapper, but the variable will be
1944
removed in the near future. Use ``bzrlib.osutils.get_user_encoding()``
1945
instead. (Alexander Belchenko)
1947
* Command lookup has had hooks added. ``bzrlib.Command.hooks`` has
1948
three new hook points: ``get_command``, ``get_missing_command`` and
1949
``list_commands``, which allow just-in-time command name provision
1950
rather than requiring all command names be known a-priori.
1953
* ``get_app_path`` from win32utils.py now supports REG_EXPAND_SZ data type
1954
and can read path to wordpad.exe. (Alexander Belchenko, #392046)
1956
* ``graph.KnownGraph`` has been added. This is a class that can give
1957
answers to ``heads()`` very quickly. However, it has the assumption that
1958
the whole graph has already been loaded. This is true during
1959
``annotate`` so it is used there with good success (as much as 2x faster
1960
for files with long ancestry and 'cherrypicked' changes.)
1961
(John Arbash Meinel, Vincent Ladeuil)
1963
* OS file locks are now taken out using ``CreateFile`` rather than
1964
``LockFileEx`` on Windows. The locking remains exclusive with
1965
``LockFileEx`` but now it also works on older versions of Windows (such
1966
as Win98). (Martin <gzlist>)
1968
* pack <=> pack fetching is now done via a ``PackStreamSource`` rather
1969
than the ``Packer`` code. The user visible change is that we now
1970
properly fetch the minimum number of texts for non-smart fetching.
1971
(John Arbash Meinel)
1974
* ``VersionedFiles._add_text`` is a new api that lets us insert text into
1975
the repository as a single string, rather than a list of lines. This can
1976
improve memory overhead and performance of committing large files.
1977
(Currently a private api, used only by commit). (John Arbash Meinel)
1983
* ``bzr annotate`` can now be significantly faster. The time for
1984
``bzr annotate NEWS`` is down to 7s from 22s in 1.16. Files with long
1985
histories and lots of 'duplicate insertions' will be improved more than
1986
others. (John Arbash Meinel, Vincent Ladeuil)
1988
* ``bzr ls`` is now faster. On OpenOffice.org, the time drops from 2.4
1989
to 1.1 seconds. The improvement for ``bzr ls -r-1`` is more
1990
substantial dropping from 54.3 to 1.1 seconds. (Ian Clatworthy)
1992
* Improve "Path(s) are not versioned" error reporting for some commands.
1995
* Initial commit performance in ``--2a`` repositories has been improved by
1996
making it cheaper to build the initial CHKMap. (John Arbash Meinel)
1998
* Resolving a revno to a revision id on a branch accessed via ``bzr://``
1999
or ``bzr+ssh://`` is now much faster and involves no VFS operations.
2000
This speeds up commands like ``bzr pull -r 123``. (Andrew Bennetts)
2002
* ``revision-info`` now properly aligns the revnos/revids in the output
2003
and doesn't traceback when given revisions not in the current branch.
2004
Performance is also significantly improved when requesting multiple revs
2005
at once. (Matthew Fuller, John Arbash Meinel)
2007
* Tildes are no longer escaped by Transports. (Andy Kilner)
2013
* Avoid bad text wrapping in generated documentation. Slightly better
2014
formatting in the user reference.
2015
(Martin Pool, #249908)
2017
* Minor clarifications to the help for End-Of-Line conversions.
2023
* Removed overspecific error class ``InvalidProgressBarType``.
2026
* The method ``ProgressView._show_transport_activity`` is now
2027
``show_transport_activity`` because it's part of the contract between
2028
this class and the UI. (Martin Pool)
2034
:Released: 2009-06-26
2036
End user testing of the 2a format revealed two serious bugs. The first,
2037
#365615, caused bzr to raise AbsentContentFactory errors when autopacking.
2038
This meant that commits or pushes to 2a-format repositories failed
2041
The second bug, #390563, caused the smart server to raise AbsentContentFactory
2042
when streaming 2a stacked 2a-format branches. This particularly affected
2043
branches stored on Launchpad in the 2a format.
2045
Both of these bugs cause command failures only, neither of them cause data
2046
corruption or data loss. And, of course, both of these bugs are now fixed.
2051
* We now properly request a more minimal set of file texts when fetching
2052
multiple revisions. (Robert Collins, John Arbash Meinel, #390563)
2054
* Repositories using CHK pages (which includes the new 2a format) will no
2055
longer error during commit or push operations when an autopack operation
2056
is triggered. (Robert Collins, #365615)
2058
* ``chk_map.iter_interesting_nodes`` now properly uses the *intersection*
2059
of referenced nodes rather than the *union* to determine what
2060
uninteresting pages we still need to look at. Prior to this,
2061
incrementally pushing to stacked branch would push the minimal data, but
2062
fetching everything would request extra texts. There are some unhandled
2063
cases wrt trees of different depths, but this fixes the common cases.
2064
(Robert Collins, John Arbash Meinel, #390563)
2066
* ``GroupCompress`` repositories now take advantage of the pack hints
2067
parameter to permit cross-format fetching to incrementally pack the
2068
converted data. (Robert Collins)
2070
* ``Repository.commit_write_group`` now returns opaque data about what
2071
was committed, for passing to the ``Repository.pack``. Repositories
2072
without atomic commits will still return None. (Robert Collins)
2074
* ``Repository.pack`` now takes an optional ``hint`` parameter
2075
which will support doing partial packs for repositories that can do
2076
that. (Robert Collins)
2078
* RepositoryFormat has a new attribute 'pack_compresses' which is True
2079
when doing a pack operation changes the compression of content in the
2080
repository. (Robert Collins)
2082
* ``StreamSink`` and ``InterDifferingSerialiser`` will call
2083
``Repository.pack`` with the hint returned by
2084
``Repository.commit_write_group`` if the formats were different and the
2085
repository can increase compression by doing a pack operation.
2086
(Robert Collins, #376748)
2091
:Codename: yesterday-in-california
2092
:1.16rc1: 2009-06-11
2095
This version of Bazaar contains the beta release of the new ``2a`` repository
2096
format, suitable for testing by fearless, advanced users. This format or an
2097
updated version of it will become the default format in Bazaar 2.0. Please
2098
read the NEWS entry before even thinking about upgrading to the new format.
2100
Also included are speedups for many operations on huge projects, a bug fix for
2101
pushing stacked new stacked branches to smart servers and the usual bevy of
2102
bug fixes and improvements.
2105
Changes from 1.16rc1 to 1.16final
2106
*********************************
2108
* Fix the nested tree flag check so that upgrade from development formats to
2109
2a can work correctly.
2110
(Jelmer Vernooij, #388727)
2112
* Automatic format upgrades triggered by default stacking policies on a
2113
1.16rc1 (or later) smart server work again.
2114
(Andrew Bennetts, #388675)
2117
Compatibility Breaks
2118
********************
2120
* Display prompt on stderr (instead of stdout) when querying users so
2121
that the output of commands can be safely redirected.
2122
(Vincent Ladeuil, #376582)
2128
* A new repository format ``2a`` has been added. This is a beta release
2129
of the brisbane-core (aka group-compress) project. This format now
2130
suitable for wider testing by advanced users willing to deal with some
2131
bugs. We would appreciate test reports, either positive or negative.
2132
Format 2a is substantially smaller and faster for many operations on
2133
many trees. This format or an updated version will become the default
2136
This is a rich-root format, so this repository format can be used with
2137
bzr-svn. Bazaar branches in previous non-rich-root formats can be
2138
converted (including by merge, push and pull) to format 2a, but not vice
2139
versa. We recommend upgrading previous development formats to 2a.
2141
Upgrading to this format can take considerable time because it expands
2142
and more concisely repacks the full history.
2144
If you use stacked branches, you must upgrade the stacked branches
2145
before the stacked-on branches. (See <https://bugs.launchpad.net/bugs/374735>)
2147
* ``--development7-rich-root`` is a new dev format, similar to ``--dev6``
2148
but using a Revision serializer using bencode rather than XML.
2149
(Jelmer Vernooij, John Arbash Meinel)
2151
* mail_client=claws now supports --body (and message body hooks). Also uses
2152
configured from address. (Barry Warsaw)
2158
* ``--development6-rich-root`` can now stack. (Modulo some smart-server
2159
bugs with stacking and non default formats.)
2160
(John Arbash Meinel, #373455)
2162
* ``--development6-rich-root`` delays generating a delta index for the
2163
first object inserted into a group. This has a beneficial impact on
2164
``bzr commit`` since each committed texts goes to its own group. For
2165
committing a 90MB file, it drops peak memory by about 200MB, and speeds
2166
up commit from 7s => 4s. (John Arbash Meinel)
2168
* Numerous operations are now faster for huge projects, i.e. those
2169
with a large number of files and/or a large number of revisions,
2170
particularly when the latest development format is used. These
2171
operations (and improvements on OpenOffice.org) include:
2173
* branch in a shared repository (2X faster)
2174
* branch --no-tree (100X faster)
2180
* Pyrex version of ``bencode`` support. This provides optimized support
2181
for both encoding and decoding, and is now found at ``bzrlib.bencode``.
2182
``bzrlib.utils.bencode`` is now deprecated.
2183
(Alexander Belchenko, Jelmer Vernooij, John Arbash Meinel)
2189
* Bazaar can now pass attachment files to the mutt email client.
2190
(Edwin Grubbs, #384158)
2192
* Better message in ``bzr add`` output suggesting using ``bzr ignored`` to
2193
see which files can also be added. (Jason Spashett, #76616)
2195
* ``bzr pull -r 123`` from a stacked branch on a smart server no longer fails.
2196
Also, the ``Branch.revision_history()`` API now works in the same
2197
situation. (Andrew Bennetts, #380314)
2199
* ``bzr serve`` on Windows no longer displays a traceback simply because a
2200
TCP client disconnected. (Andrew Bennetts)
2202
* Clarify the rules for locking and fallback repositories. Fix bugs in how
2203
``RemoteRepository`` was handling fallbacks along with the
2204
``_real_repository``. (Andrew Bennetts, John Arbash Meinel, #375496)
2206
* Fix a small bug with fetching revisions w/ ghosts into a new stacked
2207
branch. Not often triggered, because it required ghosts to be part of
2208
the fetched revisions, not in the stacked-on ancestry.
2209
(John Arbash Meinel)
2211
* Fix status and commit to work with content filtered trees, addressing
2212
numerous bad bugs with line-ending support. (Ian Clatworthy, #362030)
2214
* Fix problem of "directory not empty" when contending for a lock over
2215
sftp. (Martin Pool, #340352)
2217
* Fix rule handling so that eol is optional, not mandatory.
2218
(Ian Clatworthy, #379370)
2220
* Pushing a new stacked branch to a 1.15 smart server was broken due to a
2221
bug in the ``BzrDirFormat.initialize_ex`` smart verb. This is fixed in
2222
1.16, but required changes to the network protocol, so the
2223
``BzrDirFormat.initialize_ex`` verb has been removed and replaced with a
2224
corrected ``BzrDirFormat.initialize_ex_1.16`` verb. 1.15 clients will
2225
still work with a 1.16 server as they will fallback to slower (and
2227
(Jonathan Lange, Robert Collins, Andrew Bennetts, #385132)
2229
* Reconcile can now deal with text revisions that originated in revisions
2230
that are ghosts. (Jelmer Vernooij, #336749)
2232
* Support cloning of branches with ghosts in the left hand side history.
2233
(Jelmer Vernooij, #248540)
2235
* The ''bzr diff'' now catches OSError from osutils.rmtree and logs a
2236
helpful message to the trace file, unless the temp directory really was
2237
removed (which would be very strange). Since the diff operation has
2238
succeeded from the user's perspective, no output is written to stderr
2239
or stdout. (Maritza Mendez, #363837)
2241
* Translate errors received from a smart server in response to a
2242
``BzrDirFormat.initialize`` or ``BzrDirFormat.initialize_ex`` request.
2243
This was causing tracebacks even for mundane errors like
2244
``PermissionDenied``. (Andrew Bennetts, #381329)
2249
* Added directory structure and started translation of docs in Russian.
2250
(Alexey Shtokalo, Alexander Iljin, Alexander Belchenko, Dmitry Vasiliev,
2251
Volodymyr Kotulskyi)
2256
* Added osutils.parent_directories(). (Ian Clatworthy)
2258
* ``bzrlib.progress.ProgressBar``, ``ChildProgress``, ``DotsProgressBar``,
2259
``TTYProgressBar`` and ``child_progress`` are now deprecated; use
2260
``ui_factory.nested_progress_bar`` instead. (Martin Pool)
2262
* ``graph.StackedParentsProvider`` is now a public API, replacing
2263
``graph._StackedParentsProvider``. The api is now considered stable and ready
2264
for external users. (Gary van der Merwe)
2266
* ``bzrlib.user_encoding`` is deprecated in favor of
2267
``get_user_encoding``. (Alexander Belchenko)
2269
* TreeTransformBase no longer assumes that limbo is provided via disk.
2270
DiskTreeTransform now provides disk functionality. (Aaron Bentley)
2275
* Remove ``weave.py`` script for accessing internals of old weave-format
2276
repositories. (Martin Pool)
2281
* ``make check`` no longer repeats the test run in ``LANG=C``.
2282
(Martin Pool, #386180)
2284
* The number of cores is now correctly detected on OSX. (John Szakmeister)
2286
* The number of cores is also detected on Solaris and win32. (Vincent Ladeuil)
2288
* The number of cores is also detected on FreeBSD. (Matthew Fuller)
2293
:1.15rc1: 2009-05-16
2297
The smart server will no longer raise 'NoSuchRevision' when streaming content
2298
with a size mismatch in a reconstructed graph search. New command ``bzr
2299
dpush``. Plugins can now define their own annotation tie-breaker when two
2300
revisions introduce the exact same line.
2302
Changes from 1.15.1 to 1.15.2
2303
*****************************
2305
* Use zdll on Windows to build ``_chk_map_pyx`` extension.
2306
(Alexander Belchenko)
2308
Changes from 1.15final to 1.15.1
2309
*********************************
2311
* Translate errors received from a smart server in response to a
2312
``BzrDirFormat.initialize`` or ``BzrDirFormat.initialize_ex`` request.
2313
This was causing tracebacks even for mundane errors like
2314
``PermissionDenied``. (Andrew Bennetts, #381329)
2316
Changes from 1.15rc1 to 1.15final
2317
*********************************
2321
Compatibility Breaks
2322
********************
2324
* ``bzr ls`` is no longer recursive by default. To recurse, use the
2325
new ``-R`` option. The old ``--non-recursive`` option has been removed.
2326
If you alias ``ls`` to ``ls -R``, you can disable recursion using
2327
``--no-recursive`` instead. (Ian Clatworthy)
2332
* New command ``bzr dpush`` that can push changes to foreign
2333
branches (svn, git) without setting custom bzr-specific metadata.
2336
* The new development format ``--development6-rich-root`` now supports
2337
stacking. We chose not to use a new format marker, since old clients
2338
will just fail to open stacked branches, the same as if we used a new
2339
format flag. (John Arbash Meinel, #373455)
2341
* Plugins can now define their own annotation tie-breaker when two revisions
2342
introduce the exact same line. See ``bzrlib.annotate._break_annotation_tie``
2343
Be aware though that this is temporary, private (as indicated by the leading
2344
'_') and a first step to address the problem. (Vincent Ladeuil, #348459)
2346
* New command ``bzr dpush`` that can push changes to foreign
2347
branches (svn, git) without setting custom bzr-specific metadata.
2350
* ``bzr send`` will now check the ``child_submit_format`` setting in
2351
the submit branch to determine what format to use, if none was
2352
specified on the command-line. (Jelmer Vernooij)
2357
* -Dhpss output now includes the number of VFS calls made to the remote
2358
server. (Jonathan Lange)
2360
* ``--coverage`` works for code running in threads too.
2361
(Andrew Bennets, Vincent Ladeuil)
2363
* ``bzr pull`` now has a ``--local`` option to only make changes to the
2364
local branch, and not the bound master branch.
2365
(Gary van der Merwe, #194716)
2367
* ``bzr rm *`` is now as fast as ``bzr rm * --keep``. (Johan Walles, #180116)
2372
* Adding now works properly when path contains a symbolic link.
2373
(Geoff Bache, #183831)
2375
* An error is now raised for unknown eol values. (Brian de Alwis, #358199)
2377
* ``bzr merge --weave`` will now generate a conflict if one side deletes a
2378
line, and the other side modifies the line. (John Arbash Meinel, #328171)
2380
* ``bzr reconfigure --standalone`` no longer raises IncompatibleRepositories.
2381
(Martin von Gagern, #248932)
2383
* ``bzr send`` works to send emails again using MAPI.
2384
(Neil Martinsen-Burrell, #346998)
2386
* Check for missing parent inventories in StreamSink. This prevents
2387
incomplete stacked branches being created by 1.13 bzr:// and
2388
bzr+ssh:// clients (which have bug #354036). Instead, the server now
2389
causes those clients to send the missing records. (Andrew Bennetts)
2391
* Correctly handle http servers proposing multiple authentication schemes.
2392
(Vincent Ladeuil, #366107)
2394
* End-Of-Line content filters are now loaded correctly.
2395
(Ian Clatworthy, Brian de Alwis, #355280)
2397
* Fix a bug in the pure-python ``GroupCompress`` code when handling copies
2398
longer than 64KiB. (John Arbash Meinel, #364900)
2400
* Fix TypeError in running ``bzr break-lock`` on some URLs.
2401
(Alexander Belchenko, Martin Pool, #365891)
2403
* Non-recursive ``bzr ls`` now works properly when a path is specified.
2404
(Jelmer Vernooij, #357863)
2406
* ssh usernames (defined in ~/.ssh/config) are honoured for bzr+ssh connections.
2407
(Vincent Ladeuil, #367726)
2409
* Several bugs related to unicode symlinks have been fixed and the test suite
2410
enhanced to better catch regressions for them. (Vincent Ladeuil)
2412
* The smart server will no longer raise 'NoSuchRevision' when streaming
2413
content with a size mismatch in a reconstructed graph search: it assumes
2414
that the client will make sure it is happy with what it got, and this
2415
sort of mismatch is normal for stacked environments.
2416
bzr 1.13.0/1 will stream from unstacked branches only - in that case not
2417
getting all the content expected would be a bug. However the graph
2418
search is how we figured out what we wanted, so a mismatch is both odd
2419
and unrecoverable without starting over, and starting over will end up
2420
with the same data as if we just permitted the mismatch. If data is
2421
gc'd, doing a new search will find only the truncated data, so sending
2422
only the truncated data seems reasonable. bzr versions newer than this
2423
will stream from stacked branches and check the stream to find missing
2424
content in the stacked-on branch, and thus will handle the situation
2425
implicitly. (Robert Collins, #360791)
2427
* Upgrading to, or fetching into a 'rich-root' format will now correctly
2428
set the root data the same way that reconcile does.
2429
(Robert Collins, #368921)
2431
* Using unicode Windows API to obtain command-line arguments.
2432
(Alexander Belchenko, #375934)
2440
* ``InterPackRepo.fetch`` and ``RepoFetcher`` now raise ``NoSuchRevision``
2441
instead of ``InstallFailed`` when they detect a missing revision.
2442
``InstallFailed`` itself has been deleted. (Jonathan Lange)
2444
* Not passing arguments to ``bzrlib.commands.main()`` will now grab the
2445
arguments from ``osutils.get_unicode_argv()`` which has proper support
2446
for unicode arguments on windows. Further, the supplied arguments are now
2447
required to be unicode strings, rather than user_encoded strings.
2448
(Alexander Belchenko)
2453
* ``bzrlib.branch.Branch.set_parent`` is now present on the base branch
2454
class and will call ``_set_parent_location`` after doing unicode
2455
encoding. (Robert Collins)
2457
* ``bzrlib.remote.RemoteBranch._set_parent_location`` will use a new verb
2458
``Branch.set_parent_location`` removing further VFS operations.
2461
* ``bzrlib.bzrdir.BzrDir._get_config`` now returns a ``TransportConfig``
2462
or similar when the dir supports configuration settings. The base class
2463
defaults to None. There is a matching new server verb
2464
``BzrDir.get-config_file`` to reduce roundtrips for getting BzrDir
2465
configuration. (Robert Collins)
2467
* ``bzrlib.tests.ExtendedTestResult`` has new methods ``startTests``
2468
called before the first test is started, ``done`` called after the last
2469
test completes, and a new parameter ``strict``. (Robert Collins)
2471
* ``-Dhpss`` when passed to bzr will cause a backtrace to be printed when
2472
VFS operations are started on a smart server repository. This should not
2473
occur on regular push and pull operations, and is a key indicator for
2474
performance regressions. (Robert Collins)
2476
* ``-Dlock`` when passed to the selftest (e.g. ``bzr -Dlock selftest``) will
2477
cause mismatched physical locks to cause test errors rather than just
2478
reporting to the screen. (Robert Collins)
2480
* -Dprogress will cause pdb to start up if a progress view jumps
2481
backwards. (Robert Collins)
2483
* Fallback ``CredentialStore`` instances registered with ``fallback=True``
2484
are now be able to provide credentials if obtaining credentials
2485
via ~/.bazaar/authentication.conf fails. (Jelmer Vernooij,
2486
Vincent Ladeuil, #321918)
2488
* New hook ``Lock.lock_broken`` which runs when a lock is
2489
broken. This is mainly for testing that lock/unlock are
2490
balanced in tests. (Vincent Ladeuil)
2492
* New MergeDirective hook 'merge_request_body' allows hooks to supply or
2493
alter a body for the message produced by ``bzr send``.
2495
* New smart server verb ``BzrDir.initialize_ex`` which implements a
2496
refactoring to the core of clone allowing less round trips on new
2497
branches. (Robert Collins)
2499
* New method ``Tags.rename_revisions`` that can rename revision ids tags
2500
are pointing at. (Jelmer Vernooij)
2502
* Updated the bundled ``ConfigObj`` library to 4.6.0 (Matt Nordhoff)
2507
* ``bzr selftest`` will now fail if lock/unlock are not correctly balanced in
2508
tests. Using ``-Dlock`` will turn the related failures into warnings.
2509
(Vincent Ladeuil, Robert Collins)
2513
:Codename: brisbane-core
2514
:1.14rc1: 2009-04-06
2515
:1.14rc2: 2009-04-19
2519
New formats 1.14 and 1.14-rich-root supporting End-Of-Line (EOL) conversions,
2520
keyword templating (via the bzr-keywords plugin) and generic content filtering.
2521
End-of-line conversion is now supported for formats supporting content
2524
Changes from 1.14final to 1.14.1
2525
********************************
2527
* Change api_minimum_version back to api_minimum_version = (1, 13, 0)
2529
Changes from 1.14rc2 to 1.14final
2530
*********************************
2532
* Fix a bug in the pure-python ``GroupCompress`` code when handling copies
2533
longer than 64KiB. (John Arbash Meinel, #364900)
2535
Changes from 1.14rc1 to 1.14rc2
2536
*******************************
2538
* Fix for bug 358037 Revision not in
2539
bzrlib.groupcompress.GroupCompressVersionedFiles (Brian de Alwis,
2542
* Fix for bug 354036 ErrorFromSmartServer - AbsentContentFactory object has no
2543
attribute 'get_bytes_as' exception while pulling from Launchpad
2544
(Jean-Francois Roy, Andrew Bennetts, Robert Collins)
2546
* Fix for bug 355280 eol content filters are never loaded and thus never
2547
applied (Brian de Alwis, Ian Clatworthy)
2549
* bzr.dev -r4280 Change _fetch_uses_deltas = False for CHK repos until we can
2550
write a better fix. (John Arbash Meinel, Robert Collins)
2552
* Fix for bug 361574 uncommit recommends undefined --levels and -n options
2553
(Marius Kruger, Ian Clatworthy)
2555
* bzr.dev r4289 as cherrypicked at lp:~spiv/bzr/stacking-cherrypick-1.14
2556
(Andrew Bennetts, Robert Collins)
2558
Compatibility Breaks
2559
********************
2561
* A previously disabled code path to accelerate getting configuration
2562
settings from a smart server has been reinstated. We think this *may*
2563
cause a incompatibility with servers older than bzr 0.15. We intend
2564
to issue a point release to address this if it turns out to be a
2565
problem. (Robert Collins, Andrew Bennetts)
15
2567
* bzr no longer autodetects nested trees as 'tree-references'. They
16
2568
must now be explicitly added tree references. At the commandline, use
17
2569
join --reference instead of add. (Aaron Bentley)
2571
* The ``--long`` log format (the default) no longer shows merged
2572
revisions implicitly, making it consistent with the ``short`` and
2573
``line`` log formats. To see merged revisions for just a given
2574
revision, use ``bzr log -n0 -rX``. To see every merged revision,
2575
use ``bzr log -n0``. (Ian Clatworthy)
22
* New ``guess-renames`` command recognizes renames after they occur.
2580
* New formats ``1.14`` and ``1.14-rich-root`` supporting End-Of-Line
2581
(EOL) conversions, keyword templating (via the bzr-keywords plugin)
2582
and generic content filtering. These formats replace the experimental
2583
``development-wt5`` and ``development-wt5-rich-root`` formats
2584
respectively, but have support for filtered views disabled.
2587
* New ``mv --auto`` option recognizes renames after they occur.
2590
* ``bzr`` can now get passwords from stdin without requiring a controlling
2591
terminal (i.e. by redirecting stdin). (Vincent Ladeuil)
25
2593
* ``bzr log`` now supports filtering of multiple files and directories
26
2594
and will show changes that touch any of them. Furthermore,
27
2595
directory filtering now shows the changes to any children of that