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)
59
* The bash_completion plugin from the bzr-bash-completion project has
60
been merged into the tree. It provides a bash-completion command and
61
replaces the outdated ``contrib/bash/bzr`` script with a version
62
using the plugin. (Martin von Gagern, #560030)
39
70
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
72
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
73
support of bzr-externals and scmproj plugins.
74
(Alexander Belchenko, bug #572098)
76
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
77
(Gordon Tyler, #572092)
41
79
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
42
80
are part of Y ancestry but not part of X ancestry (aka the graph
44
82
(Vincent Ladeuil, #320119)
84
* ``bzr rm`` should not refuse to delete directories which contained a file
85
which has been moved elsewhere in the tree after the previous commit.
86
(Marius Kruger, Daniel Watkins, #129880)
46
88
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
47
89
(Vincent Ladeuil, #566670)
49
91
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
50
92
(Vincent Ladeuil, #563997)
94
* CommitBuilder refuses to create revisions whose trees have no root.
52
97
* Don't mention --no-strict when we just issue the warning about unclean trees.
53
98
(Vincent Ladeuil, #401599)
56
101
versions before 1.6.
57
102
(Andrew Bennetts, #528041)
104
* Improved progress bar for fetch (2a format only). Bazaar now shows an
105
estimate of the number of records to be fetched vs actually fetched.
106
(Parth Malwankar, #374740, #538868)
59
108
* Reduce peak memory by one copy of compressed text.
60
109
(John Arbash Meinel, #566940)
111
* Selftest was failing with testtools 0.9.3, which caused an
112
AssertionError raised from a cleanUp to be reported as a Failure, not an
113
Error, breaking on of our test hygiene tests.
114
(Robert Collins, Vincent Ladeuil).
116
* ``set_user_option`` with a dict on remote branches no longer fails with
117
an AttributeError. There is a new ``Branch.set_config_option_dict`` RPC
118
to support this efficiently.
119
(Andrew Bennetts, #430382)
62
121
* Show the filenames when a file rename fails so that the error will be
63
122
more comprehensible.
64
123
(Martin Pool, #491763)
125
* Unicode characters in aliases are now handled correctly and do not cause
126
UnicodeEncodeError exception. (Parth Malwankar, #529930)
128
* Unicode commit messages that are the same as a file name no longer cause
129
UnicodeEncodeError. ``ui.text.show_warning`` now handles unicode
131
(Parth Malwankar, #563646)
133
* Using bzr with `lp:` urls behind an http proxy should work.
134
(Robert Collins, #558343)
74
144
(case-sensitive) as false.
75
145
(Brian de Alwis, Vincent Ladeuil)
147
* ``bzr ls`` now supports short options for existing long options.
148
``-k/--kind``, ``-i/--ignored``, ``-u/--unknown`` and ``-0/--null``.
149
(Parth Malwankar, #181124)
77
151
* ``Config.get_user_option_as_bool`` will now warn if a value cannot
78
152
be interpreted as a boolean.
173
* Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
174
expected to return an object which can be used to unlock them. This reduces
175
duplicate code when using cleanups. The previous 'tokens's returned by
176
``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
177
on the result of the lock_write. ``repository.RepositoryWriteLockResult``
178
and ``branch.BranchWriteLockResult`` document this. (Robert Collins)
180
* ``Repository.refresh_data`` may now be called in a write group on
181
pack-based repositories. Older repositories will still raise an error
182
in this case. Subclasses of ``Repository`` can still override
183
``Repository._refresh_data``, but are now responsible for raising
184
``bzrlib.repository.IsInWriteGroupError`` if they do not support
185
``refresh_data`` during a write group.
186
(Andrew Bennetts, #574236)
191
* ``chk_map._bytes_to_text_key`` is now an optimized function to extract
192
the (file-id, revision-id) key from a CHKInventory entry. This can
193
potentially shave 5-10% time off during a large fetch. Related to bug
194
#562666. (John Arbash Meinel)
196
* ``log._get_info_for_log_files`` now takes an add_cleanup callable.
102
199
* ``_remember_remote_is_before`` no longer raises AssertionError when
103
200
suboptimal network behaviour is noticed; instead it just mutters to the
104
201
log file (and warns the user if they have set the ``hpss`` debug flag).
111
208
stripped, the prefix ``__doc__ =`` should now be used.
112
209
(Martin <gzlist@googlemail.com>)
211
* No longer require zlib headers to build extensions, and remove the need
212
for seperate copy of zlib library on windows.
213
(John Arbash Meinel, Martin <gzlist@googlemail.com>, #66923)
232
333
* ``bzrlib.diff.get_trees_and_branches_to_diff`` is deprecated. Use
233
334
``get_trees_and_branches_to_diff_locked`` instead.
234
335
(Andrew Bennetts)
337
* ``TreeTransform.commit`` supports the full set of commit parameters, and
338
auto-determines branch nick if not supplied. (Aaron Bentley)