~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to NEWS

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-11 04:02:41 UTC
  • mfrom: (5017.2.2 tariff)
  • Revision ID: pqm@pqm.ubuntu.com-20100211040241-w6n021dz0uus341n
(mbp) add import-tariff tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
.. contents:: List of Releases
6
6
   :depth: 1
7
7
 
8
 
bzr 2.3b1
9
 
#########
 
8
bzr 2.2.0b1 (not released yet)
 
9
##############################
10
10
 
11
11
:Codename: ???
12
 
:2.3b1: NOT RELEASED YET
13
 
 
14
 
Compatibility Breaks
15
 
********************
16
 
 
17
 
* BzrError subclasses no longer support the name "message" to be used
18
 
  as an argument for __init__ or in _fmt format specification as this
19
 
  breaks in some Python versions. errors.LockError.__init__ argument
20
 
  is now named "msg" instead of earlier "message".
21
 
  (Parth Malwankar, #603461)
22
 
 
23
 
* `decode` parameter to get() method in FtpTransport and GioTransport classes
24
 
  is deprecated. (Alexander Belchenko)
25
 
 
26
 
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
27
 
  longer raised.
28
 
  (Martin Pool)
29
 
 
30
 
* `tree_files` and `internal_tree_files` are now deprecated in favor of
31
 
  `WorkingTree.open_containing_paths`.
32
 
  (Martin Pool)
33
 
 
34
 
* `ControlDirFormat` and  `ControlDir` have been split out of `BzrDirFormat`
35
 
  and `BzrDir`, respectively. `ControlDirFormat`
36
 
  and `ControlDir` should be used as the base classes for new non-.bzr
37
 
  implementations.
38
 
 
39
 
  `BzrDirFormat.register_control_format` has been renamed to
40
 
  `ControlDirFormat.register_format`.
41
 
 
42
 
  `BzrDirFormat.register_server_control_format` has been removed.
43
 
 
44
 
  Probing for control directories is now done by separate objects derived
45
 
  from `bzrlib.controldir.Prober` and registered using
46
 
  `bzrlib.controldir.ControlDirFormat.register_prober` or
47
 
  `bzrlib.controldir.ControlDirFormat.register_server_prober`.
48
 
  `BzrDirFormat.probe_transport` has been moved onto `Prober`.
49
 
 
50
 
  `BzrDirFormat.register_format` has been renamed to 
51
 
  `BzrProber.register_bzrdir_format`.
52
 
  (Jelmer Vernooij)
53
 
 
54
 
* The old ``bzr selftest --benchmark`` option has been removed.
55
 
  <https://launchpad.net/bzr-usertest> is an actively-maintained
56
 
  macrobenchmark suite.
57
 
  (Martin Pool)
58
 
 
59
 
New Features
60
 
************
61
 
 
62
 
* ``bzr break-lock --config [location]`` can now break config files
63
 
  locks. (Vincent Ladeuil, #525571)
64
 
 
65
 
* ``bzrlib.config.LockableConfig`` is a base class for config files that
66
 
  needs to be protected against multiple writers. All methods that
67
 
  change a configuration variable value must be decorated with
68
 
  @needs_write_lock (set_option() for example).
69
 
  (Vincent Ladeuil,  #525571)
70
 
 
71
 
* The ``lp:`` prefix will now use your known username (from
72
 
  ``bzr launchpad-login``) to expand ``~`` to your username.  For example:
73
 
  ``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
74
 
  push to ``lp:~user/project/branch``.  (John Arbash Meinel)
75
 
 
76
 
Bug Fixes
77
 
*********
78
 
 
79
 
* Allow using both --using and --diff-options. 
80
 
  (Matthäus G. Chajdas, #234708)
81
 
 
82
 
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
83
 
  previously-unversioned directory within the tree: the directory is
84
 
  marked versioned too.  
85
 
  (Martin Pool, #192859)
86
 
 
87
 
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
88
 
  ``InvalidPattern`` exception error message now shows faulting
89
 
  regular expression.
90
 
  (Parth Malwankar #300062)
91
 
 
92
 
* ``clean-tree`` issues a warning if it is unable to delete a file
93
 
  due to ``errno.EACCES`` instead of exiting with an error on Windows.
94
 
  (Parth Malwankar, #430785)
95
 
 
96
 
* CommitBuilder now uses the committer instead of _config.username to generate
97
 
  the revision-id.  (Aaron Bentley, #614404)
98
 
 
99
 
* Configuration files in ``${BZR_HOME}`` are now protected against
100
 
  concurrent writers by using a lock. (Vincent Ladeuil, #525571)
101
 
 
102
 
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
103
 
  Directory created' when mkdir succeeds.  (Martin Pool, #224373)
104
 
 
105
 
* Decrease peak memory during ``bzr send``. The old code was caching all
106
 
  text content and all inventory strings for all revisions before
107
 
  computing the diffs. Now we only cache as long as there is a child that
108
 
  will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
109
 
  256MB peak. (John Arbash Meinel, #614576)
110
 
 
111
 
* Don't print internal object name when print an invalid revision spec
112
 
  error.  (Neil Martinsen-Burrell, #598701)
113
 
 
114
 
* ``EPIPE`` can be raised during test server shutdown. This happened on
115
 
  gentoo only so far. (Vincent Ladeuil, #627277)
116
 
 
117
 
* Errors occurring during http(s) test server starts should now be
118
 
  handled cleanly. (Vincent Ladeuil, #392402)
119
 
 
120
 
* Fix ``AttributeError on parent.children`` when adding a file under a 
121
 
  directory that was a symlink in the previous commit.
122
 
  (Martin Pool, #192859)
123
 
 
124
 
* Fix spurious paramiko warning on hardy by ensuring that ``selftest``
125
 
  properly remove its warning filter. (Vincent Ladeuil, #625686)
126
 
 
127
 
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
128
 
  with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
129
 
 
130
 
* Most of the leaked threads during selftest are now fixed, allowing the
131
 
  full test suite to pass on gentoo.
132
 
  (Vincent Ladeuil, #392127)
133
 
 
134
 
* `PathNotChild` should not give a traceback.
135
 
  (Martin Pool, #98735)
136
 
 
137
 
* ``PQM`` will no longer ignore syntax errors in submissions.
138
 
  (Vincent Ladeuil, #626667)
139
 
 
140
 
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
141
 
  which can result in "missing referenced chk root keys" errors when
142
 
  fetching from repositories with affected revisions.
143
 
  (Andrew Bennetts, #522637)
144
 
 
145
 
* ``Transport.stat`` on a symlink, including a transport pointing directly
146
 
  to a symlink, now returns information about the symlink.
147
 
  (Martin Pool)
148
 
 
149
 
Improvements
150
 
************
151
 
 
152
 
* ``bzr remove`` now just backs up changed files instead of exiting,
153
 
  forcing you to choose to either keep or delete them. Bazaar will now delete
154
 
  the files if they can easily be recovered using revert, otherwise they
155
 
  will be backed up (adding an extention of the form .~#~).
156
 
  (Marius Kruger, #400554)
157
 
 
158
 
* ``bzr revert`` and ``bzr status`` are up to 15% faster on large trees
159
 
  with many changes by not repeatedly building a list of all file-ids.
160
 
  (Andrew Bennetts)
161
 
 
162
 
* Decrease memory consumption when many chk index pages are loaded. (Such
163
 
  as during ``bzr co`` or ``bzr ls -R`` of a large tree.) Often we need to
164
 
  read many chk pages because the individual chk map nodes will be spread
165
 
  randomly. Peak memory for 'bzr ls -R' on a large tree dropped from 396MB
166
 
  down to 247MB, expect even more significant savings on 64-bit platforms.
167
 
  (John Arbash Meinel)
168
 
 
169
 
* ``DirState`` internals use a little bit less memory. For bzr.dev it
170
 
  drops the memory from 1MB down to about 800kB. And replaces a few
171
 
  thousand tuples and sets with StaticTuple.  (John Arbash Meinel)
172
 
 
173
 
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
174
 
  have dropped from 68 bytes to 40, and directory entries from 120 bytes
175
 
  to 48).  (Andrew Bennetts)
176
 
 
177
 
* When building new working trees, default to reading from the repository
178
 
  rather than the source tree unless explicitly requested. (via
179
 
  ``--files-from`` and ``--hardlink`` for ``bzr branch`` and
180
 
  ``bzr checkout``. Generally, 2a format repositories extract
181
 
  content faster than seeking and reading content from another tree,
182
 
  especially in cold-cache situations. (John Arbash Meinel, #607298)
183
 
 
184
 
Documentation
185
 
*************
186
 
 
187
 
* Added a builder/writer sphinx extension that can generate texinfo files. The
188
 
  generated files are syntactically correct but the info navigation nodes
189
 
  needs more work. (Vincent Ladeuil, #219334)
190
 
 
191
 
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
192
 
  to make the tests conditional.
193
 
  (Vincent Ladeuil)
194
 
 
195
 
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
196
 
  the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
197
 
  (John Arbash Meinel, #617503)
198
 
 
199
 
API Changes
200
 
***********
201
 
 
202
 
* Configuration files should now use the ``from_string`` constructor rather
203
 
  than the ``file`` parameter of the ``_get_parser`` method. The later has
204
 
  been deprecated. ``from_string`` also accept a ``save=True`` parameter to
205
 
  have the configuration file immediately written to disk. 
206
 
  (Vincent Ladeuil)
207
 
 
208
 
* ``IniBaseConfig`` objects should now use the ``from_string`` constructor
209
 
  the rather than the ``file`` parameter of the ``_get_parser`` method. The
210
 
  later has been deprecated. (Vincent Ladeuil)
211
 
 
212
 
* InventoryEntry instances now raise AttributeError if you try to assign
213
 
  to attributes that are irrelevant to that kind of entry.  e.g. setting
214
 
  ``symlink_target`` on an InventoryFile will fail.  It is still okay to
215
 
  read those attributes on any kind of InventoryEntry.  The complete list
216
 
  of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
217
 
  ``text_size`` (only valid for kind == file); ``symlink_target`` (only
218
 
  valid for kind == link); and ``reference_revision`` (only valid for kind
219
 
  == tree-reference).  (Andrew Bennetts)
220
 
 
221
 
* InventoryEntry objects no longer have ``_put_in_tar`` or
222
 
  ``_put_on_disk`` methods.  (Andrew Bennetts)
223
 
 
224
 
* The ``get_filename`` parameter in the ``config.IniBaseConfig``
225
 
  constructor has been deprecated, use the ``file_name`` parameter instead.
226
 
  (Vincent Ladeuil)
227
 
 
228
 
Internals
229
 
*********
230
 
 
231
 
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
232
 
  (Andrew Bennetts)
233
 
 
234
 
Testing
235
 
*******
236
 
 
237
 
* HTTP test servers will leak less threads (and sockets) and will not hang on
238
 
  AIX anymore. (Vincent Ladeuil, #405745)
239
 
 
240
 
* The way ``bzr selftest --parallel`` generates N partitions of tests to
241
 
  run in parallel has changed.  Instead of splitting the list of tests at
242
 
  N-1 points, it distributes the tests one-by-one into the partitions in a
243
 
  round robin fashion.  This reduces the total time to run the tests in
244
 
  parallel because a series of slow tests in the test suite will be
245
 
  distributed evenly among the parallel test suites, rather than slowing
246
 
  down just one suite.  (Andrew Bennetts)
247
 
 
248
 
 
249
 
bzr 2.2.1
250
 
#########
251
 
 
252
 
:Codename: ??
253
 
:2.2.1: NOT RELEASED YET
254
 
 
255
 
Bug Fixes
256
 
*********
257
 
 
258
 
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
259
 
  previously-unversioned directory within the tree: the directory is
260
 
  marked versioned too.  
261
 
  (Martin Pool, #192859)
262
 
 
263
 
* CommitBuilder now uses the committer instead of _config.username to generate
264
 
  the revision-id.  (Aaron Bentley, #614404)
265
 
 
266
 
* Cope with Microsoft FTP server that returns reply '250 Directory
267
 
  created' when mkdir succeeds.  (Martin Pool, #224373)
268
 
 
269
 
* Fix ``AttributeError on parent.children`` when adding a file under a 
270
 
  directory that was a symlink in the previous commit.
271
 
  (Martin Pool, #192859)
272
 
 
273
 
Documentation
274
 
*************
275
 
 
276
 
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
277
 
  the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
278
 
  (John Arbash Meinel, #617503)
279
 
 
280
 
Internals
281
 
*********
282
 
 
283
 
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
284
 
  (Andrew Bennetts)
285
 
 
286
 
 
287
 
bzr 2.2
288
 
#######
289
 
 
290
 
:Codename: La Hulpe
291
 
:2.2: 2010-08-06
292
 
 
293
 
This release marks the start of another long-term-stable series. From
294
 
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
295
 
while 2.3 will become our new development series. The 2.0 and 2.1 series
296
 
will also continue to get bugfixes. (Currently 2.0 is planned to be
297
 
supported for another 6 months.)
298
 
 
299
 
This is primarily a bugfix and polish release over the 2.1 series, with
300
 
a large number of bugs fixed (>120), and some performance improvements.
301
 
 
302
 
There are some compatibility changes in this release.  For users of bzrlib
303
 
as a library, we now request that they call ``bzrlib.initialize`` and use
304
 
the returned context manager appropriately. For commandline users we no
305
 
longer guess user identity for ``bzr commit``, users must specify their
306
 
identity using ``bzr whoami`` (you don't need to specify your identity for
307
 
readonly operations).
308
 
 
309
 
Users are encouraged to upgrade from the other stable series.
310
 
 
311
 
Compatibility Breaks
312
 
********************
313
 
 
314
 
* BzrError subclasses no longer support the name "message" to be used
315
 
  as an argument for __init__ or in _fmt format specification as this
316
 
  breaks in some Python versions. errors.LockError.__init__ argument
317
 
  is now named "msg" instead of earlier "message".
318
 
  (Parth Malwankar, #603461)
319
 
 
320
 
* The old ``bzr selftest --benchmark`` option has been removed.
321
 
  <https://launchpad.net/bzr-usertest> is an actively-maintained
322
 
  macrobenchmark suite.
323
 
  (Martin Pool)
324
 
 
325
 
Bug Fixes
326
 
*********
327
 
 
328
 
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
329
 
  ``InvalidPattern`` exception error message now shows faulting
330
 
  regular expression.
331
 
  (Parth Malwankar #300062)
332
 
 
333
 
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
334
 
  way which should help avoid problems with concurrent writers.
335
 
  (Vincent Ladeuil, #525571)
336
 
 
337
 
* Don't traceback trying to unversion children files of an already
338
 
  unversioned directory.  (Vincent Ladeuil, #494221)
339
 
 
340
 
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
341
 
  with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
342
 
 
343
 
* Progress bars prefer to truncate the text message rather than the
344
 
  counters.  The spinner is shown between the network transfer indicator
345
 
  and the progress message.  Progress bars are correctly cleared off when 
346
 
  they finish.  (Martin Pool, #611127)
347
 
 
348
 
* Recursive binding for checkouts is now detected by bzr. A clear error
349
 
  message is shown to the user. (Parth Malwankar, #405192)
350
 
 
351
 
Improvements
352
 
************
353
 
 
354
 
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
355
 
  tree, and works with unrelated branches.  (Andrew Bennetts)
356
 
 
357
 
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
358
 
  GUI with out have a console open in the background.
359
 
  (Gary van der Merwe, #433781)
360
 
 
361
 
Documentation
362
 
*************
363
 
 
364
 
* ``bzr help patterns`` now explains case insensitive patterns and
365
 
  points to Python regular expression documentation.
366
 
  (Parth Malwankar, #594386)
367
 
 
368
 
API Changes
369
 
***********
370
 
 
371
 
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
372
 
 
373
 
Testing
374
 
*******
375
 
 
376
 
* Unit test added to ensure that "message" is not uses as a format variable
377
 
  name in BzrError subclasses as this conflicts with some Python versions.
378
 
  (Parth Malwankar, #603461)
379
 
 
380
 
bzr 2.2b4
381
 
#########
382
 
 
383
 
:Codename: Monkey Magic
384
 
:2.2b4: 2004-07-09
385
 
 
386
 
 
387
 
This fourth and final beta in the 2.2 series now stabilizes the internal
388
 
APIs. Plugin authors are recommended to ensure their releases are
389
 
compatible, so that 2.2rc1 can be a true release candidate, containing
390
 
stable and compatible plugin versions. 
391
 
 
392
 
For users of bzrlib as a library, one of the primary changes is to request
393
 
that they call ``bzrlib.initialize`` and use the returned context manager
394
 
appropriately.
395
 
 
396
 
Better interaction with ``bzr-loom`` to make sure branching from a loom
397
 
even over a smart server still yields a local loom. Not to mention lots of
398
 
bugfixes over 2.2b3.
399
 
 
400
 
Compatibility Breaks
401
 
********************
402
 
 
403
 
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
404
 
  the result of ``bzrlib.initialize``. This change was made when fixing
405
 
  the bad habit recent bzr versions have had of leaving progress bars 
406
 
  behind on the screen. That required calling another function before
407
 
  exiting the program, and it made sense to provide a full context
408
 
  manager at the same time. (Robert Collins)
409
 
 
410
 
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
411
 
  context manager in the Python 2.5 and above sense. The bzrlib base class
412
 
  is such a manager, but third party UI factories which do not derive from
413
 
  ``bzrlib.ui.UIFactory`` will be incompatible with the command line front
414
 
  end.
415
 
 
416
 
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
417
 
  and path "bar/baz", even if bzr does not recognize "foo" as a known URL
418
 
  scheme.  Previously these URLs would be treated as local paths.
419
 
  (Gordon Tyler)
420
 
 
421
 
 
422
 
New Features
423
 
************
424
 
 
425
 
* Support ``--directory`` option for a number of additional commands:
426
 
  conflicts, merge-directive, missing, resolve, shelve, switch,
427
 
  unshelve, whoami. (Martin von Gagern, #527878)
428
 
 
429
 
Bug Fixes
430
 
*********
431
 
 
432
 
* ``bzr branch`` to a new repository with a default stacking policy no
433
 
  longer transfers the full history unnecessarily.
434
 
  (Andrew Bennetts, #597942)
435
 
 
436
 
* ``bzr init`` does not recursively scan directory contents anymore
437
 
  leading to faster init for directories with existing content.
438
 
  (Martin [gz], Parth Malwankar, #501307)
439
 
 
440
 
* ``bzr log --exclude-common-ancestry`` is now taken into account for
441
 
  linear ancetries. (Vincent Ladeuil, #575631)
442
 
 
443
 
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
444
 
  rather than trying to fetch the data locally and failing because of a
445
 
  readonly error. (Martin von Gagern, #149270)
446
 
 
447
 
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
448
 
  or pull location in locations.conf or branch.conf.
449
 
  (Gordon Tyler, #534787)
450
 
 
451
 
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
452
 
  smart server. (Andrew Bennetts, #551525)
453
 
 
454
 
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
455
 
  (Marius Kruger, Robert Collins)
456
 
 
457
 
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
458
 
  (Marius Kruger, Robert Collins)
459
 
 
460
 
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
461
 
  proper error messages. (Vincent Ladeuil, #591215)
462
 
 
463
 
* Explicitly removing ``--profile-imports`` option from parsed command-line
464
 
  arguments on Windows, because bzr script does the same.
465
 
  (Alexander Belchenko, #588277)
466
 
 
467
 
* Fetching was slightly confused about the best code to use and was
468
 
  using a new code path for all branches, resulting in more lookups than
469
 
  necessary on old branches. (Robert Collins, #593515)
470
 
 
471
 
* Final fix for 'no help for command' issue. We now show a clean message
472
 
  when a command has no help, document how to set help more clearly, and
473
 
  test that all commands available to the test suite have help.
474
 
  (Robert Collins, #177500)
475
 
 
476
 
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
477
 
  ``InvalidPattern`` exception showing clear error message to the user.
478
 
  (Parth Malwankar #300062)
479
 
 
480
 
* Progress output is cleaned up when exiting.  (Aaron Bentley)
481
 
 
482
 
* Raise ValueError instead of a string exception.
483
 
  (John Arbash Meinel, #586926)
484
 
 
485
 
* Relative imports in plugins are now handled correctly when using
486
 
  BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
487
 
 
488
 
* ``ScriptRunner`` now strips off leading indentation from test scripts,
489
 
  which previously caused "SyntaxError: No command for line".
490
 
  (Martin Pool)
491
 
 
492
 
* Show unicode filenames in diff headers using terminal encoding. 
493
 
  (Alexander Belchenko, Bug #382699)
494
 
  NOTE for Windows users: If user need to save diff to file then user need to
495
 
  change encoding of the terminal to ANSI encoding with command ``chcp XXX``
496
 
  (e.g. ``chcp 1251`` for Russian Windows).
497
 
 
498
 
* URL displayed for use with ``break-lock`` when smart server sees lock
499
 
  contention are now valid. Default timeout for lock contention retry is
500
 
  now 30 seconds instead of 300 seconds.
501
 
  (Parth Malwankar, #250451)
502
 
 
503
 
* ``walkdirs`` now raises a useful message when the filenames are not using
504
 
  the filesystem encoding. (Eric Moritz, #488519)
505
 
 
506
 
* Enable debugging of bzr on windows with pdb and other tools. This was 
507
 
  broken because we call GetCommandLineW on windows. The fix adjusts the 
508
 
  command line we get to be the same length as sys.argv.
509
 
  (Jason Spashett, Alexander Belchenko, #587868)
510
 
 
511
 
Improvements
512
 
************
513
 
 
514
 
* Bazaar now reads data from SSH connections more efficiently on platforms
515
 
  that provide the ``socketpair`` function, and when using paramiko.
516
 
  (Andrew Bennetts, #590637)
517
 
 
518
 
* ``Branch.copy_content_into`` is now a convenience method dispatching to
519
 
  a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
520
 
  plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
521
 
  (Robert Collins, #201613)
522
 
 
523
 
* ``Branch`` formats can now be loaded lazily by registering a
524
 
  ``MetaDirBranchFormatFactory`` rather than an actual format. This will
525
 
  cause the named format class to be loaded only when an enumeration of
526
 
  formats is needed or when the format string for the object is
527
 
  encountered. (Robert Collins, Jelmer Vernooij)
528
 
 
529
 
* The encoding that bzr uses to output things other than file content can
530
 
  now be overridden via the output_encoding configuration option.
531
 
  (Martin Pool, #340394)
532
 
 
533
 
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
534
 
  do not cause modules to be loaded unnecessarily just because the plugin
535
 
  registers a merge hook.  This improves ``bzr rocks`` time by about 25%
536
 
  in a default installation (with just the core plugins).
537
 
  (Andrew Bennetts)
538
 
 
539
 
Documentation
540
 
*************
541
 
 
542
 
* Added ``regression`` tag to our tags list. (Robert Collins)
543
 
 
544
 
* Improved our release checklist to have a bit less churn and leave things
545
 
  ready-to-go for the next action (including other people doing
546
 
  development). (Robert Collins)
547
 
 
548
 
* Remove obsolete discussion of PQM in documentation about how to
549
 
  contribute to Bazaar.  (Martin Pool, #588444)
550
 
 
551
 
API Changes
552
 
***********
553
 
 
554
 
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
555
 
  an iterable of format pairs, rather than just a single pair, permitting
556
 
  InterBranch objects that work with multiple permutations to be
557
 
  comprehensively tested. (Robert Collins)
558
 
 
559
 
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
560
 
  profiles when concurrent profile requests are made. Instead the profile
561
 
  requests will be serialised. Reentrant requests will now deadlock.
562
 
  (Robert Collins)
563
 
 
564
 
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
565
 
  2007, has been deleted.  Use ``PatienceSequenceMatcher`` from
566
 
  ``bzrlib.patiencediff`` instead. (Andrew Bennetts)
567
 
 
568
 
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
569
 
  ``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
570
 
  case the default error message not suitable for the use case.
571
 
  (Parth Malwankar)
572
 
 
573
 
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated.  It provided only
574
 
  one method ``check_output``, and we now recommend checking command
575
 
  output using ``run_script``. (Martin Pool)
576
 
 
577
 
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
578
 
  that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
579
 
  Third-party implementations of ``SSHVendor`` may need to be updated
580
 
  accordingly.  Similarly, any code using ``SSHConnection`` directly will
581
 
  need to be updated.  (Andrew Bennetts)
582
 
 
583
 
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
584
 
  changed to take an ``SSHParams`` instance (replacing many individual
585
 
  values).  (Andrew Bennetts)
586
 
 
587
 
Internals
588
 
*********
589
 
 
590
 
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
591
 
  selection when explicitly requested; this avoids many duplicate calls
592
 
  being logged when helpers, wrappers and older code that manually calls
593
 
  it are executed it is now logged deliberately by the ui setup code.
594
 
  (Robert Collins)
595
 
 
596
 
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
597
 
 
598
 
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
599
 
  that ``sys.getsizeof`` and other memory analysis tools will report more
600
 
  accurate results. (Andrew Bennetts)
601
 
 
602
 
* The symbol_versioning module can now cleanup after itself -
603
 
  ``suppress_deprecation_warnings`` now returns a cleanup function.
604
 
  (Robert Collins)
605
 
 
606
 
Testing
607
 
*******
608
 
 
609
 
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
610
 
  to test.  (Martin Pool)
611
 
 
612
 
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
613
 
  (Vincent Ladeuil, #595587)
614
 
 
615
 
bzr 2.2b3
616
 
#########
617
 
 
618
 
:2.2b3: 2010-05-28
619
 
 
620
 
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
621
 
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
622
 
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
623
 
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
624
 
bash completion script and bzr will no longer guess at identity details -
625
 
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
626
 
For developers we have some API changes which may impact plugins as well
627
 
as a bunch of our regular improvements to internal clarity and test
628
 
support.
629
 
 
630
 
Compatibility Breaks
631
 
********************
632
 
 
633
 
* An API break has been made to the lock_write method of ``Branch`` and
634
 
  ``Repository`` objects; they now return ``branch.BranchWriteLockResult``
635
 
  and ``repository.RepositoryWriteLockResult`` objects. This makes
636
 
  changing the API in future easier and permits some cleaner calling code.
637
 
  The lock_read method has also changed from having no defined return
638
 
  value to returning ``LogicalLockResult`` objects.
639
 
  (Robert Collins)
640
 
 
641
 
* ``bzr`` does not try to guess the username as ``username@hostname``
642
 
  and requires it to be explictly set. This can be set using ``bzr
643
 
  whoami``. (Parth Malwankar, #549310)
644
 
 
645
 
* ``bzrlib.commands.Command`` will now raise ValueError during
646
 
  construction if there is no __doc__ set. (Note, this will be reverted in
647
 
  2.2b4) (Robert Collins)
648
 
 
649
 
* The source tree no longer contains a contrib/zsh/_bzr completion
650
 
  script. The new file contrib/zsh/README suggests alternatives.
651
 
  (Martin von Gagern, #560030)
652
 
 
653
 
New Features
654
 
************
655
 
 
656
 
* ``bzr commit`` accepts ``-p`` (for "patch") as a shorter name for
657
 
  ``--show-diff``.
658
 
  (Parth Malwankar, #571467)
659
 
  
660
 
* ``bzr ignore`` now supports a ``--default-rules`` option that displays
661
 
  the default ignore rules used by bzr. The flag ``--old-default-rules``
662
 
  is no longer supported by ``ignore``.
663
 
  (Parth Malwankar, #538703)
664
 
 
665
 
* ``bzr pack`` now supports a ``--clean-obsolete-packs`` option that
666
 
  can save disk space by deleting obsolete pack files created during the
667
 
  pack operation.
668
 
  (Parth Malwankar, #304320)
669
 
 
670
 
* New command line option ``--authors`` to ``bzr log`` allows users to
671
 
  select which of the apparent authors and committer should be
672
 
  included in the log. Defaults depend on format. (Martin von Gagern, #513322)
673
 
 
674
 
* Support ``--directory`` option for a number of additional commands:
675
 
  added, annotate, bind, cat, cat-revision, clean-tree, deleted,
676
 
  export, ignore, ignored, lookup-revision, ls, modified, nick,
677
 
  re-sign, unbind, unknowns.
678
 
  (Martin von Gagern, #527878)
679
 
 
680
 
* The bash_completion plugin from the bzr-bash-completion project has
681
 
  been merged into the tree. It provides a bash-completion command and
682
 
  replaces the outdated ``contrib/bash/bzr`` script with a version
683
 
  using the plugin. (Martin von Gagern, #560030)
684
 
 
685
 
* A new transport based on GIO (the gnome i/o library) provides access to
686
 
  samba shares, webdav using gio+smb and gio+dav. It is also possible to
687
 
  use gio for some already existing transport methods as gio+file,
688
 
  gio+sftp, gio+ftp. 
689
 
  (Mattias Eriksson)
690
 
 
691
 
Bug Fixes
692
 
*********
693
 
 
694
 
* Alias information shown by ``bzr help`` is now accurate. This
695
 
  was showing an internal object name for some plugin aliases.
696
 
  (Parth Malwankar, #584650)
697
 
 
698
 
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
699
 
  group ownership from the containing directory. This allow bzr to work
700
 
  better with sudo.
701
 
  (Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
702
 
 
703
 
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
704
 
  support of bzr-externals and scmproj plugins.
705
 
  (Alexander Belchenko, bug #572098)
706
 
 
707
 
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
708
 
  (Gordon Tyler, #572092)
709
 
 
710
 
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
711
 
  are part of Y ancestry but not part of X ancestry (aka the graph
712
 
  difference).
713
 
  (Vincent Ladeuil, #320119)
714
 
 
715
 
* ``bzr lp-propose`` which was switched to use production Launchpad API
716
 
  servers a few commits ago has been reverted to use edge: there is a
717
 
  problem with using production which isn't trivially obvious, so we've
718
 
  filed a bug to track it, and until thats fixed will be using edge.
719
 
  (Robert Collins, #583667)
720
 
 
721
 
* ``bzr rm`` should not refuse to delete directories which contained a file
722
 
  which has been moved elsewhere in the tree after the previous commit.
723
 
  (Marius Kruger, Daniel Watkins, #129880)
724
 
 
725
 
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
726
 
  (Vincent Ladeuil, #566670)
727
 
 
728
 
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
729
 
  (Vincent Ladeuil, #563997)
730
 
 
731
 
* CommitBuilder refuses to create revisions whose trees have no root.
732
 
  (Aaron Bentley)
733
 
 
734
 
* Do not register a SIGWINCH signal handler, instead just poll for the
735
 
  terminal width as needed.  This avoids the "Interrupted System Call"
736
 
  problems that occur on POSIX with all currently released versions of
737
 
  Python.
738
 
  (Andrew Bennetts, #583941)
739
 
 
740
 
* Don't mention --no-strict when we just issue the warning about unclean trees.
741
 
  (Vincent Ladeuil, #401599)
742
 
 
743
 
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
744
 
  versions before 1.6.
745
 
  (Andrew Bennetts, #528041)
746
 
 
747
 
* Improved progress bar for fetch (2a format only). Bazaar now shows an
748
 
  estimate of the number of records to be fetched vs actually fetched.
749
 
  (Parth Malwankar, #374740, #538868)
750
 
 
751
 
* Reduce peak memory by one copy of compressed text.
752
 
  (John Arbash Meinel, #566940)
753
 
 
754
 
* ``RemoteBranch.lock_write`` raises ``ReadOnlyError`` if called during a
755
 
  read lock, rather than causing an ``AttributeError``.
756
 
  (Andrew Bennetts, Данило Шеган, #582781)
757
 
 
758
 
* Selftest was failing with testtools 0.9.3, which caused an
759
 
  AssertionError raised from a cleanUp to be reported as a Failure, not an
760
 
  Error, breaking on of our test hygiene tests.
761
 
  (Robert Collins, Vincent Ladeuil).
762
 
 
763
 
* ``set_user_option`` with a dict on remote branches no longer fails with
764
 
  an AttributeError.  There is a new ``Branch.set_config_option_dict`` RPC
765
 
  to support this efficiently.
766
 
  (Andrew Bennetts, #430382)
767
 
  
768
 
* Show the filenames when a file rename fails so that the error will be
769
 
  more comprehensible.
770
 
  (Martin Pool, #491763)
771
 
 
772
 
* Support Pyrex 0.9.9, required changing how we handle exceptions in Pyrex.
773
 
  (John Arbash Meinel, #582656)
774
 
 
775
 
* Unicode characters in aliases are now handled correctly and do not cause
776
 
  UnicodeEncodeError exception. (Parth Malwankar, #529930)
777
 
 
778
 
* Unicode commit messages that are the same as a file name no longer cause
779
 
  UnicodeEncodeError. ``ui.text.show_warning`` now handles unicode
780
 
  messages.
781
 
  (Parth Malwankar, #563646)
782
 
 
783
 
* Using bzr with `lp:` urls behind an http proxy should work.
784
 
  (Robert Collins, #558343)
785
 
 
786
 
* When passing a file to ``UTF8DirReader`` make sure to close the current
787
 
  directory file handle after the chdir fails. Otherwise when passing many
788
 
  filenames into a command line ``bzr status`` we would leak descriptors.
789
 
  (John Arbash Meinel, #583486)
790
 
 
791
 
Improvements
792
 
************
793
 
 
794
 
* ``append_revisions_only`` will now be interpreted as a boolean and a
795
 
  warning emitted if illegal values are used. Note that for projects
796
 
  that needs to maintain compatibility with previsous bzr versions,
797
 
  only 'True' and 'False' strings must be used (previous versions of
798
 
  bzr will interpret all strings differing from 'True'
799
 
  (case-sensitive) as false.
800
 
  (Brian de Alwis, Vincent Ladeuil)
801
 
 
802
 
* ``bzr ls`` now supports short options for existing long options.
803
 
  ``-k/--kind``, ``-i/--ignored``, ``-u/--unknown`` and ``-0/--null``.
804
 
  (Parth Malwankar, #181124)
805
 
 
806
 
* ``Config.get_user_option_as_bool`` will now warn if a value cannot
807
 
  be interpreted as a boolean.
808
 
  (Vincent Ladeuil)
809
 
 
810
 
* The all-in-one Windows installer will now be built with docstrings stripped
811
 
  from the library zip, reducing the size and slightly improving cold startup
812
 
  time. Bundled plugins are unchanged for the moment, but if adding other new
813
 
  plugins to an all-in-one installation, ensure they are compiled and
814
 
  installed with -O1 or help may not work. (Martin [gz])
815
 
 
816
 
API Changes
817
 
***********
818
 
 
819
 
* Added ``bzrlib.merge.PerFileMerger``, a more convenient way to write
820
 
  some kinds of ``merge_file_content`` hook functions.
821
 
  (Andrew Bennetts)
822
 
  
823
 
* `BzrDir`, `Branch`, `Repository` and `WorkingTree` now all support `user_url`,
824
 
  `user_transport`, `control_url` and `control_transport` members pointing
825
 
  respectively to the directory containing the ``.bzr`` control directory, 
826
 
  and to the directory within ``.bzr`` used for the particular component.
827
 
  All of them inherit from `ControlComponent` which provides default
828
 
  implementations.
829
 
  (Martin Pool)
830
 
 
831
 
* Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
832
 
  expected to return an object which can be used to unlock them. This reduces
833
 
  duplicate code when using cleanups. The previous 'tokens's returned by
834
 
  ``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
835
 
  on the result of the lock_write. ``repository.RepositoryWriteLockResult``
836
 
  and ``branch.BranchWriteLockResult`` document this. (Robert Collins)
837
 
 
838
 
* ``Repository.refresh_data`` may now be called in a write group on
839
 
  pack-based repositories.  Older repositories will still raise an error
840
 
  in this case.  Subclasses of ``Repository`` can still override
841
 
  ``Repository._refresh_data``, but are now responsible for raising
842
 
  ``bzrlib.repository.IsInWriteGroupError`` if they do not support
843
 
  ``refresh_data`` during a write group.
844
 
  (Andrew Bennetts, #574236)
845
 
 
846
 
Internals
847
 
*********
848
 
 
849
 
* ``chk_map._bytes_to_text_key`` is now an optimized function to extract
850
 
  the (file-id, revision-id) key from a CHKInventory entry. This can
851
 
  potentially shave 5-10% time off during a large fetch. Related to bug
852
 
  #562666. (John Arbash Meinel)
853
 
 
854
 
* ``log._get_info_for_log_files`` now takes an add_cleanup callable.
855
 
  (Robert Collins)
856
 
 
857
 
* ``_remember_remote_is_before`` no longer raises AssertionError when
858
 
  suboptimal network behaviour is noticed; instead it just mutters to the
859
 
  log file (and warns the user if they have set the ``hpss`` debug flag).
860
 
  This was causing unnecessary aborts for performance bugs that are minor
861
 
  at worst.
862
 
  (Andrew Bennetts, #528041)
863
 
 
864
 
* Permit bzr to run under ``python -OO`` which reduces the size of bytecode
865
 
  files loaded from disk. To ensure docstrings needed for help are never
866
 
  stripped, the prefix ``__doc__ =`` should now be used.
867
 
  (Martin <gzlist@googlemail.com>)
868
 
 
869
 
* No longer require zlib headers to build extensions, and remove the need
870
 
  for seperate copy of zlib library on windows.
871
 
  (John Arbash Meinel, Martin <gzlist@googlemail.com>, #566923)
872
 
 
873
 
Testing
874
 
*******
875
 
 
876
 
* Added ``bzrlib.tests.matchers`` as a place to put matchers, along with
877
 
  our first in-tree matcher. See the module docstring for details.
878
 
  (Robert Collins)
879
 
 
880
 
* ``bzr selftest --parallel=subprocess`` now works correctly on win32.
881
 
   (Gordon Tyler, #551332)
882
 
 
883
 
* Workaround ``Crypto.Random`` check leading to spurious test
884
 
  failures on Lucid, FreeBSD and gentoo.  
885
 
  (Vincent Ladeuil, #528436)
886
 
 
887
 
* New class ``ExecutableFeature`` for checking the availability of
888
 
  executables on the ``PATH``. Migrated from bash_completion plugin.
889
 
  (Martin von Gagern)
890
 
 
891
 
bzr 2.2b2
892
 
#########
893
 
 
894
 
:2.2b2: 2010-04-16
895
 
 
896
 
This is a somewhat early second beta of the 2.2 series, to fix a python2.4
897
 
incompatibility in the 2.2b1 release.  It also includes a swag of
898
 
performance, usability and correctness improvements: test feedback on all
899
 
of these would be welcome.
900
 
 
901
 
 
902
 
New Features
903
 
************
904
 
 
905
 
* ``bzr diff`` now supports a --format option, which can be used to 
906
 
  select alternative diff formats. (Jelmer Vernooij, #555994)
907
 
 
908
 
Bug Fixes
909
 
*********
910
 
 
911
 
* ``bzr dpush``, ``bzr push`` and ``bzr send`` will now issue a warning
912
 
  instead of failing when dirty trees are involved. The corresponding
913
 
  ``dpush_strict``, ``push_strict`` and ``send_strict`` should be set to
914
 
  True explicitly to get the previous behaviour.  
915
 
  (Vincent Ladeuil, #519319)
916
 
 
917
 
* ``bzr export`` to tar file does not fail if any parent directory
918
 
  contains unicode characters. This works around upstream Python bug
919
 
  http://bugs.python.org/issue8396 .
920
 
  (Parth Malwankar, #413406)
921
 
 
922
 
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
923
 
  (Aaron Bentley, #559436)
924
 
 
925
 
* ``bzr update`` when a pending merge in the working tree has been merged
926
 
  into the master branch will no longer claim that old commits have become
927
 
  pending merges. (Robert Collins, #562079)
928
 
 
929
 
* ``bzrlib.mutabletree.MutableTree.commit`` will now support a passed in
930
 
  config as in previous versions of bzrlib. (Robert Collins)
931
 
 
932
 
* Fix glitch in the warning about unclean trees display.
933
 
  (Vincent Ladeuil, #562665)
934
 
 
935
 
* Fixed Python2.4 incompatibilities in the bzr2.2b1 source tarball.
936
 
  (Martin Pool)
937
 
 
938
 
* Help messages generated by ``RegistryOption.from_kwargs`` list the
939
 
  switches in alphabetical order, rather than in an undefined order.
940
 
  (Martin von Gagern, #559409)
941
 
 
942
 
* Make sure the ``ExecutablePath`` and ``InterpreterPath`` are set in
943
 
  Apport crash reports, to avoid "This problem report applies to a program
944
 
  which is not installed any more" error.
945
 
  (Martin Pool, James Westby, #528114)
946
 
 
947
 
* Reset ``siginterrupt`` flag to False every time we handle a signal
948
 
  installed with ``set_signal_handler(..., restart_syscall=True)`` (from
949
 
  ``bzrlib.osutils``.  Reduces the likelihood of "Interrupted System Call"
950
 
  errors compared to registering ``signal.signal`` directly.
951
 
  (Andrew Bennetts)
952
 
 
953
 
* When invoked with a range revision, ``bzr log`` doesn't show revisions
954
 
  that are not part of the Y revisions ancestry anymore when invoked with
955
 
  -rX..Y.
956
 
  (Vincent Ladeuil, #474807)
957
 
 
958
 
* Properly handle ``param_name`` attribute for ``ListOption``.
959
 
  (Martin von Gagern, #387117)
960
 
 
961
 
Improvements
962
 
************
963
 
 
964
 
* ``bzr commit`` will prompt before using a commit message that was
965
 
  generated by a template and not edited by the user.
966
 
  (Robert Collins, #530265)
967
 
 
968
 
* ``bzr diff`` read-locks the trees and branches only once, saving about
969
 
  10-20ms on ``bzr diff`` in a bzr.dev tree.
970
 
  (Andrew Bennetts)
971
 
 
972
 
* ``bzr missing`` read-locks the branches only once.
973
 
  (Andrew Bennetts)
974
 
  
975
 
* ``bzr pull`` locks the branches and tree only once.
976
 
  (Andrew Bennetts)
977
 
  
978
 
* Index lookups in pack repositories search recently hit pack files first.  
979
 
  In repositories with many pack files this can greatly reduce the
980
 
  number of files accessed, the number of bytes read, and the number of
981
 
  read calls.  An incremental pull via plain HTTP takes half the time and
982
 
  bytes for a moderately large repository.  (Andrew Bennetts)
983
 
 
984
 
* Index lookups only re-order the indexes when the hit files aren't
985
 
  already first. Reduces the cost of reordering
986
 
  (John Arbash Meinel, #562429)
987
 
 
988
 
* Less code is loaded at startup.  (Cold-cache start time is about 10-20%
989
 
  less.)
990
 
  (Martin Pool, #553017)
991
 
 
992
 
API Changes
993
 
***********
994
 
 
995
 
* ``bzrlib.diff.get_trees_and_branches_to_diff`` is deprecated.  Use
996
 
  ``get_trees_and_branches_to_diff_locked`` instead.
997
 
  (Andrew Bennetts)
998
 
 
999
 
* ``TreeTransform.commit`` supports the full set of commit parameters, and
1000
 
  auto-determines branch nick if not supplied.  (Aaron Bentley)
1001
 
  
1002
 
Internals
1003
 
*********
1004
 
 
1005
 
* ``bzrlib.commands.Command.run_direct`` is no longer needed - the pre
1006
 
  2.1 method of calling run() to perform testing or direct use via the API
1007
 
  is now possible again. As part of this, the _operation attribute on
1008
 
  Command is now transient and only exists for the duration of ``run()``.
1009
 
  (Robert Collins)
1010
 
 
1011
 
bzr 2.2b1
1012
 
#########
1013
 
 
1014
 
:2.2b1: 2010-04-01
1015
 
 
1016
 
This is the first beta of the 2.2 series, leading up to a 2.2.0
1017
 
release in July or August.  Beta releases are suitable for everyday use
1018
 
but may cause some incompatibilities with plugins.  Some plugins may need
1019
 
small updates to work with 2.2b1.
1020
 
 
1021
 
2.2b1 includes some changes to make merge conflicts easier to understand
1022
 
and resolve.  It also removes some old unnecessary code, and loads
1023
 
somewhat less code at startup.  It starts adding a common infrastructure
1024
 
for dealing with colocated named branches, which can be implemented in
1025
 
various ways in either bzr native or foreign formats.   On Ubuntu and
1026
 
other platforms with the apport bug-reporting library, there's an easier
1027
 
path to report problems with bzr.  We plan to continue with these themes
1028
 
through the 2.2 series.
1029
 
 
1030
 
Over thirty bugs have been fixed, including in the log command, exporting
1031
 
to tarballs, restarting interrupted system calls, portability of compiled
1032
 
extensions, making backups during upgrade, and locking on ftp.
1033
 
 
1034
 
Compatibility Breaks
1035
 
********************
1036
 
 
1037
 
* BTreeGraphIndex can now take an offset to indicate that the data starts
1038
 
  somewhere other than then beginning of the file. (John Arbash Meinel)
1039
 
 
1040
 
* Deleted very old hidden commands ``versionedfile-list``,
1041
 
  ``weave-plan-merge``, ``weave-merge-text``.
1042
 
  (Martin Pool)
1043
 
 
1044
 
* ``Repository.get_inventory_sha1()`` and ``Repository.get_revision_xml()`` 
1045
 
  have been removed. (Jelmer Vernooij)
1046
 
 
1047
 
* ``Repository.get_revision_inventory()`` has been removed in favor of
1048
 
  ``Repository.get_inventory()``. (Jelmer Vernooij)
1049
 
 
1050
 
* All test servers have been moved out of the bzrlib.transport hierarchy to
1051
 
  bzrlib.tests.test_server *except* for MemoryServer, ChrootServer and
1052
 
  PathFilteringServer. ``bzrlib`` users may encounter test failures that can
1053
 
  be fixed by updating the related imports from ``bzrlib.transport.xxx`` to
1054
 
  ``bzrlib.tests.test_server``.
1055
 
  (Vincent Ladeuil)
1056
 
 
1057
 
* ``BranchReferenceFormat.initialize()`` now takes an optional name argument
1058
 
  as its second parameter, for consistency with the initialize() method of
1059
 
  other formats. (Jelmer Vernooij)
1060
 
 
1061
 
New Features
1062
 
************
1063
 
 
1064
 
* Added ``bzr remove-branch`` command that can remove a local or remote 
1065
 
  branch. (Jelmer Vernooij, #276295)
1066
 
 
1067
 
* ``bzr export`` now takes an optional argument ``--per-file-timestamps``
1068
 
  to set file mtimes to the last timestamp of the last revision in which
1069
 
  they were changed rather than the current time. (Jelmer Vernooij)
 
12
:2.2.0b1: ???
 
13
 
 
14
Compatibility Breaks
 
15
********************
 
16
 
 
17
* ``Repository.get_inventory_sha1()`` has been removed. (Jelmer Vernooij)
 
18
 
 
19
New Features
 
20
************
1070
21
 
1071
22
* If the Apport crash-reporting tool is available, bzr crashes are now
1072
23
  stored into the ``/var/crash`` apport spool directory, and the user is
1074
25
  automatically or by running ``apport-bug``.  No information is sent
1075
26
  without specific permission from the user.  (Martin Pool, #515052)
1076
27
 
1077
 
* Parsing of command lines, for example in ``diff --using``, no longer
1078
 
  treats backslash as an escape character on Windows.   (Gordon Tyler,
1079
 
  #392428)
1080
 
 
1081
 
* Plugins can be disabled by defining ``BZR_DISABLE_PLUGINS`` as
1082
 
  a list of plugin names separated by ':' (';' on windows).
1083
 
  (Vincent Ladeuil, #411413)
1084
 
 
1085
 
* Plugins can be loaded from arbitrary locations by defining
1086
 
  ``BZR_PLUGINS_AT`` as a list of name@path separated by ':' (';' on
1087
 
  windows). This takes precedence over ``BZR_PLUGIN_PATH`` for the
1088
 
  specified plugins. This is targeted at plugin developers for punctual
1089
 
  needs and *not* intended to replace ``BZR_PLUGIN_PATH``.  
1090
 
  (Vincent Ladeuil, #82693)
1091
 
 
1092
 
* Tag names can now be determined automatically by ``automatic_tag_name`` 
1093
 
  hooks on ``Branch`` if they are not specified on the command line.
1094
 
  (Jelmer Vernooij)
1095
 
 
1096
28
* Tree-shape conflicts can be resolved by providing ``--take-this`` and
1097
29
  ``--take-other`` to the ``bzr resolve`` command. Just marking the conflict
1098
30
  as resolved is still accessible via the ``--done`` default action.
1099
31
  (Vincent Ladeuil)
1100
32
 
1101
 
* Merges can be proposed on Launchpad with the new lp-propose-merge command.
1102
 
  (Aaron Bentley, Jonathan Lange)
1103
 
 
1104
33
Bug Fixes
1105
34
*********
1106
35
 
1107
36
* Added docstring for ``Tree.iter_changes``
1108
37
  (John Arbash Meinel, #304182)
1109
38
 
1110
 
* Allow additional arguments to
1111
 
  ``RemoteRepository.add_inventory_by_delta()``. (Jelmer Vernooij, #532631)
1112
 
 
1113
39
* Allow exporting a single file using ``bzr export``.
1114
40
  (Michal Junák, #511987)
1115
41
 
1116
 
* Allow syscalls to automatically restart when ``TextUIFactory``'s
1117
 
  SIGWINCH handler is invoked, avoiding ``EINTR`` errors during blocking
1118
 
  IO, which are often poorly handled by Python's libraries and parts of
1119
 
  bzrlib.  (Andrew Bennetts, #496813)
1120
 
 
1121
42
* Avoid infinite recursion when probing for apport.
1122
43
  (Vincent Ladeuil, #516934)
1123
44
 
1124
 
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
1125
 
  (Martin Pool, #331095)
1126
 
 
1127
 
* Avoid truncating svn URLs.
1128
 
  (Martin Pool, Martin von Gagern, #545185)
1129
 
 
1130
 
* ``bzr add`` will not add conflict related files unless explicitly required.
1131
 
  (Vincent Ladeuil, #322767, #414589)
1132
 
 
1133
 
* ``bzr dump-btree`` now works on ``*.cix`` and ``*.six`` files.  Those
1134
 
  indices do not have reference lists, so ``dump-btree`` will simply show
1135
 
  ``None`` instead.  (Andrew Bennetts, #488607)
1136
 
 
1137
 
* ``bzr help`` will no longer trigger the get_missing_command hook when
1138
 
  doing a topic lookup. This avoids prompting (like 'no command plugins/loom,
1139
 
  did you mean log?') when getting help. In future we may trigger the hook 
1140
 
  deliberately when no help topics match from any help index.
1141
 
  (Robert Collins, #396261)
1142
 
 
1143
 
* ``bzr log -n0 -r..A.B.C`` should not crash but just consider the None
1144
 
  revspec as representing the first revision of the branch.
1145
 
  (Vincent Ladeuil, #519862)
1146
 
 
1147
 
* ``bzr remove-tree`` can now remove multiple working trees.
1148
 
  (Jared Hance, Andrew Bennetts, #253137)
1149
 
 
1150
 
* ``bzr resolve --take-this`` and ``--take-other`` now correctly renames
1151
 
  the kept file on content conflicts where one side deleted the file.
1152
 
  (Vincent Ladeuil, #529968)
1153
 
 
1154
 
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
1155
 
  permissions as ``.bzr`` directory on a POSIX OS.
1156
 
  (Parth Malwankar, #262450)
1157
 
 
1158
 
* ``bzr upgrade`` now names backup directory as ``backup.bzr.~N~`` instead
1159
 
  of ``backup.bzr``. This directory is ignored by bzr commands such as
1160
 
  ``add``.
1161
 
  (Parth Malwankar, #335033, #300001)
1162
 
 
1163
 
* Cope with non-utf8 characters inside ``.bzrignore``.
1164
 
  (Jason Spashett, #183504)
1165
 
 
1166
 
* Correctly interpret "451 Rename/move failure: Directory not empty" from
1167
 
  ftp servers while trying to take a lock.
1168
 
  (Martin Pool, #528722)
1169
 
 
1170
 
* DirStateRevisionTree.kind() was returning wrong result when 'kind'
1171
 
  changes occured between the workingtree and one of its parents.
1172
 
  (Vincent Ladeuil, #535547)
1173
 
 
1174
 
* Fix ``log`` to better check ancestors even if merged revisions are involved.
1175
 
  (Vincent Ladeuil, #476293)
1176
 
 
1177
 
* Loading a plugin from a given path with ``BZR_PLUGINS_AT`` doesn't depend
1178
 
  on os.lisdir() order and is now reliable.
1179
 
  (Vincent Ladeuil, #552922).
1180
 
 
1181
 
* Many IO operations that returned ``EINTR`` were retried even if it
1182
 
  wasn't safe to do so via careless use of ``until_no_eintr``.  Bazaar now
1183
 
  only retries operations that are safe to retry, and in some cases has
1184
 
  switched to operations that can be retried (e.g. ``sock.send`` rather than
1185
 
  ``sock.sendall``).
1186
 
  (Andrew Bennetts, Martin <gzlist@googlemail.com>, #496813)
1187
 
 
1188
 
* Path conflicts now support --take-this and --take-other even when a
1189
 
  deletion is involved.
1190
 
  (Vincent Ladeuil, #531967)
1191
 
 
1192
45
* Network transfer amounts and rates are now displayed in SI units according
1193
46
  to the Ubuntu Units Policy <https://wiki.ubuntu.com/UnitsPolicy>.
1194
47
  (Gordon Tyler, #514399)
1195
48
 
1196
 
* Support kind markers for socket and fifo filesystem objects. This
1197
 
  prevents ``bzr status --short`` from crashing when those files are
1198
 
  present.  (John Arbash Meinel, #303275)
1199
 
 
1200
 
* ``bzr mkdir DIR`` will not create DIR unless DIR's parent is a versioned
1201
 
   directory. (Parth Malwankar, #138600)
1202
 
 
1203
 
* SSH child processes will now ignore SIGQUIT on nix systems so breaking into
1204
 
  the debugger won't kill the session.
1205
 
  (Martin <gzlist@googlemail.com>, #162502)
1206
 
 
1207
 
* Tolerate patches with leading noise in ``bzr-handle-patch``.
1208
 
  (Toshio Kuratomi, Martin Pool, #502076)
1209
 
 
1210
 
* ``update -r`` now supports updating to revisions that are not on
1211
 
  mainline (i.e. it supports dotted revisions).
1212
 
  (Parth Malwankar, #517800)
1213
 
 
1214
 
* Use first apparent author not committer in GNU Changelog format.
1215
 
  (Martin von Gagern, #513322)
1216
 
 
1217
49
API Changes
1218
50
***********
1219
51
 
1220
 
* ``bzrlib.merge_directive._BaseMergeDirective`` has been renamed to 
1221
 
  ``bzrlib.merge_directive.BaseMergeDirective`` and is now public.
1222
 
  (Jelmer Vernooij)
1223
 
 
1224
 
* ``BranchFormat.initialize`` now takes an optional ``name`` of the colocated 
1225
 
  branch to create. (Jelmer Vernooij)
1226
 
 
1227
 
* ``BzrDir.get_branch_transport`` now takes an optional ``name`` of the 
1228
 
  colocated branch to open. (Jelmer Vernooij)
1229
 
 
1230
 
* Added ``bzrlib.osutils.set_signal_handler``, a convenience function that
1231
 
  can set a signal handler and call ``signal.siginterrupt(signum,
1232
 
  False)`` for it, if the platform and Python version supports it.
1233
 
  (Andrew Bennetts, #496813)
1234
 
 
1235
52
* New ``bzrlib.initialize`` is recommended for programs using bzrlib to 
1236
53
  run when starting up; it sets up several things that previously needed
1237
54
  to be done separately.
1238
55
  (Martin Pool, #507710)
1239
56
 
1240
 
* Exporters now support a ``per_file_timestamps`` argument to write out the 
1241
 
  timestamp of the commit in which a file revision was introduced.
1242
 
  (Jelmer Vernooij)
1243
 
 
1244
 
* New method ``BzrDir.list_branches()`` that returns a sequence of branches 
1245
 
  present in a control directory. (Jelmer Vernooij)
1246
 
 
1247
 
* New method ``Repository.get_known_graph_ancestry()``. 
1248
 
  (Jelmer Vernooij, #495502)
1249
 
 
1250
 
* New transport methods ``readlink``, ``symlink`` and ``hardlink``.
1251
 
  (Neil Santos)
1252
 
 
1253
57
* Remove unused ``CommandFailed`` exception.
1254
58
  (Martin Pool)
1255
59
 
1256
 
Internals
1257
 
*********
1258
 
 
1259
 
* ``bzrlib.branchbuilder.BranchBuilder.build_snapshot`` now accepts a
1260
 
  ``message_callback`` in the same way that commit does. (Robert Collins)
1261
 
 
1262
 
* ``bzrlib.builtins.Commit.run`` raises ``bzrlib.errors.BoundBranchOutOfDate``
1263
 
  rather than ``bzrlib.errors.BzrCommandError`` when the bound branch is out
1264
 
  of date. (Gary van der Merwe)
1265
 
 
1266
 
* ``bzrlib.commands.run_bzr`` is more extensible: callers can supply the
1267
 
  functions to load or disable plugins if they wish to use a different
1268
 
  plugin mechanism; the --help, --version and no-command name code paths
1269
 
  now use the generic pluggable command lookup infrastructure.
1270
 
  (Robert Collins)
1271
 
 
1272
 
* ``bzrlib.errors.BoundBranchOutOfDate`` has a new field ``extra_help``
1273
 
  which can be set to add extra help to the error. (Gary van der Merwe)
1274
 
 
1275
 
* New method ``Branch.automatic_tag_name`` that can be used to find the
1276
 
  tag name for a particular revision automatically. (Jelmer Vernooij)
1277
 
 
1278
 
* The methods ``BzrDir.create_branch()``, ``BzrDir.destroy_branch()`` and 
1279
 
  ``BzrDir.open_branch()`` now take an optional ``name`` argument. 
1280
 
  (Jelmer Vernooij)
1281
 
 
1282
60
Testing
1283
61
*******
1284
62
 
1285
 
* bzr now has a ``.testr.conf`` file in its source tree configured
1286
 
  appropriately for running tests with Testrepository
1287
 
  (``https://launchpad.net/testrepository``). (Robert Collins)
1288
 
 
1289
 
* Documentation about testing with ``subunit`` has been tweaked.
1290
 
  (Robert Collins)
1291
 
 
1292
 
* Known failures has been added for resolve --take-other on ParentLoop
1293
 
  conflicts. This reflects bug #537956 without fixing it.
1294
 
  (Vincent Ladeuil)
1295
 
 
1296
 
* New ``bzrlib.tests.test_import_tariff`` can make assertions about what
 
63
* New `bzrlib.tests.test_import_tariff` can make assertions about what
1297
64
  Python modules are loaded, to guard against startup time or library
1298
65
  dependency regressions.
1299
66
  (Martin Pool)
1300
67
 
1301
 
* PQM will now run with subunit output. To analyze a PQM error use
1302
 
  tribunal, or cat log | subunit-filter | subunit2pyunit. (Robert Collins)
1303
 
 
1304
68
* Stop sending apport crash files to ``.cache`` in the directory from
1305
69
  which ``bzr selftest`` was run.  (Martin Pool, #422350)
1306
70
 
1307
 
* Tests no longer fail if "close() called during concurrent
1308
 
  operation on the same file object" occurs when closing the log file
1309
 
  (which can happen if a thread tries to write to the log file at the
1310
 
  wrong moment).  An warning will be written to ``stderr`` when this
1311
 
  happens, and another warning will be written if the log file could not
1312
 
  be closed after retrying 100 times.  (Andrew Bennetts, #531746)
1313
 
 
1314
 
bzr 2.1.3
1315
 
#########
1316
 
 
1317
 
:Codename: Do run run
1318
 
:2.1.3: NOT RELEASED YET
1319
 
 
1320
 
Compatibility Breaks
1321
 
********************
1322
 
 
1323
 
New Features
1324
 
************
1325
 
 
1326
 
Bug Fixes
1327
 
*********
1328
 
 
1329
 
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
1330
 
  previously-unversioned directory within the tree: the directory is
1331
 
  marked versioned too.  
1332
 
  (Martin Pool, #192859)
1333
 
 
1334
 
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
1335
 
  way which should help avoid problems with concurrent writers.
1336
 
  (Vincent Ladeuil, #525571)
1337
 
 
1338
 
* Don't traceback trying to unversion children files of an already
1339
 
  unversioned directory.  (Vincent Ladeuil, #494221)
1340
 
 
1341
 
* Fix ``AttributeError on parent.children`` when adding a file under a 
1342
 
  directory that was a symlink in the previous commit.
1343
 
  (Martin Pool, #192859)
1344
 
 
1345
 
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
1346
 
  which can result in "missing referenced chk root keys" errors when
1347
 
  fetching from repositories with affected revisions.
1348
 
  (Andrew Bennetts, #522637)
1349
 
 
1350
 
* Progress bars prefer to truncate the text message rather than the
1351
 
  counters.  The spinner is shown between the network transfer indicator
1352
 
  and the progress message.  (Martin Pool)
1353
 
 
1354
 
* Raise ValueError instead of a string exception.
1355
 
  (John Arbash Meinel, #586926)
1356
 
 
1357
 
* Recursive binding for checkouts is now detected by bzr. A clear error
1358
 
  message is shown to the user. (Parth Malwankar, #405192)
1359
 
 
1360
 
Improvements
1361
 
************
1362
 
 
1363
 
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
1364
 
  tree, and works with unrelated branches.  (Andrew Bennetts)
1365
 
 
1366
 
Documentation
1367
 
*************
1368
 
 
1369
 
* ``bzr help patterns`` now explains case insensitive patterns and
1370
 
  points to Python regular expression documentation.
1371
 
  (Parth Malwankar, #594386)
1372
 
 
1373
 
API Changes
1374
 
***********
1375
 
 
1376
 
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
1377
 
 
1378
 
Internals
1379
 
*********
1380
 
 
1381
 
Testing
1382
 
*******
1383
 
 
1384
 
* Unit test added to ensure that "message" is not uses as a format variable
1385
 
  name in BzrError subclasses as this conflicts with some Python versions.
1386
 
  (Parth Malwankar, #603461)
1387
 
 
1388
 
bzr 2.1.2
1389
 
#########
1390
 
 
1391
 
:2.1.2: 2010-05-28
1392
 
 
1393
 
This release fixes two critical networking issues with older servers and
1394
 
with interrupted system call errors when pushing or pulling.  We recommend
1395
 
upgrading to anyone running a 2.1.x version of bzr.
1396
 
 
1397
 
Bug Fixes
1398
 
*********
1399
 
 
1400
 
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
1401
 
  support of bzr-externals and scmproj plugins.
1402
 
  (Alexander Belchenko, bug #572098)
1403
 
 
1404
 
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
1405
 
  (Aaron Bentley, #559436)
1406
 
 
1407
 
* Do not register a SIGWINCH signal handler, instead just poll for the
1408
 
  terminal width as needed.  This avoids the "Interrupted System Call"
1409
 
  problems that occur on POSIX with all currently released versions of
1410
 
  Python.
1411
 
  (Andrew Bennetts, #583941)
1412
 
 
1413
 
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
1414
 
  versions before 1.6.
1415
 
  (Andrew Bennetts, #528041)
1416
 
 
1417
 
* Reset ``siginterrupt`` flag to False every time we handle a signal
1418
 
  installed with ``set_signal_handler(..., restart_syscall=True)`` (from
1419
 
  ``bzrlib.osutils``.  Reduces the likelihood of "Interrupted System Call"
1420
 
  errors compared to registering ``signal.signal`` directly.
1421
 
  (Andrew Bennetts)
1422
 
 
1423
 
* Reduce peak memory by one copy of compressed text.
1424
 
  (John Arbash Meinel, #566940)
1425
 
 
1426
 
* Support Pyrex 0.9.9, required changing how we handle exceptions in Pyrex.
1427
 
  (John Arbash Meinel, #582656)
1428
 
 
1429
 
* When passing a file to ``UTF8DirReader`` make sure to close the current
1430
 
  directory file handle after the chdir fails. Otherwise when passing many
1431
 
  filenames into a command line ``bzr status`` we would leak descriptors.
1432
 
  (John Arbash Meinel, #583486)
1433
 
 
1434
 
Internals
1435
 
*********
1436
 
 
1437
 
* ``_remember_remote_is_before`` no longer raises AssertionError when
1438
 
  suboptimal network behaviour is noticed; instead it just mutters to the
1439
 
  log file (and warns the user if they have set the ``hpss`` debug flag).
1440
 
  This was causing unnecessary aborts for performance bugs that are minor
1441
 
  at worst.
1442
 
  (Andrew Bennetts, #528041)
1443
 
 
1444
 
 
1445
 
bzr 2.1.1
1446
 
#########
1447
 
 
1448
 
:2.1.1: 2010-03-24
1449
 
 
1450
 
This is a small bugfix release.  Upgrading is recommended for anyone
1451
 
running 2.1.0 or earlier.
1452
 
 
1453
 
Bug Fixes
1454
 
*********
1455
 
 
1456
 
* Allow syscalls to automatically restart when ``TextUIFactory``'s
1457
 
  SIGWINCH handler is invoked, avoiding ``EINTR`` errors during blocking
1458
 
  IO, which are often poorly handled by Python's libraries and parts of
1459
 
  bzrlib.  (Andrew Bennetts, #496813)
1460
 
 
1461
 
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
1462
 
  (Martin Pool, #331095)
1463
 
 
1464
 
* Fix plugin packaging on Windows. (Ian Clatworthy, #524162)
1465
 
 
1466
 
* Fix stub sftp test server to call os.getcwdu().
1467
 
  (Vincent Ladeuil, #526221, #526353)
1468
 
 
1469
 
* Fixed CHM generation by moving the NEWS section template into
1470
 
  a separate file. (Ian Clatworthy, #524184)
1471
 
 
1472
 
* Merge correctly when this_tree is not a WorkingTree.  (Aaron Bentley)
1473
 
 
1474
 
* Register SIGWINCH handler only when creating a ``TextUIFactory``; avoids
1475
 
  problems importing bzrlib from a non-main thread.
1476
 
  (Elliot Murphy, #521989)
1477
 
 
1478
 
* Repositories accessed via a smart server now reject being stacked on a
1479
 
  repository in an incompatible format, as is the case when accessing them
1480
 
  via other methods.  This was causing fetches from those repositories via
1481
 
  a smart server (e.g. using ``bzr branch``) to receive invalid data.
1482
 
  (Andrew Bennetts, #562380)
1483
 
 
1484
 
* Standardize the error handling when creating a new ``StaticTuple``
1485
 
  (problems will raise TypeError). (Matt Nordhoff, #457979)
1486
 
 
1487
 
* Warn if pyrex is too old to compile the new ``SimpleSet`` and
1488
 
  ``StaticTuple`` extensions, rather than having the build fail randomly.
1489
 
  (John Arbash Meinel, #449776)
1490
 
 
1491
 
Documentation
1492
 
*************
1493
 
 
1494
 
* Added a link to the Desktop Guide. (Ian Clatworthy)
1495
 
 
1496
 
* Added What's New in Bazaar 2.1 document. (Ian Clatworthy)
1497
 
 
1498
 
* Drop Google Analytics from the core docs as they caused problems
1499
 
  in the CHM files. (Ian Clatworthy, #502010)
1500
 
 
1501
 
API Changes
1502
 
***********
1503
 
 
1504
 
* Added ``bzrlib.osutils.set_signal_handler``, a convenience function that
1505
 
  can set a signal handler and call ``signal.siginterrupt(signum,
1506
 
  False)`` for it, if the platform and Python version supports it.
1507
 
  (Andrew Bennetts, #496813)
1508
 
 
1509
 
 
1510
 
bzr 2.1.0
1511
 
#########
1512
 
 
1513
 
:Codename: Strasbourg
1514
 
:2.1.0: 2010-02-11
1515
 
 
1516
 
This release marks our second long-term-stable series. The Bazaar team
1517
 
has decided that we will continue to make bugfix-only 2.0.x and 2.1.x
1518
 
releases, along with 2.2 development releases. 
1519
 
 
1520
 
This is a fairly incremental update, focusing on polish and bugfixing.
1521
 
There are no changes for supported disk formats. Key updates include
1522
 
reduced memory consumption for many operations, a new per-file merge
1523
 
hook, ignore patterns can now include '!' to exclude files, globbing
1524
 
support for all commands on Windows, and support for addressing home
1525
 
directories via ``bzr+ssh://host/~/`` syntax.
1526
 
 
1527
 
Users are encouraged to upgrade from the 2.0 stable series.
 
71
bzr 2.1.0 (not released yet)
 
72
############################
 
73
 
 
74
:Codename: 
 
75
:2.1.0: 
1528
76
 
1529
77
Bug Fixes
1530
78
*********
1535
83
* Fix "AttributeError in Inter1and2Helper" during fetch.
1536
84
  (Martin Pool, #513432)
1537
85
 
1538
 
* ``bzr update`` performs the two merges in a more logical order and will stop
1539
 
  when it encounters conflicts.  
1540
 
  (Gerard Krol, #113809)
 
86
* Fix ``log`` to better check ancestors even if merged revisions are involved.
 
87
  (Vincent Ladeuil, #476293)
1541
88
 
1542
89
* Give a better error message when doing ``bzr bind`` in an already bound
1543
90
  branch.  (Neil Martinsen-Burrell, #513063)
1544
91
 
1545
 
* Ignore ``KeyError`` from ``remove_index`` during ``_abort_write_group``
1546
 
  in a pack repository, which can happen harmlessly if the abort occurs during
1547
 
  finishing the write group.  Also use ``bzrlib.cleanup`` so that any
1548
 
  other errors that occur while aborting the individual packs won't be
1549
 
  hidden by secondary failures when removing the corresponding indices.
1550
 
  (Andrew Bennetts, #423015)
1551
 
 
1552
92
* Set the mtime of files exported to a directory by ``bzr export`` all to
1553
93
  the same value to avoid confusing ``make`` and other date-based build
1554
94
  systems. (Robert Collins, #515631)
1555
95
 
 
96
* ``bzr update`` performs the two merges in a more logical order and will stop
 
97
  when it encounters conflicts.  
 
98
  (Gerard Krol, #113809)
 
99
 
1556
100
Improvements
1557
101
************
1558
102
 
1559
103
* Fetching into experimental formats will now print a warning. (Jelmer
1560
104
  Vernooij)
1561
105
 
 
106
Documentation
 
107
*************
 
108
 
1562
109
API Changes
1563
110
***********
1564
111
 
1573
120
* ``Repository.serialise_inventory`` has been renamed to 
1574
121
  ``Repository._serialise_inventory`` to indicate it is private.
1575
122
 
 
123
Internals
 
124
*********
 
125
 
 
126
Testing
 
127
*******
1576
128
* Using the ``bzrlib.chk_map`` module from within multiple threads at the
1577
129
  same time was broken due to race conditions with a module level page
1578
130
  cache. This shows up as a KeyError in the ``bzrlib.lru_cache`` code with
1586
138
  regressions.
1587
139
  (Vincent Ladeuil, #515597)
1588
140
 
1589
 
Internals
1590
 
*********
1591
 
 
1592
 
* Use ``bzrlib.cleanup`` rather than less robust ``try``/``finally``
1593
 
  blocks in several places in ``bzrlib.merge``.  This avoids masking prior
1594
 
  errors when errors like ``ImmortalPendingDeletion`` occur during cleanup
1595
 
  in ``do_merge``.
1596
 
  (Andrew Bennetts, #517275)
1597
 
 
1598
 
API Changes
1599
 
***********
1600
 
 
1601
 
* The ``remove_index`` method of
1602
 
  ``bzrlib.repofmt.pack_repo.AggregateIndex`` no longer takes a ``pack``
1603
 
  argument.  This argument was always ignored.
1604
 
  (Andrew Bennetts, #423015)
1605
 
 
1606
141
bzr 2.1.0rc2
1607
142
############
1608
143
 
1860
395
  tests that 'failed' - they're all just failures.
1861
396
  (Martin Pool)
1862
397
 
1863
 
bzr 2.0.6
1864
 
#########
1865
 
 
1866
 
:2.0.6: NOT RELEASED YET
1867
 
 
1868
 
Bug Fixes
1869
 
*********
1870
 
 
1871
 
* Additional merges after an unrelated branch has been merged with its
1872
 
  history no longer crash when deleted files are involved.
1873
 
  (Vincent Ladeuil, John Arbash Meinel, #375898)
1874
 
 
1875
 
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
1876
 
  previously-unversioned directory within the tree: the directory is
1877
 
  marked versioned too.  
1878
 
  (Martin Pool, #192859)
1879
 
 
1880
 
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
1881
 
  target of the symlink.
1882
 
  (Martin Pool, John Arbash Meinel, #128562)
1883
 
 
1884
 
* ``bzr revert`` now only takes write lock on working tree, instead of on 
1885
 
  both working tree and branch.
1886
 
  (Danny van Heumen, #498409)
1887
 
 
1888
 
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
1889
 
  permissions as ``.bzr`` directory on a POSIX OS.
1890
 
  (Parth Malwankar, #262450)
1891
 
 
1892
 
* Don't traceback trying to unversion children files of an already
1893
 
  unversioned directory.  (Vincent Ladeuil, #494221)
1894
 
 
1895
 
* Fix ``AttributeError on parent.children`` when adding a file under a 
1896
 
  directory that was a symlink in the previous commit.
1897
 
  (Martin Pool, #192859)
1898
 
 
1899
 
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
1900
 
  which can result in "missing referenced chk root keys" errors when
1901
 
  fetching from repositories with affected revisions.
1902
 
  (Andrew Bennetts, #522637)
1903
 
 
1904
 
* Raise ValueError instead of a string exception.
1905
 
  (John Arbash Meinel, #586926)
1906
 
 
1907
 
* Reduce peak memory by one copy of compressed text.
1908
 
  (John Arbash Meinel, #566940)
1909
 
 
1910
 
* Repositories accessed via a smart server now reject being stacked on a
1911
 
  repository in an incompatible format, as is the case when accessing them
1912
 
  via other methods.  This was causing fetches from those repositories via
1913
 
  a smart server (e.g. using ``bzr branch``) to receive invalid data.
1914
 
  (Andrew Bennetts, #562380)
1915
 
 
1916
 
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
1917
 
  error. This error was caused by 2.0 not being updated when upstream
1918
 
  python merged the end of run patch, which chose ``stopTestRun`` rather than
1919
 
  ``done``. (Robert Collins, #571437)
1920
 
 
1921
 
* When passing a file to ``UTF8DirReader`` make sure to close the current
1922
 
  directory file handle after the chdir fails. Otherwise when passing many
1923
 
  filenames into a command line ``bzr status`` we would leak descriptors.
1924
 
  (John Arbash Meinel, #583486)
1925
 
 
1926
 
 
1927
 
Testing
1928
 
*******
1929
 
 
1930
 
* ``build_tree_contents`` can create symlinks.
1931
 
  (Martin Pool, John Arbash Meinel)
1932
 
 
1933
 
 
1934
 
bzr 2.0.5
1935
 
#########
1936
 
 
1937
 
:2.0.5: 2010-03-23
1938
 
 
1939
 
This fifth release in our 2.0 series addresses several user-inconvenience
1940
 
bugs.  None are critical, but upgrading is recommended for all users on
1941
 
earlier 2.0 releases.
1942
 
 
1943
 
Bug Fixes
1944
 
*********
1945
 
 
1946
 
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
1947
 
  (Martin Pool, #331095)
1948
 
 
1949
 
* Concurrent autopacking is more resilient to already-renamed pack files.
1950
 
  If we find that a file we are about to obsolete is already obsoleted, we
1951
 
  do not try to rename it, and we leave the file in ``obsolete_packs``.
1952
 
  The code is also fault tolerant if a file goes missing, assuming that
1953
 
  another process already removed the file.
1954
 
  (John Arbash Meinel, Gareth White, #507557)
1955
 
 
1956
 
* Cope with the lockdir ``held/info`` file being empty, which seems to
1957
 
  happen fairly often if the process is suddenly interrupted while taking
1958
 
  a lock.
1959
 
  (Martin Pool, #185103)
1960
 
 
1961
 
* Give the warning about potentially slow cross-format fetches much
1962
 
  earlier on in the fetch operation.  Don't show this message during
1963
 
  upgrades, and show the correct format indication for remote
1964
 
  repositories.
1965
 
  (Martin Pool, #456077, #515356, #513157)
1966
 
 
1967
 
* Handle renames correctly when there are files or directories that 
1968
 
  differ only in case.  (Chris Jones, Martin Pool, #368931)
1969
 
 
1970
 
* If ``bzr push --create-prefix`` triggers an unexpected ``NoSuchFile``
1971
 
  error, report that error rather than failing with an unhelpful
1972
 
  ``UnboundLocalError``.
1973
 
  (Andrew Bennetts, #423563)
1974
 
 
1975
 
* Running ``bzr`` command without any arguments now shows bzr
1976
 
  version number along with rest of the help text.
1977
 
  (Parth Malwankar, #369501)
1978
 
 
1979
 
* Use osutils.O_NOINHERIT for some files on win32 to avoid PermissionDenied
1980
 
  errors.
1981
 
  (Inada Naoki, #524560)
1982
 
 
1983
 
Documentation
1984
 
*************
1985
 
 
1986
 
* Added ``location-alias`` help topic.
1987
 
  (Andrew Bennetts, #337834)
1988
 
 
1989
 
* Fixed CHM generation by moving the NEWS section template into
1990
 
  a separate file. (Ian Clatworthy, #524184)
1991
 
 
1992
398
 
1993
399
bzr 2.0.4
1994
400
#########
4630
3036
  can have a large effect on ``bzr checkout`` times. (John Arbash Meinel)
4631
3037
 
4632
3038
* selftest now supports a --parallel option, with values of 'fork' or
4633
 
  'subprocess' to run the test suite in parallel. Currently only Linux
4634
 
  machines work, other platforms need patches submitted. (Robert Collins,
 
3039
  'subprocess' to run the test suite in parallel. Currently only linux
 
3040
  machine work, other platforms need patches submitted. (Robert Collins,
4635
3041
  Vincent Ladeuil)
4636
3042
 
4637
3043
* ``tests.run_suite`` has a new parameter ``suite_decorators``, a list of 
7385
5791
 
7386
5792
* bzr main script cannot be imported (Benjamin Peterson)
7387
5793
 
7388
 
* On GNU/Linux bzr additionally looks for plugins in arch-independent site
 
5794
* On Linux bzr additionally looks for plugins in arch-independent site
7389
5795
  directory. (Toshio Kuratomi)
7390
5796
 
7391
5797
* The ``set_rh`` branch hook is now deprecated. Please migrate
7728
6134
 
7729
6135
* BZR_LOG environment variable controls location of .bzr.log trace file.
7730
6136
  User can suppress writing messages to .bzr.log by using '/dev/null'
7731
 
  filename (on Unix) or 'NUL' (on Windows). If BZR_LOG variable
 
6137
  filename (on Linux) or 'NUL' (on Windows). If BZR_LOG variable
7732
6138
  is not defined but BZR_HOME is defined then default location
7733
6139
  for .bzr.log trace file is ``$BZR_HOME/.bzr.log``.
7734
6140
  (Alexander Belchenko, #106117)
13470
11876
  diff, status, etc.
13471
11877
 
13472
11878
 
 
11879
bzr ?.?.? (not released yet)
 
11880
############################
 
11881
 
 
11882
:Codename: template
 
11883
:2.0.2: ???
 
11884
 
 
11885
Compatibility Breaks
 
11886
********************
 
11887
 
 
11888
New Features
 
11889
************
 
11890
 
 
11891
Bug Fixes
 
11892
*********
 
11893
 
 
11894
Improvements
 
11895
************
 
11896
 
 
11897
Documentation
 
11898
*************
 
11899
 
 
11900
API Changes
 
11901
***********
 
11902
 
 
11903
Internals
 
11904
*********
 
11905
 
 
11906
Testing
 
11907
*******
 
11908
 
 
11909
 
 
11910
 
13473
11911
..
13474
 
   vim: tw=74 ft=rst ff=unix
 
11912
   vim: tw=74 ft=rst ff=unix encoding=utf-8