5
* Knit files now wait to create their contents until the first data is
6
added. The old code used to create an empty .knit and a .kndx with just
7
the header. However, this caused a lot of extra round trips over sftp.
8
This can change the time for ``bzr push`` to create a new remote branch
9
from 160s down to 100s. This also affects ``bzr commit`` performance when
10
adding new files, ``bzr commit`` on a new kernel-like tree drops from 50s
11
down to 40s (John Arbash Meinel, #44692)
13
* When an entire subtree has been deleted, commit will now report that
14
just the top of the subtree has been deleted, rather than reporting
15
all the individual items. (Robert Collins)
17
* Commit performs one less XML parse. (Robert Collins)
19
* ``bzr checkout`` now operates on readonly branches as well
20
as readwrite branches. This fixes bug #39542. (Robert Collins)
22
* ``bzr bind`` no longer synchronises history with the master branch.
23
Binding should be followed by an update or push to synchronise the
24
two branches. This is closely related to the fix for bug #39542.
27
* ``bzrlib.lazy_import.lazy_import`` function to create on-demand
28
objects. This allows all imports to stay at the global scope, but
29
modules will not actually be imported if they are not used.
32
* Support bzr:// and bzr+ssh:// urls to work with the new RPC-based
33
transport which will be used with the upcoming high-performance smart
34
server. The new command ``bzr serve`` will invoke bzr in server mode,
35
which processes these requests. (Andrew Bennetts, Robert Collins, Martin
40
* Don't access e.code for generic URLErrors, only HTTPErrors have .code.
41
(Vincent Ladeuil, #59835)
43
* Handle boundary="" lines properly to allow access through a Squid proxy.
44
(John Arbash Meinel, #57723)
46
* revert now removes newly-added directories (Aaron Bentley, #54172)
48
* ``bzr upgrade sftp://`` shouldn't fail to upgrade v6 branches if there
49
isn't a working tree. (David Allouche, #40679)
51
* Give nicer error messages when a user supplies an invalid --revision
52
parameter. (John Arbash Meinel, #55420)
54
* Handle when LANG is not recognized by python. Emit a warning, but
55
just revert to using 'ascii'. (John Arbash Meinel, #35392)
57
* Don't use preexec_fn on win32, as it is not supported by subprocess.
60
* Skip specific tests when the dependencies aren't met. This includes
61
some ``setup.py`` tests when ``python-dev`` is not available, and
62
some tests that depend on paramiko. (John Arbash Meinel, Mattheiu Moy)
64
* Fallback to Paramiko properly, if no ``ssh`` executable exists on
65
the system. (Andrew Bennetts, John Arbash Meinel)
67
* ``Branch.bind(other_branch)`` no longer takes a write lock on the
68
other branch, and will not push or pull between the two branches.
69
API users will need to perform a push or pull or update operation if they
70
require branch synchronisation to take place. (Robert Collins, #47344)
74
* TestCaseInTempDir now creates a separate directory for HOME, rather
75
than having HOME set to the same location as the working directory.
78
* run_bzr_subprocess() can take an optional 'env_changes={}' parameter,
79
which will update os.environ inside the spawned child. It also can
80
take a 'universal_newlines=True', which helps when checking the output
81
of the command. (John Arbash Meinel)
83
* Refactor SFTP vendors to allow easier re-use when ssh is used.
86
* Transport.list_dir() and Transport.iter_files_recursive() should always
87
return urlescaped paths. This is now tested (there were bugs in a few
88
of the transports) (Andrew Bennetts, David Allouche, John Arbash Meinel)
90
* New utility function symbol_versioning.deprecation_string. Returns the
91
formatted string for a callable, deprecation format pair. (Robert Collins)
93
* New TestCase helper applyDeprecated. This allows you to call a callable
94
which is deprecated without it spewing to the screen, just by supplying
95
the deprecation format string issued for it. (Robert Collins)
97
* Transport.append and Transport.put have been deprecated in favor of
98
.append_bytes, .append_file, .put_bytes, and .put_file. This removes the
99
ambiguity in what type of object the functions take.
100
Transport.non_atomic_put_{bytes,file} has also been added. Which works
101
similarly to Transport.append() except for SFTP, it doesn't have a round
102
trip when opening the file. Also, it provides functionality for creating
103
a parent directory when trying to create a file, rather than raise
104
NoSuchFile and forcing the caller to repeat their request.
107
* WorkingTree has a new api ``unversion`` which allow the unversioning of
108
entries by their file id. (Robert Collins)
110
* WorkingTree.pending_merges is deprecated. Please use the get_parent_ids
111
(introduced in 0.10) method instead. (Robert Collins)
113
* WorkingTree has a new lock_tree_write method which locks the branch for
114
read rather than write. This is appropriate for actions which only need
115
the branch data for reference rather than mutation. A new decorator
116
needs_tree_write_lock is provided in the workingtree module. Like the
117
needs_read_lock and needs_write_lock decorators this allows static
118
declaration of the locking requirements of a function to ensure that
119
a lock is taken out for casual scripts. (Robert Collins)
121
* All WorkingTree methods which write to the tree, but not to the branch
122
have been converted to use ``needs_tree_write_lock`` rather than
123
``needs_write_lock``. Also converted is the revert, conflicts and tree
124
transform modules. This provides a modest performance improvement on
125
metadir style trees, due to the reduce lock-acquisition, and a more
126
significant performance improvement on lightweight checkouts from
127
remote branches, where trivial operations used to pay a significant
128
penalty. It also provides the basis for allowing readonly checkouts.
131
* Special case importing the standard library 'copy' module. This shaves
132
off 40ms of startup time, while retaining compatibility. See:
133
``bzrlib/inspect_for_copy.py`` for more details. (John Arbash Meinel)
135
* WorkingTree has a new parent class MutableTree which represents the
136
specialisations of Tree which are able to be altered. (Robert Collins)
138
* New methods mkdir and put_file_bytes_non_atomic on MutableTree that
139
mutate the tree and its contents. (Robert Collins)
141
* Transport behaviour at the root of the URL is now defined and tested.
142
(Andrew Bennetts, Robert Collins)
146
* New test helper classs MemoryTree. This is typically accessed via
147
``self.make_branch_and_memory_tree()`` in test cases. (Robert Collins)
149
* Add start_bzr_subprocess and stop_bzr_subprocess to allow test code to
150
continue running concurrently with a subprocess of bzr. (Andrew Bennetts,
153
* Add a new method ``Transport.get_smart_client()``. This is provided to
154
allow upgrades to a richer interface than the VFS one provided by
155
Transport. (Andrew Bennetts, Martin Pool)
160
* 'merge' now takes --uncommitted, to apply uncommitted changes from a
161
tree. (Aaron Bentley)
163
* 'bzr add --file-ids-from' can be used to specify another path to use
164
for creating file ids, rather than generating all new ones. Internally,
165
the 'action' passed to smart_add_tree() can return file_ids that
166
will be used, rather than having bzrlib generate new ones.
167
(John Arbash Meinel, #55781)
169
* ``bzr selftest --benchmark`` now allows a ``--cache-dir`` parameter.
170
This will cache some of the intermediate trees, and decrease the
171
setup time for benchmark tests. (John Arbash Meinel)
173
* Inverse forms are provided for all boolean options. For example,
174
--strict has --no-strict, --no-recurse has --recurse (Aaron Bentley)
176
* Serialize out Inventories directly, rather than using ElementTree.
177
Writing out a kernel sized inventory drops from 2s down to ~350ms.
178
(Robert Collins, John Arbash Meinel)
182
* Help diffutils 2.8.4 get along with binary tests (Marien Zwart: #57614)
184
* Change LockDir so that if the lock directory doesn't exist when
185
lock_write() is called, an attempt will be made to create it.
186
(John Arbash Meinel, #56974)
188
* ``bzr uncommit`` preserves pending merges. (John Arbash Meinel, #57660)
190
* Active FTP transport now works as intended. (ghozzy, #56472)
192
* Really fix mutter() so that it won't ever raise a UnicodeError.
193
It means it is possible for ~/.bzr.log to contain non UTF-8 characters.
194
But it is a debugging log, not a real user file.
195
(John Arbash Meinel, #56947, #53880)
197
* Change Command handle to allow Unicode command and options.
198
At present we cannot register Unicode command names, so we will get
199
BzrCommandError('unknown command'), or BzrCommandError('unknown option')
200
But that is better than a UnicodeError + a traceback.
201
(John Arbash Meinel, #57123)
203
* Handle TZ=UTC properly when reading/writing revisions.
204
(John Arbash Meinel, #55783, #56290)
206
* Use GPG_TTY to allow gpg --cl to work with gpg-agent in a pipeline,
207
(passing text to sign in on stdin). (John Arbash Meinel, #54468)
209
* External diff does the right thing for binaries even in foreign
210
languages. (John Arbash Meinel, #56307)
212
* Testament handles more cases when content is unicode. Specific bug was
213
in handling of revision properties. (John Arbash Meinel, Holger Krekel,
216
* The bzr selftest was failing on installed versions due to a bug in a new
217
test helper. (John Arbash Meinel, Robert Collins, #58057)
221
* ``bzrlib.cache_utf8`` contains ``encode()`` and ``decode()`` functions
222
which can be used to cache the conversion between utf8 and Unicode.
223
Especially helpful for some of the knit annotation code, which has to
224
convert revision ids to utf8 to annotate lines in storage.
227
* ``setup.py`` now searches the filesystem to find all packages which
228
need to be installed. This should help make the life of packagers
229
easier. (John Arbash Meinel)
235
* The hard-coded built-in ignore rules have been removed. There are
236
now two rulesets which are enforced. A user global one in
237
~/.bazaar/ignore which will apply to every tree, and the tree
238
specific one '.bzrignore'.
239
~/.bazaar/ignore will be created if it does not exist, but with
240
a more conservative list than the old default.
241
This fixes bugs with default rules being enforced no matter what.
242
The old list of ignore rules from bzr is available by
243
running 'bzr ignore --old-default-rules'.
244
(Robert Collins, Martin Pool, John Arbash Meinel)
246
* 'branches.conf' has been changed to 'locations.conf', since it can apply
247
to more locations than just branch locations.
252
* The revision specifier "revno:" is extended to accept the syntax
253
revno:N:branch. For example,
254
revno:42:http://bazaar-vcs.org/bzr/bzr.dev/ means revision 42 in
255
bzr.dev. (Matthieu Moy)
5
257
* Tests updates to ensure proper URL handling, UNICODE support, and
6
258
proper printing when the user's terminal encoding cannot display
7
259
the path of a file that has been versioned.
51
306
* 'bzr log --line' shows the revision number, and uses only the
52
307
first line of the log message (#5162, Alexander Belchenko;
310
* 'bzr status' has had the --all option removed. The 'bzr ls' command
311
should be used to retrieve all versioned files. (Robert Collins)
313
* 'bzr bundle OTHER/BRANCH' will create a bundle which can be sent
314
over email, and applied on the other end, while maintaining ancestry.
315
This bundle can be applied with either 'bzr merge' or 'bzr pull',
316
the same way you would apply another branch.
317
(John Arbash Meinel, Aaron Bentley)
319
* 'bzr whoami' can now be used to set your identity from the command line,
320
for a branch or globally. (Robey Pointer)
322
* 'bzr checkout' now aliased to 'bzr co', and 'bzr annotate' to 'bzr ann'.
325
* 'bzr revert DIRECTORY' now reverts the contents of the directory as well.
328
* 'bzr get sftp://foo' gives a better error when paramiko is not present.
329
Also updates things like 'http+pycurl://' if pycurl is not present.
330
(John Arbash Meinel) (Malone #47821, #52204)
332
* New env variable BZR_PROGRESS_BAR, sets the default progress bar type.
333
Can be set to 'none' or 'dummy' to disable the progress bar, 'dots' or
334
'tty' to create the respective type. (John Arbash Meinel, #42197, #51107)
336
* Improve the help text for 'bzr diff' to explain what various options do.
337
(John Arbash Meinel, #6391)
339
* 'bzr uncommit -r 10' now uncommits revisions 11.. rather than uncommitting
340
revision 10. This makes -r10 more in line with what other commands do.
341
'bzr uncommit' also now saves the pending merges of the revisions that
342
were removed. So it is safe to uncommit after a merge, fix something,
343
and commit again. (John Arbash Meinel, #32526, #31426)
345
* 'bzr init' now also works on remote locations.
346
(Wouter van Heyst, #48904)
348
* HTTP support has been updated. When using pycurl we now support
349
connection keep-alive, which reduces dns requests and round trips.
350
And for both urllib and pycurl we support multi-range requests,
351
which decreases the number of round-trips. Performance results for
352
``bzr branch http://bazaar-vcs.org/bzr/bzr.dev/`` indicate
353
http branching is now 2-3x faster, and ``bzr pull`` in an existing
354
branch is as much as 4x faster.
355
(Michael Ellerman, Johan Rydberg, John Arbash Meinel, #46768)
357
* Performance improvements for sftp. Branching and pulling are now up to
358
2x faster. Utilize paramiko.readv() support for async requests if it
359
is available (paramiko > 1.6) (John Arbash Meinel)
62
367
* Fix unnecessary requirement of sign-my-commits that it be run from
63
368
a working directory. (Martin Pool, Robert Collins)
370
* 'bzr push location' will only remember the push location if it succeeds
371
in connecting to the remote location. (#49742, John Arbash Meinel)
373
* 'bzr revert' no longer toggles the executable bit on win32
374
(#45010, John Arbash Meinel)
376
* Handle broken pipe under win32 correctly. (John Arbash Meinel)
378
* sftp tests now work correctly on win32 if you have a newer paramiko
381
* Cleanup win32 test suite, and general cleanup of places where
382
file handles were being held open. (John Arbash Meinel)
384
* When specifying filenames for 'diff -r x..y', the name of the file in the
385
working directory can be used, even if its name is different in both x
388
* File-ids containing single- or double-quotes are handled correctly by
389
push. (#52227, Aaron Bentley)
391
* Normalize unicode filenames to ensure cross-platform consistency.
392
(John Arbash Meinel, #43689)
394
* The argument parser can now handle '-' as an argument. Currently
395
no code interprets it specially (it is mostly handled as a file named
396
'-'). But plugins, and future operations can use it.
397
(John Arbash meinel, #50984)
399
* Bundles can properly read binary files with a plain '\r' in them.
400
(John Arbash Meinel, #51927)
402
* Tuning iter_entries() to be more efficient (John Arbash Meinel, #5444)
404
* Lots of win32 fixes (the test suite passes again).
405
(John Arbash Meinel, #50155)
407
* Handle openbsd returning None for sys.getfilesystemencoding() (#41183)
409
* Support ftp APPE (append) to allow Knits to be used over ftp (#42592)
411
* Removals are only committed if they match the filespec (or if there is
412
no filespec). (#46635, Aaron Bentley)
414
* smart-add recurses through all supplied directories
415
(John Arbash Meinel, #52578)
417
* Make the bundle reader extra lines before and after the bundle text.
418
This allows you to parse an email with the bundle inline.
419
(John Arbash Meinel, #49182)
421
* Change the file id generator to squash a little bit more. Helps when
422
working with long filenames on windows. (Also helps for unicode filenames
423
not generating hidden files). (John Arbash Meinel, #43801)
425
* Restore terminal mode on C-c while reading sftp password. (#48923,
426
Nicholas Allen, Martin Pool)
428
* Timestamps are rounded to 1ms, and revision entries can be recreated
429
exactly. (John Arbash Meinel, Jamie Wilkinson, #40693)
431
* Branch.base has changed to a URL, but ~/.bazaar/locations.conf should
432
use local paths, since it is user visible (John Arbash Meinel, #53653)
434
* ``bzr status foo`` when foo was unversioned used to cause a full delta
435
to be generated (John Arbash Meinel, #53638)
437
* When reading revision properties, an empty value should be considered
438
the empty string, not None (John Arbash Meinel, #47782)
440
* ``bzr diff --diff-options`` can now handle binary files being changed.
441
Also, the output is consistent when --diff-options is not supplied.
442
(John Arbash Meinel, #54651, #52930)
444
* Use the right suffixes for loading plugins (John Arbash Meinel, #51810)
446
* Fix Branch.get_parent() to handle the case when the parent is not
447
accessible (John Arbash Meinel, #52976)
67
451
* Combine the ignore rules into a single regex rather than looping over
68
452
them to reduce the threshold where N^2 behaviour occurs in operations
69
453
like status. (Jan Hudec, Robert Collins).
455
* Appending to bzrlib.DEFAULT_IGNORE is now deprecated. Instead, use
456
one of the add functions in bzrlib.ignores. (John Arbash Meinel)
71
458
* 'bzr push' should only push the ancestry of the current revision, not
72
459
all of the history in the repository. This is especially important for
73
460
shared repositories. (John Arbash Meinel)