~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to NEWS

  • Committer: Vincent Ladeuil
  • Date: 2009-04-27 16:10:10 UTC
  • mto: (4310.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4311.
  • Revision ID: v.ladeuil+lp@free.fr-20090427161010-7swfzeagf63cpixd
Fix bug #367726 by reverting some default user handling introduced
while fixing bug #256612.

* bzrlib/transport/ssh.py:
(_paramiko_auth): Explicitly use getpass.getuser() as default
user.

* bzrlib/transport/ftp/_gssapi.py:
(GSSAPIFtpTransport._create_connection): Explicitly use
getpass.getuser() as default user.

* bzrlib/transport/ftp/__init__.py:
(FtpTransport._create_connection): Explicitly use
getpass.getuser() as default user.

* bzrlib/tests/test_sftp_transport.py:
(TestUsesAuthConfig.test_sftp_is_none_if_no_config)
(TestUsesAuthConfig.test_sftp_doesnt_prompt_username): Revert to
None as the default user.

* bzrlib/tests/test_remote.py:
(TestRemoteSSHTransportAuthentication): The really offending one:
revert to None as the default user.

* bzrlib/tests/test_config.py:
(TestAuthenticationConfig.test_username_default_no_prompt): Update
test (and some PEP8).

* bzrlib/smtp_connection.py:
(SMTPConnection._authenticate): Revert to None as the default
user.

* bzrlib/plugins/launchpad/account.py:
(_get_auth_user): Revert default value handling.

* bzrlib/config.py:
(AuthenticationConfig.get_user): Fix doc-string. Leave default
value handling to callers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
Compatibility Breaks
13
13
********************
14
14
 
 
15
* ``bzr ls`` is no longer recursive by default. To recurse, use the
 
16
  new ``-R`` option. The old ``--non-recursive`` option has been removed.
 
17
  If you alias ``ls`` to ``ls -R``, you can disable recursion using
 
18
  ``--no-recursive`` instead.  (Ian Clatworthy)
 
19
 
 
20
New Features
 
21
************
 
22
 
 
23
* Plugins can now define their own annotation tie-breaker when two revisions
 
24
  introduce the exact same line. See ``bzrlib.annotate._break_annotation_tie``
 
25
  Be aware though that this is temporary, private (as indicated by the leading
 
26
  '_') and a first step to address the problem. (Vincent Ladeuil, #348459)
 
27
 
 
28
* New command ``bzr dpush`` that can push changes to foreign 
 
29
  branches (svn, git) without setting custom bzr-specific metadata.
 
30
  (Jelmer Vernooij)
 
31
 
 
32
Improvements
 
33
************
 
34
 
 
35
Bug Fixes
 
36
*********
 
37
 
 
38
* End-Of-Line content filters are now loaded correctly.
 
39
  (Ian Clatworthy, Brian de Alwis, #355280)
 
40
 
 
41
* Fix TypeError in running ``bzr break-lock`` on some URLs.
 
42
  (Alexander Belchenko, Martin Pool, #365891)
 
43
 
 
44
* ``bzr send`` works to send emails again using MAPI.
 
45
  (Neil Martinsen-Burrell, #346998)
 
46
 
 
47
* Non-recursive ``bzr ls`` now works properly when a path is specified.
 
48
  (Jelmer Vernooij, #357863)
 
49
 
 
50
* Fix a bug in the pure-python ``GroupCompress`` code when handling copies
 
51
  longer than 64KiB. (John Arbash Meinel, #364900)
 
52
 
 
53
* ssh usernames are honoured for bzr+ssh connections.
 
54
  (Vincent Ladeuil, #367726)
 
55
 
 
56
Documentation
 
57
*************
 
58
 
 
59
API Changes
 
60
***********
 
61
 
 
62
Internals
 
63
*********
 
64
 
 
65
* ``bzrlib.branch.Branch.set_parent`` is now present on the base branch
 
66
  class and will call ``_set_parent_location`` after doing unicode 
 
67
  encoding. (Robert Collins)
 
68
 
 
69
* ``bzrlib.remote.RemoteBranch._set_parent_location`` will use a new verb
 
70
  ``Branch.set_parent_location`` removing further VFS operations.
 
71
  (Robert Collins)
 
72
 
 
73
* ``bzrlib.bzrdir.BzrDir._get_config`` now returns a ``TransportConfig``
 
74
  or similar when the dir supports configuration settings. The base class
 
75
  defaults to None. There is a matching new server verb
 
76
  ``BzrDir.get-config_file`` to reduce roundtrips for getting BzrDir
 
77
  configuration. (Robert Collins)
 
78
 
 
79
* ``bzrlib.tests.ExtendedTestResult`` has new methods ``startTests``
 
80
  called before the first test is started, ``done`` called after the last
 
81
  test completes, and a new parameter ``strict``. (Robert Collins)
 
82
 
 
83
* Fallback ``CredentialStore`` instances registered with ``fallback=True``
 
84
  are now be able to provide credentials if obtaining credentials 
 
85
  via ~/.bazaar/authentication.conf fails. (Jelmer Vernooij, 
 
86
  Vincent Ladeuil, #321918)
 
87
 
 
88
* New smart server verb ``BzrDir.initialize_ex`` which implements a
 
89
  refactoring to the core of clone allowing less round trips on new
 
90
  branches. (Robert Collins)
 
91
 
 
92
bzr 1.14rc2
 
93
###########
 
94
:Codename: brisbane-core
 
95
:1.14rc1: 2009-04-06
 
96
:1.14rc2: 2009-04-19
 
97
 
 
98
New formats 1.14 and 1.14-rich-root supporting End-Of-Line (EOL) conversions,
 
99
keyword templating (via the bzr-keywords plugin) and generic content filtering.
 
100
End-of-line conversion is now supported for formats supporting content
 
101
filtering.
 
102
 
 
103
Changes from RC1 to RC2
 
104
***********************
 
105
 
 
106
* Fix for bug 358037 Revision not in
 
107
  bzrlib.groupcompress.GroupCompressVersionedFiles (Brian de Alwis, 
 
108
  John A Meinel)
 
109
 
 
110
* Fix for bug 354036 ErrorFromSmartServer - AbsentContentFactory object has no
 
111
  attribute 'get_bytes_as' exception while pulling from Launchpad 
 
112
  (Jean-Francois Roy, Andrew Bennetts, Robert Collins)
 
113
 
 
114
* Fix for bug 355280 eol content filters are never loaded and thus never
 
115
  applied (Brian de Alwis, Ian Clatworthy)
 
116
 
 
117
* bzr.dev -r4280  Change _fetch_uses_deltas = False for CHK repos until we can
 
118
  write a better fix. (John Arbash Meinel, Robert Collins)
 
119
 
 
120
* Fix for bug 361574 uncommit recommends undefined --levels and -n options
 
121
  (Marius Kruger, Ian Clatworthy)
 
122
 
 
123
* bzr.dev r4289 as cherrypicked at lp:~spiv/bzr/stacking-cherrypick-1.14 
 
124
  (Andrew Bennetts, Robert Collins)
 
125
 
 
126
Compatibility Breaks
 
127
********************
 
128
 
 
129
* A previously disabled code path to accelerate getting configuration
 
130
  settings from a smart server has been reinstated. We think this *may*
 
131
  cause a incompatibility with servers older than bzr 0.15. We intend
 
132
  to issue a point release to address this if it turns out to be a
 
133
  problem. (Robert Collins, Andrew Bennetts)
 
134
 
15
135
* bzr no longer autodetects nested trees as 'tree-references'.  They
16
136
  must now be explicitly added tree references.  At the commandline, use
17
137
  join --reference instead of add.  (Aaron Bentley)
18
138
 
 
139
* The ``--long`` log format (the default) no longer shows merged
 
140
  revisions implicitly, making it consistent with the ``short`` and
 
141
  ``line`` log formats.  To see merged revisions for just a given
 
142
  revision, use ``bzr log -n0 -rX``. To see every merged revision,
 
143
  use ``bzr log -n0``.  (Ian Clatworthy)
 
144
 
19
145
New Features
20
146
************
21
147
 
22
 
* New ``guess-renames`` command recognizes renames after they occur.
 
148
* New formats ``1.14`` and ``1.14-rich-root`` supporting End-Of-Line
 
149
  (EOL) conversions, keyword templating (via the bzr-keywords plugin)
 
150
  and generic content filtering. These formats replace the experimental
 
151
  ``development-wt5`` and ``development-wt5-rich-root`` formats
 
152
  respectively, but have support for filtered views disabled.
 
153
  (Ian Clatworthy)
 
154
 
 
155
* New ``mv --auto`` option recognizes renames after they occur.
23
156
  (Aaron Bentley)
24
157
 
 
158
* ``bzr`` can now get passwords from stdin without requiring a controlling
 
159
  terminal (i.e. by redirecting stdin). (Vincent Ladeuil)
 
160
 
25
161
* ``bzr log`` now supports filtering of multiple files and directories
26
162
  and will show changes that touch any of them. Furthermore,
27
163
  directory filtering now shows the changes to any children of that
46
182
  trees). See ``bzr help content-filters`` for further details.
47
183
  (Ian Clatworthy, Alexander Belchenko)
48
184
 
 
185
* End-of-line conversion is now supported for formats supporting
 
186
  content filtering. See ``bzr help eol`` for details.
 
187
  (Ian Clatworthy)
 
188
 
 
189
* Newly-blessed `join` command allows combining two trees into one.
 
190
  (Aaron Bentley)
 
191
 
49
192
Improvements
50
193
************
51
194
 
67
210
  version controlled files match the ignore pattern. (Neil
68
211
  Martinsen-Burrell, #248895)
69
212
 
 
213
* ``bzr log`` now has ``--include-merges`` as an alias for ``--levels 0``.
 
214
  (Ian Clatworthy)
 
215
 
70
216
* ``bzr send`` is faster on repositories with deep histories.
71
217
  (Ian Clatworthy)
72
218
 
 
219
* IPv6 literals are accepted in URLs.
 
220
  (stlman, Martin Pool, Jelmer Vernooij, #165014)
 
221
 
73
222
* Progress bars now show the rate of network activity for
74
223
  ``bzr+ssh://`` and ``bzr://`` connections.  (Andrew Bennetts)
75
224
 
 
225
* Prompt for user names if they are not in the configuration. 
 
226
  (Jelmer Vernooij, #256612)
 
227
 
76
228
* Pushing to a stacked pack-format branch on a 1.12 or older smart server
77
229
  now takes many less round trips.  (Andrew Bennetts, Robert Collins,
78
230
  #294479)
81
233
  implemented using a new ``Repository.insert_stream_locked`` RPC.
82
234
  (Andrew Bennetts, Robert Collins)
83
235
 
 
236
* The "ignoring files outside view: .." message has been re-worded
 
237
  to "Ignoring files outside view. View is .." to reduce confusion
 
238
  about what was being considered and what was being ignored.
 
239
  (Ian Clatworthy)
 
240
 
 
241
* The ``long`` log formatter now shows [merge] indicators. If
 
242
  only one level of revisions is displayed and merges are found,
 
243
  the ``long`` and ``short`` log formatters now tell the user
 
244
  how to see the hidden merged revisions.  (Ian Clatworthy)
 
245
 
 
246
* The ``brisbane-core`` project has delivered its beta format
 
247
  ``development6-rich-root``. This format is suitable for judicious
 
248
  testing by early adopters. In particular if you are benchmarking bzr
 
249
  performance please be sure to test using this format. At this stage
 
250
  more information is best obtained by contacting the Bazaar mailing list
 
251
  or IRC channel if you are interested in using this format. We will make
 
252
  end user documentation available closer to blessing the format as
 
253
  production ready. (Robert Collins, John Arbash Meinel, Ian Clatworthy,
 
254
  Vincent Ladeuil, Andrew Bennetts, Martin Pool)
 
255
 
84
256
* Tildes are no longer escaped. No more %7Euser/project/branch!
85
257
  (Jonathan Lange)
86
258
 
87
259
Bug Fixes
88
260
*********
89
261
 
 
262
* Pushing a new stacked branch will also push the parent inventories for
 
263
  revisions at the stacking boundary.  This makes sure that the stacked
 
264
  branch has enough data to calculate inventory deltas for all of its
 
265
  revisions (without requiring the fallback branch).  This avoids
 
266
  "'AbsentContentFactory' object has no attribute 'get_bytes_as'" errors
 
267
  when fetching the stacked branch from a 1.13 (or later) smart server.
 
268
  This partially fixes #354036.  (Andrew Bennetts, Robert Collins)
 
269
 
 
270
* End-Of-Line content filters are now loaded correctly.
 
271
  (Ian Clatworthy, Brian de Alwis, #355280)
 
272
 
90
273
* Authentication plugins now receive all the parameters from the request
91
274
  itself (aka host, port, realm, path, etc). Previously, only the 
92
275
  authentication section name, username and encoded password were 
95
278
* bzr gives a better message if an invalid regexp is passed to ``bzr log
96
279
  -m``.  (Anne Mohsen, Martin Pool)
97
280
 
 
281
* ``bzr split`` now says "See also: join" (Aaron Bentley, #335015)
 
282
 
 
283
* ``bzr version-info`` now works in empty branches. (Jelmer Vernooij,
 
284
  #313028)
 
285
 
98
286
* Fix "is not a stackable format" error when pushing a
99
287
  stackable-format branch with an unstackable-format repository to a
100
288
  destination with a default stacking policy.  (Andrew Bennetts)
102
290
* Fixed incorrect "Source format does not support stacking" warning
103
291
  when pushing to a smart server.  (Andrew Bennetts, #334114)
104
292
 
 
293
* Fix 'make check-dist-tarball' failure by converting paths to unicode when
 
294
  needed. (Vincent Ladeuil, #355454)
 
295
 
105
296
* Fixed "Specified file 'x/y/z' is outside current view: " occurring
106
 
  on ``bzr add x/y/z`` in WorkingTree5 formats (e.g. ``development-wt5``)
107
 
  when no view is defined.  (Ian Clatworthy, #344708)
 
297
  on ``bzr add x/y/z`` in formats supporting views when no view is
 
298
  defined.  (Ian Clatworthy, #344708)
108
299
 
109
300
* It is no longer possible to fetch between repositories while the
110
301
  target repository is in a write group. This prevents race conditions
122
313
  both branches, we know that the trunk for the project can be read too,
123
314
  so the upgrade will not inconvenience users. (Robert Collins, #345169)
124
315
 
 
316
* Pushing a new stacked branch will also push the parent inventories for
 
317
  revisions at the stacking boundary.  This makes sure that the stacked
 
318
  branch has enough data to calculate inventory deltas for all of its
 
319
  revisions (without requiring the fallback branch).  This avoids
 
320
  "'AbsentContentFactory' object has no attribute 'get_bytes_as'" errors
 
321
  when fetching the stacked branch from a 1.13 (or later) smart server.
 
322
  This partially fixes #354036.  (Andrew Bennetts, Robert Collins)
 
323
 
 
324
* The full test suite is passing again on OSX. Several minor issues (mostly
 
325
  test related) have been fixed. (Vincent Ladeuil, #355273).
 
326
 
125
327
* The GNU Changelog formatter is slightly improved in the case where
126
328
  the delta is empty, and now correctly claims not to support tags.
127
329
  (Andrea Bolognani)
129
331
* Shelve can now shelve changes to a symlink target.
130
332
  (James Westby, #341558)
131
333
 
 
334
* The help for the ``info`` command has been corrected.
 
335
  (Ian Clatworthy, #351931)
 
336
 
 
337
* Upgrade will now use a sensible default format if the source repository
 
338
  uses rich roots.  (Jelmer Vernooij, #252908)
 
339
 
132
340
Documentation
133
341
*************
134
342
 
142
350
API Changes
143
351
***********
144
352
 
145
 
* APIs deprecated in 1.6 and previous verisons of bzr are now removed.
 
353
* APIs deprecated in 1.6 and previous versions of bzr are now removed.
146
354
  (Martin Pool)
147
355
 
 
356
* ``CommitReporter`` is no longer called with ``unchanged`` status during
 
357
  commit - this was a full-tree overhead that bzr no longer performs.
 
358
  (Robert Collins)
 
359
 
 
360
* New abstract ``UIFactory`` method ``get_username`` which will be called to 
 
361
  obtain the username to use when connecting to remote machines. 
 
362
  (Jelmer Vernooij)
 
363
 
148
364
* New API ``Inventory.filter()`` added that filters an inventory by
149
365
  a set of file-ids so that only those fileids, their parents and
150
366
  their children are included.  (Ian Clatworthy)
166
382
* The ``pb`` argument to ``fetch()`` is deprecated.
167
383
  (Martin Pool)
168
384
 
 
385
* The ``Serializer`` class and the serializer ``format registry`` have moved
 
386
  from ``bzrlib.xml_serializer`` to ``bzrlib.serializer``. (Jelmer Vernooij)
 
387
 
169
388
* The smart server jail now hooks into BzrDir.open to prevent any BzrDir
170
389
  that is not inside the backing transport from being opened.  See the
171
390
  module documentation for ``bzrlib.smart.request`` for details.
172
391
  (Andrew Bennetts, Robert Collins)
173
392
 
 
393
* ``Tree.get_symlink_target`` now always returns a unicode string result
 
394
  or None. Previously it would return the bytes from reading the link
 
395
  which could be in any arbitrary encoding. (Robert Collins)
 
396
 
174
397
Testing
175
398
*******
176
399
 
192
415
Internals
193
416
*********
194
417
 
 
418
* Added ``chk_map`` for fast, trie-based storage of tuple to string maps.
 
419
  (Robert Collins, John Arbash Meinel, Vincent Ladeuil)
 
420
 
 
421
* Added ``bzrlib.chk_map`` for fast, trie-based storage of tuple to string
 
422
  maps.  (Robert Collins, John Arbash Meinel, Vincent Ladeuil)
 
423
 
 
424
* Added ``bzrlib.inventory_delta`` module.  This will be used for
 
425
  serializing and deserializing inventory deltas for more efficient
 
426
  streaming on the the network.  (Robert Collins, Andrew Bennetts)
 
427
 
 
428
* ``Branch._get_config`` has been added, which splits out access to the
 
429
  specific config file from the branch. This is used to let RemoteBranch
 
430
  avoid constructing real branch objects to access configuration settings.
 
431
  (Robert Collins, Andrew Bennetts)
 
432
 
 
433
* ``Branch`` now implements ``set_stacked_on_url`` in the base class as
 
434
  the implementation is generic and should impact foreign formats. This
 
435
  helps performance for ``RemoteBranch`` push operations to new stacked
 
436
  branches. (Robert Collins, Andrew Bennetts)
 
437
 
195
438
* ``BtreeIndex._spill_mem_keys_to_disk()`` now generates disk index with
196
439
  optmizations turned off. This only has effect when processing > 100,000
197
440
  keys during something like ``bzr pack``. (John Arbash Meinel)
219
462
  objects, allowing better enforcement of the smart server jail when
220
463
  dealing with stacked branches. (Robert Collins, Andrew Bennetts)
221
464
 
 
465
* New hook ``RioVersionInfoBuilder.revision``, allowing extra entries 
 
466
  to be added to the stanza that is printed for a particular revision.
 
467
  (Jelmer Vernooij)
 
468
 
222
469
* New repository method ``refresh_data`` to cause any repository to
223
470
  make visible data inserted into the repository by a smart server
224
471
  fetch operation. (Robert Collins, Andrew Bennetts)
225
472
 
 
473
* ``register_filter_stack_map`` now takes an optional fallback parameter,
 
474
  a callable to invoke if a preference has a value not in the map
 
475
  of filter stacks. This enhancement allows, for example,  bzr-svn to
 
476
  handle existing svn properties that define a list of keywords to be
 
477
  expanded.  (Ian Clatworthy)
 
478
 
 
479
* ``RemoteBranchConfig`` will use a new verb ``Branch.set_config_option``
 
480
  to write config settings to smart servers that support this, saving
 
481
  5 round trips on the stacked streaming acceptance test.
 
482
  (Robert Collins, Andrew Bennetts)
 
483
 
 
484
* ``RemoteBranch`` now provides ``_get_config`` for access to just the
 
485
  branch specific configuration from a remote server, which uses the 
 
486
  already existing ``Branch.get_config_file`` smart verb.
 
487
  (Robert Collins, Andrew Bennetts)
 
488
 
226
489
* ``RemoteRepository`` will now negatively cache missing revisions during
227
490
  ``get_parent_map`` while read-locked. Write-locks are unaffected.
228
491
  (Robert Collins, Andrew Bennetts)
241
504
  building a working tree (file.writelines(str) is very inefficient). This
242
505
  can have a large effect on ``bzr checkout`` times. (John Arbash Meinel)
243
506
 
 
507
* selftest now supports a --parallel option, with values of 'fork' or
 
508
  'subprocess' to run the test suite in parallel. Currently only linux
 
509
  machine work, other platforms need patches submitted. (Robert Collins,
 
510
  Vincent Ladeuil)
 
511
 
244
512
* ``tests.run_suite`` has a new parameter ``suite_decorators``, a list of 
245
513
  callables to use to decorate the test suite. Such decorators can add or
246
514
  remove tests, or even remote the test suite to another machine if
8119
8387
  about future directions. (Robert Collins/Martin Pool)
8120
8388
 
8121
8389
* bzrlib.transport.http has been modified so that only 404 urllib errors
8122
 
  are returned as NoSuchFile. Other exceptions will propogate as normal.
 
8390
  are returned as NoSuchFile. Other exceptions will propagate as normal.
8123
8391
  This allows debuging of actual errors. (Robert Collins)
8124
8392
 
8125
8393
* bzrlib.transport.Transport now accepts *ONLY* url escaped relative paths