~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to NEWS

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-05-11 11:47:36 UTC
  • mfrom: (5200.3.8 lock_return)
  • Revision ID: pqm@pqm.ubuntu.com-20100511114736-mc1sq9zyo3vufec7
(lifeless) Provide a consistent interface to Tree, Branch,
 Repository where lock methods return an object with an unlock method to
 unlock the lock. This breaks the API for Branch,
 Repository on their lock_write methods. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
Compatibility Breaks
14
14
********************
15
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
 
16
24
* ``bzr`` does not try to guess the username as ``username@hostname``
17
25
  and requires it to be explictly set. This can be set using ``bzr
18
26
  whoami``.
141
149
  implementations.
142
150
  (Martin Pool)
143
151
 
 
152
* Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
 
153
  expected to return an object which can be used to unlock them. This reduces
 
154
  duplicate code when using cleanups. The previous 'tokens's returned by
 
155
  ``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
 
156
  on the result of the lock_write. ``repository.RepositoryWriteLockResult``
 
157
  and ``branch.BranchWriteLockResult`` document this. (Robert Collins)
 
158
 
144
159
* ``Repository.refresh_data`` may now be called in a write group on
145
160
  pack-based repositories.  Older repositories will still raise an error
146
161
  in this case.  Subclasses of ``Repository`` can still override
152
167
Internals
153
168
*********
154
169
 
 
170
* ``log._get_info_for_log_files`` now takes an add_cleanup callable.
 
171
  (Robert Collins)
 
172
 
155
173
* ``_remember_remote_is_before`` no longer raises AssertionError when
156
174
  suboptimal network behaviour is noticed; instead it just mutters to the
157
175
  log file (and warns the user if they have set the ``hpss`` debug flag).
167
185
Testing
168
186
*******
169
187
 
 
188
* Added ``bzrlib.tests.matchers`` as a place to put matchers, along with
 
189
  our first in-tree matcher. See the module docstring for details.
 
190
  (Robert Collins)
 
191
 
170
192
* ``bzr selftest --parallel=subprocess`` now works correctly on win32.
171
193
   (Gordon Tyler, #551332)
172
194