~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to NEWS

  • Committer: Parth Malwankar
  • Date: 2010-05-14 13:25:05 UTC
  • mto: This revision was merged to the branch mainline in revision 5241.
  • Revision ID: parth.malwankar@gmail.com-20100514132505-ba9rxnpooifq4o5q
code cleanup and comments.

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.2b3
 
9
#########
 
10
 
 
11
:2.2b3: NOT RELEASED YET
 
12
 
 
13
Compatibility Breaks
 
14
********************
 
15
 
 
16
* An API break has been made to the lock_write method of ``Branch`` and
 
17
  ``Repository`` objects; they now return ``branch.BranchWriteLockResult``
 
18
  and ``repository.RepositoryWriteLockResult`` objects. This makes
 
19
  changing the API in future easier and permits some cleaner calling code.
 
20
  The lock_read method has also changed from having no defined return
 
21
  value to returning ``LogicalLockResult`` objects.
 
22
  (Robert Collins)
 
23
 
 
24
* ``bzr`` does not try to guess the username as ``username@hostname``
 
25
  and requires it to be explictly set. This can be set using ``bzr
 
26
  whoami``.
 
27
  (Parth Malwankar, #549310)
 
28
 
 
29
* ``bzrlib.commands.Command`` will now raise ValueError during
 
30
  construction if there is no __doc__ set. (Robert Collins)
 
31
 
 
32
New Features
 
33
************
 
34
 
 
35
* ``bzr commit`` accepts ``-p`` (for "patch") as a shorter name for
 
36
  ``--show-diff``.
 
37
  (Parth Malwankar, #571467)
 
38
  
 
39
* ``bzr ignore`` now supports a ``--default-rules`` option that displays
 
40
  the default ignore rules used by bzr. The flag ``--old-default-rules``
 
41
  is no longer supported by ``ignore``.
 
42
  (Parth Malwankar, #538703)
 
43
 
 
44
* ``bzr pack`` now supports a ``--clean-obsolete-packs`` option that
 
45
  can save disk space by deleting obsolete pack files created during the
 
46
  pack operation.
 
47
  (Parth Malwankar, #304320)
 
48
 
 
49
* New command line option ``--authors`` to ``bzr log`` allows users to
 
50
  select which of the apparent authors and committer should be
 
51
  included in the log. Defaults depend on format. (Martin von Gagern, #513322)
 
52
 
 
53
* Support ``--directory`` option for a number of additional commands:
 
54
  added, annotate, bind, cat, cat-revision, clean-tree, deleted,
 
55
  export, ignore, ignored, lookup-revision, ls, modified, nick,
 
56
  re-sign, unbind, unknowns.
 
57
  (Martin von Gagern, #527878)
 
58
 
 
59
Bug Fixes
 
60
*********
 
61
 
 
62
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
 
63
  group ownership from the containing directory. This allow bzr to work
 
64
  better with sudo.
 
65
  (Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
 
66
 
 
67
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
 
68
  support of bzr-externals and scmproj plugins.
 
69
  (Alexander Belchenko, bug #572098)
 
70
 
 
71
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
 
72
  (Gordon Tyler, #572092)
 
73
 
 
74
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
 
75
  are part of Y ancestry but not part of X ancestry (aka the graph
 
76
  difference).
 
77
  (Vincent Ladeuil, #320119)
 
78
 
 
79
* ``bzr rm`` should not refuse to delete directories which contained a file
 
80
  which has been moved elsewhere in the tree after the previous commit.
 
81
  (Marius Kruger, Daniel Watkins, #129880)
 
82
 
 
83
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
 
84
  (Vincent Ladeuil, #566670)
 
85
 
 
86
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
 
87
  (Vincent Ladeuil, #563997)
 
88
 
 
89
* CommitBuilder refuses to create revisions whose trees have no root.
 
90
  (Aaron Bentley)
 
91
 
 
92
* Don't mention --no-strict when we just issue the warning about unclean trees.
 
93
  (Vincent Ladeuil, #401599)
 
94
 
 
95
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
 
96
  versions before 1.6.
 
97
  (Andrew Bennetts, #528041)
 
98
 
 
99
* Heavyweight checkout operation now shows a message to the user indicating
 
100
  history is being copied.
 
101
  (Parth Malwankar, #538868)
 
102
 
 
103
* Reduce peak memory by one copy of compressed text.
 
104
  (John Arbash Meinel, #566940)
 
105
 
 
106
* Selftest was failing with testtools 0.9.3, which caused an
 
107
  AssertionError raised from a cleanUp to be reported as a Failure, not an
 
108
  Error, breaking on of our test hygiene tests.
 
109
  (Robert Collins, Vincent Ladeuil).
 
110
 
 
111
* ``set_user_option`` with a dict on remote branches no longer fails with
 
112
  an AttributeError.  There is a new ``Branch.set_config_option_dict`` RPC
 
113
  to support this efficiently.
 
114
  (Andrew Bennetts, #430382)
 
115
  
 
116
* Show the filenames when a file rename fails so that the error will be
 
117
  more comprehensible.
 
118
  (Martin Pool, #491763)
 
119
 
 
120
* Unicode characters in aliases are now handled correctly and do not cause
 
121
  UnicodeEncodeError exception. (Parth Malwankar, #529930)
 
122
 
 
123
* Unicode commit messages that are the same as a file name no longer cause
 
124
  UnicodeEncodeError. ``ui.text.show_warning`` now handles unicode
 
125
  messages.
 
126
  (Parth Malwankar, #563646)
 
127
 
 
128
* Using bzr with `lp:` urls behind an http proxy should work.
 
129
  (Robert Collins, #558343)
 
130
 
 
131
Improvements
 
132
************
 
133
 
 
134
* ``append_revisions_only`` will now be interpreted as a boolean and a
 
135
  warning emitted if illegal values are used. Note that for projects
 
136
  that needs to maintain compatibility with previsous bzr versions,
 
137
  only 'True' and 'False' strings must be used (previous versions of
 
138
  bzr will interpret all strings differing from 'True'
 
139
  (case-sensitive) as false.
 
140
  (Brian de Alwis, Vincent Ladeuil)
 
141
 
 
142
* ``bzr ls`` now supports short options for existing long options.
 
143
  ``-k/--kind``, ``-i/--ignored``, ``-u/--unknown`` and ``-0/--null``.
 
144
  (Parth Malwankar, #181124)
 
145
 
 
146
* ``Config.get_user_option_as_bool`` will now warn if a value cannot
 
147
  be interpreted as a boolean.
 
148
  (Vincent Ladeuil)
 
149
 
 
150
Documentation
 
151
*************
 
152
 
 
153
API Changes
 
154
***********
 
155
 
 
156
* Added ``bzrlib.merge.PerFileMerger``, a more convenient way to write
 
157
  some kinds of ``merge_file_content`` hook functions.
 
158
  (Andrew Bennetts)
 
159
  
 
160
* `BzrDir`, `Branch`, `Repository` and `WorkingTree` now all support `user_url`,
 
161
  `user_transport`, `control_url` and `control_transport` members pointing
 
162
  respectively to the directory containing the ``.bzr`` control directory, 
 
163
  and to the directory within ``.bzr`` used for the particular component.
 
164
  All of them inherit from `ControlComponent` which provides default
 
165
  implementations.
 
166
  (Martin Pool)
 
167
 
 
168
* Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
 
169
  expected to return an object which can be used to unlock them. This reduces
 
170
  duplicate code when using cleanups. The previous 'tokens's returned by
 
171
  ``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
 
172
  on the result of the lock_write. ``repository.RepositoryWriteLockResult``
 
173
  and ``branch.BranchWriteLockResult`` document this. (Robert Collins)
 
174
 
 
175
* ``Repository.refresh_data`` may now be called in a write group on
 
176
  pack-based repositories.  Older repositories will still raise an error
 
177
  in this case.  Subclasses of ``Repository`` can still override
 
178
  ``Repository._refresh_data``, but are now responsible for raising
 
179
  ``bzrlib.repository.IsInWriteGroupError`` if they do not support
 
180
  ``refresh_data`` during a write group.
 
181
  (Andrew Bennetts, #574236)
 
182
 
 
183
Internals
 
184
*********
 
185
 
 
186
* ``chk_map._bytes_to_text_key`` is now an optimized function to extract
 
187
  the (file-id, revision-id) key from a CHKInventory entry. This can
 
188
  potentially shave 5-10% time off during a large fetch. Related to bug
 
189
  #562666. (John Arbash Meinel)
 
190
 
 
191
* ``log._get_info_for_log_files`` now takes an add_cleanup callable.
 
192
  (Robert Collins)
 
193
 
 
194
* ``_remember_remote_is_before`` no longer raises AssertionError when
 
195
  suboptimal network behaviour is noticed; instead it just mutters to the
 
196
  log file (and warns the user if they have set the ``hpss`` debug flag).
 
197
  This was causing unnecessary aborts for performance bugs that are minor
 
198
  at worst.
 
199
  (Andrew Bennetts, #528041)
 
200
 
 
201
* Permit bzr to run under ``python -OO`` which reduces the size of bytecode
 
202
  files loaded from disk. To ensure docstrings needed for help are never
 
203
  stripped, the prefix ``__doc__ =`` should now be used.
 
204
  (Martin <gzlist@googlemail.com>)
 
205
 
 
206
Testing
 
207
*******
 
208
 
 
209
* Added ``bzrlib.tests.matchers`` as a place to put matchers, along with
 
210
  our first in-tree matcher. See the module docstring for details.
 
211
  (Robert Collins)
 
212
 
 
213
* ``bzr selftest --parallel=subprocess`` now works correctly on win32.
 
214
   (Gordon Tyler, #551332)
 
215
 
 
216
* Workaround ``Crypto.Random`` check leading to spurious test
 
217
  failures on Lucid, FreeBSD and gentoo.  
 
218
  (Vincent Ladeuil, #528436)
 
219
 
 
220
bzr 2.2b2
 
221
#########
 
222
 
 
223
:2.2b2: 2010-04-16
 
224
 
 
225
This is a somewhat early second beta of the 2.2 series, to fix a python2.4
 
226
incompatibility in the 2.2b1 release.  It also includes a swag of
 
227
performance, usability and correctness improvements: test feedback on all
 
228
of these would be welcome.
 
229
 
 
230
 
 
231
New Features
 
232
************
 
233
 
 
234
* ``bzr diff`` now supports a --format option, which can be used to 
 
235
  select alternative diff formats. (Jelmer Vernooij, #555994)
 
236
 
 
237
Bug Fixes
 
238
*********
 
239
 
 
240
* ``bzr dpush``, ``bzr push`` and ``bzr send`` will now issue a warning
 
241
  instead of failing when dirty trees are involved. The corresponding
 
242
  ``dpush_strict``, ``push_strict`` and ``send_strict`` should be set to
 
243
  True explicitly to get the previous behaviour.  
 
244
  (Vincent Ladeuil, #519319)
 
245
 
 
246
* ``bzr export`` to tar file does not fail if any parent directory
 
247
  contains unicode characters. This works around upstream Python bug
 
248
  http://bugs.python.org/issue8396 .
 
249
  (Parth Malwankar, #413406)
 
250
 
 
251
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
 
252
  (Aaron Bentley, #559436)
 
253
 
 
254
* ``bzr update`` when a pending merge in the working tree has been merged
 
255
  into the master branch will no longer claim that old commits have become
 
256
  pending merges. (Robert Collins, #562079)
 
257
 
 
258
* ``bzrlib.mutabletree.MutableTree.commit`` will now support a passed in
 
259
  config as in previous versions of bzrlib. (Robert Collins)
 
260
 
 
261
* Fix glitch in the warning about unclean trees display.
 
262
  (Vincent Ladeuil, #562665)
 
263
 
 
264
* Fixed Python2.4 incompatibilities in the bzr2.2b1 source tarball.
 
265
  (Martin Pool)
 
266
 
 
267
* Help messages generated by ``RegistryOption.from_kwargs`` list the
 
268
  switches in alphabetical order, rather than in an undefined order.
 
269
  (Martin von Gagern, #559409)
 
270
 
 
271
* Make sure the ``ExecutablePath`` and ``InterpreterPath`` are set in
 
272
  Apport crash reports, to avoid "This problem report applies to a program
 
273
  which is not installed any more" error.
 
274
  (Martin Pool, James Westby, #528114)
 
275
 
 
276
* Reset ``siginterrupt`` flag to False every time we handle a signal
 
277
  installed with ``set_signal_handler(..., restart_syscall=True)`` (from
 
278
  ``bzrlib.osutils``.  Reduces the likelihood of "Interrupted System Call"
 
279
  errors after two window resizes.
 
280
  (Andrew Bennetts)
 
281
 
 
282
* When invoked with a range revision, ``bzr log`` doesn't show revisions
 
283
  that are not part of the Y revisions ancestry anymore when invoked with
 
284
  -rX..Y.
 
285
  (Vincent Ladeuil, #474807)
 
286
 
 
287
* Properly handle ``param_name`` attribute for ``ListOption``.
 
288
  (Martin von Gagern, 387117)
 
289
 
 
290
Improvements
 
291
************
 
292
 
 
293
* ``bzr commit`` will prompt before using a commit message that was
 
294
  generated by a template and not edited by the user.
 
295
  (Robert Collins, #530265)
 
296
 
 
297
* ``bzr diff`` read-locks the trees and branches only once, saving about
 
298
  10-20ms on ``bzr diff`` in a bzr.dev tree.
 
299
  (Andrew Bennetts)
 
300
 
 
301
* ``bzr missing`` read-locks the branches only once.
 
302
  (Andrew Bennetts)
 
303
  
 
304
* ``bzr pull`` locks the branches and tree only once.
 
305
  (Andrew Bennetts)
 
306
  
 
307
* Index lookups in pack repositories search recently hit pack files first.  
 
308
  In repositories with many pack files this can greatly reduce the
 
309
  number of files accessed, the number of bytes read, and the number of
 
310
  read calls.  An incremental pull via plain HTTP takes half the time and
 
311
  bytes for a moderately large repository.  (Andrew Bennetts)
 
312
 
 
313
* Index lookups only re-order the indexes when the hit files aren't
 
314
  already first. Reduces the cost of reordering
 
315
  (John Arbash Meinel, #562429)
 
316
 
 
317
* Less code is loaded at startup.  (Cold-cache start time is about 10-20%
 
318
  less.)
 
319
  (Martin Pool, #553017)
 
320
 
 
321
API Changes
 
322
***********
 
323
 
 
324
* ``bzrlib.diff.get_trees_and_branches_to_diff`` is deprecated.  Use
 
325
  ``get_trees_and_branches_to_diff_locked`` instead.
 
326
  (Andrew Bennetts)
 
327
 
 
328
* ``TreeTransform.commit`` supports the full set of commit parameters, and
 
329
  auto-determines branch nick if not supplied.  (Aaron Bentley)
 
330
  
 
331
Internals
 
332
*********
 
333
 
 
334
* ``bzrlib.commands.Command.run_direct`` is no longer needed - the pre
 
335
  2.1 method of calling run() to perform testing or direct use via the API
 
336
  is now possible again. As part of this, the _operation attribute on
 
337
  Command is now transient and only exists for the duration of ``run()``.
 
338
  (Robert Collins)
 
339
 
8
340
bzr 2.2.0b1
9
341
###########
10
342
 
11
 
:2.2.0b1: Not released yet
 
343
:2.2.0b1: 2010-04-01
12
344
 
13
345
Compatibility Breaks
14
346
********************
139
471
  ``add``.
140
472
  (Parth Malwankar, #335033, #300001)
141
473
 
 
474
* Cope with non-utf8 characters inside ``.bzrignore``.
 
475
  (Jason Spashett, #183504)
 
476
 
142
477
* Correctly interpret "451 Rename/move failure: Directory not empty" from
143
478
  ftp servers while trying to take a lock.
144
479
  (Martin Pool, #528722)
150
485
* Fix ``log`` to better check ancestors even if merged revisions are involved.
151
486
  (Vincent Ladeuil, #476293)
152
487
 
 
488
* Loading a plugin from a given path with ``BZR_PLUGINS_AT`` doesn't depend
 
489
  on os.lisdir() order and is now reliable.
 
490
  (Vincent Ladeuil, #552922).
 
491
 
153
492
* Many IO operations that returned ``EINTR`` were retried even if it
154
493
  wasn't safe to do so via careless use of ``until_no_eintr``.  Bazaar now
155
494
  only retries operations that are safe to retry, and in some cases has
179
518
* Tolerate patches with leading noise in ``bzr-handle-patch``.
180
519
  (Toshio Kuratomi, Martin Pool, #502076)
181
520
 
182
 
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
183
 
  group ownership from the containing directory. This allow bzr to work
184
 
  better with sudo.
185
 
  (Parth Malwankar, #376388)
 
521
* ``update -r`` now supports updating to revisions that are not on
 
522
  mainline (i.e. it supports dotted revisions).
 
523
  (Parth Malwankar, #517800)
 
524
 
 
525
* Use first apparent author not committer in GNU Changelog format.
 
526
  (Martin von Gagern, #513322)
186
527
 
187
528
API Changes
188
529
***********
214
555
* New method ``BzrDir.list_branches()`` that returns a sequence of branches 
215
556
  present in a control directory. (Jelmer Vernooij)
216
557
 
 
558
* New method ``Repository.get_known_graph_ancestry()``. 
 
559
  (Jelmer Vernooij, #495502)
 
560
 
217
561
* New transport methods ``readlink``, ``symlink`` and ``hardlink``.
218
562
  (Neil Santos)
219
563
 
265
609
  dependency regressions.
266
610
  (Martin Pool)
267
611
 
 
612
* PQM will now run with subunit output. To analyze a PQM error use
 
613
  tribunal, or cat log | subunit-filter | subunit2pyunit. (Robert Collins)
 
614
 
268
615
* Stop sending apport crash files to ``.cache`` in the directory from
269
616
  which ``bzr selftest`` was run.  (Martin Pool, #422350)
270
617
 
275
622
  happens, and another warning will be written if the log file could not
276
623
  be closed after retrying 100 times.  (Andrew Bennetts, #531746)
277
624
 
 
625
bzr 2.1.2
 
626
#########
 
627
 
 
628
:2.1.2: NOT RELEASED YET
 
629
 
 
630
Bug Fixes
 
631
*********
 
632
 
 
633
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
 
634
  (Aaron Bentley, #559436)
 
635
 
 
636
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
 
637
  versions before 1.6.
 
638
  (Andrew Bennetts, #528041)
 
639
 
 
640
* Reset ``siginterrupt`` flag to False every time we handle a signal
 
641
  installed with ``set_signal_handler(..., restart_syscall=True)`` (from
 
642
  ``bzrlib.osutils``.  Reduces the likelihood of "Interrupted System Call"
 
643
  errors after two window resizes.
 
644
  (Andrew Bennetts)
 
645
 
 
646
Internals
 
647
*********
 
648
 
 
649
* ``_remember_remote_is_before`` no longer raises AssertionError when
 
650
  suboptimal network behaviour is noticed; instead it just mutters to the
 
651
  log file (and warns the user if they have set the ``hpss`` debug flag).
 
652
  This was causing unnecessary aborts for performance bugs that are minor
 
653
  at worst.
 
654
  (Andrew Bennetts, #528041)
 
655
 
 
656
 
278
657
bzr 2.1.1
279
658
#########
280
659
 
308
687
  problems importing bzrlib from a non-main thread.
309
688
  (Elliot Murphy, #521989)
310
689
 
 
690
* Repositories accessed via a smart server now reject being stacked on a
 
691
  repository in an incompatible format, as is the case when accessing them
 
692
  via other methods.  This was causing fetches from those repositories via
 
693
  a smart server (e.g. using ``bzr branch``) to receive invalid data.
 
694
  (Andrew Bennetts, #562380)
 
695
 
311
696
* Standardize the error handling when creating a new ``StaticTuple``
312
697
  (problems will raise TypeError). (Matt Nordhoff, #457979)
313
698
 
687
1072
  tests that 'failed' - they're all just failures.
688
1073
  (Martin Pool)
689
1074
 
 
1075
bzr 2.0.6
 
1076
#########
 
1077
 
 
1078
:2.0.6: NOT RELEASED YET
 
1079
 
 
1080
Bug Fixes
 
1081
*********
 
1082
 
 
1083
* Additional merges after an unrelated branch has been merged with its
 
1084
  history no longer crash when deleted files are involved.
 
1085
  (Vincent Ladeuil, John Arbash Meinel, #375898)
 
1086
 
 
1087
* ``bzr revert`` now only takes write lock on working tree, instead of on 
 
1088
  both working tree and branch.
 
1089
  (Danny van Heumen, #498409)
 
1090
 
 
1091
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
 
1092
  permissions as ``.bzr`` directory on a POSIX OS.
 
1093
  (Parth Malwankar, #262450)
 
1094
 
 
1095
* Repositories accessed via a smart server now reject being stacked on a
 
1096
  repository in an incompatible format, as is the case when accessing them
 
1097
  via other methods.  This was causing fetches from those repositories via
 
1098
  a smart server (e.g. using ``bzr branch``) to receive invalid data.
 
1099
  (Andrew Bennetts, #562380)
690
1100
 
691
1101
bzr 2.0.5
692
1102
#########
693
1103
 
694
 
:Codename:
695
 
:2.0.5: NOT RELEASED YET
 
1104
:2.0.5: 2010-03-23
 
1105
 
 
1106
This fifth release in our 2.0 series addresses several user-inconvenience
 
1107
bugs.  None are critical, but upgrading is recommended for all users on
 
1108
earlier 2.0 releases.
696
1109
 
697
1110
Bug Fixes
698
1111
*********
721
1134
* Handle renames correctly when there are files or directories that 
722
1135
  differ only in case.  (Chris Jones, Martin Pool, #368931)
723
1136
 
724
 
* Fixed CHM generation by moving the NEWS section template into
725
 
  a separate file. (Ian Clatworthy, #524184)
726
 
 
727
1137
* If ``bzr push --create-prefix`` triggers an unexpected ``NoSuchFile``
728
1138
  error, report that error rather than failing with an unhelpful
729
1139
  ``UnboundLocalError``.
743
1153
* Added ``location-alias`` help topic.
744
1154
  (Andrew Bennetts, #337834)
745
1155
 
 
1156
* Fixed CHM generation by moving the NEWS section template into
 
1157
  a separate file. (Ian Clatworthy, #524184)
 
1158
 
 
1159
 
746
1160
bzr 2.0.4
747
1161
#########
748
1162