13
13
Compatibility Breaks
14
14
********************
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.
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
27
(Parth Malwankar, #549310)
29
* ``bzrlib.commands.Command`` will now raise ValueError during
30
construction if there is no __doc__ set. (Robert Collins)
31
47
(Parth Malwankar, #304320)
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)
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)
39
65
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
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)
71
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
72
(Gordon Tyler, #572092)
41
74
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
42
75
are part of Y ancestry but not part of X ancestry (aka the graph
44
77
(Vincent Ladeuil, #320119)
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)
46
83
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
47
84
(Vincent Ladeuil, #566670)
56
93
versions before 1.6.
57
94
(Andrew Bennetts, #528041)
96
* Heavyweight checkout operation now shows a message to the user indicating
97
history is being copied.
98
(Parth Malwankar, #538868)
59
100
* Reduce peak memory by one copy of compressed text.
60
101
(John Arbash Meinel, #566940)
63
104
more comprehensible.
64
105
(Martin Pool, #491763)
107
* Unicode characters in aliases are now handled correctly and do not cause
108
UnicodeEncodeError exception. (Parth Malwankar, #529930)
110
* Unicode commit messages that are the same as a file name no longer cause
111
UnicodeEncodeError. ``ui.text.show_warning`` now handles unicode
113
(Parth Malwankar, #563646)
115
* Using bzr with `lp:` urls behind an http proxy should work.
116
(Robert Collins, #558343)
74
126
(case-sensitive) as false.
75
127
(Brian de Alwis, Vincent Ladeuil)
129
* ``bzr ls`` now supports short options for existing long options.
130
``-k/--kind``, ``-i/--ignored``, ``-u/--unknown`` and ``-0/--null``.
131
(Parth Malwankar, #181124)
77
133
* ``Config.get_user_option_as_bool`` will now warn if a value cannot
78
134
be interpreted as a boolean.
155
* Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
156
expected to return an object which can be used to unlock them. This reduces
157
duplicate code when using cleanups. The previous 'tokens's returned by
158
``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
159
on the result of the lock_write. ``repository.RepositoryWriteLockResult``
160
and ``branch.BranchWriteLockResult`` document this. (Robert Collins)
162
* ``Repository.refresh_data`` may now be called in a write group on
163
pack-based repositories. Older repositories will still raise an error
164
in this case. Subclasses of ``Repository`` can still override
165
``Repository._refresh_data``, but are now responsible for raising
166
``bzrlib.repository.IsInWriteGroupError`` if they do not support
167
``refresh_data`` during a write group.
168
(Andrew Bennetts, #574236)
173
* ``chk_map._bytes_to_text_key`` is now an optimized function to extract
174
the (file-id, revision-id) key from a CHKInventory entry. This can
175
potentially shave 5-10% time off during a large fetch. Related to bug
176
#562666. (John Arbash Meinel)
178
* ``log._get_info_for_log_files`` now takes an add_cleanup callable.
102
181
* ``_remember_remote_is_before`` no longer raises AssertionError when
103
182
suboptimal network behaviour is noticed; instead it just mutters to the
104
183
log file (and warns the user if they have set the ``hpss`` debug flag).
232
311
* ``bzrlib.diff.get_trees_and_branches_to_diff`` is deprecated. Use
233
312
``get_trees_and_branches_to_diff_locked`` instead.
234
313
(Andrew Bennetts)
315
* ``TreeTransform.commit`` supports the full set of commit parameters, and
316
auto-determines branch nick if not supplied. (Aaron Bentley)