10
bzr 0.12rc1 2006-10-23
14
* ``bzr log`` now shows dotted-decimal revision numbers for all revisions,
15
rather than just showing a decimal revision number for revisions on the
16
mainline. These revision numbers are not yet accepted as input into bzr
17
commands such as log, diff etc. (Robert Collins)
19
* revisions can now be specified using dotted-decimal revision numbers.
20
For instance, ``bzr diff -r 1.2.1..1.2.3. (Robert Collins)
22
* ``bzr help commands`` output is now shorter (Aaron Bentley)
24
* New connection: ``bzr+http://`` which supports tunnelling the smart
25
protocol over an HTTP connection. If writing is enabled on the bzr
26
server, then you can write over the http connection.
29
* ``bzr`` now uses lazy importing to reduce the startup time. This has
30
a moderate effect on lots of actions, especially ones that have
31
little to do. For example ``bzr rocks`` time is down to 116ms from
32
283ms. (John Arbash Meinel)
34
* New Registry class to provide name-to-object registry-like support,
35
for example for schemes where plugins can register new classes to
36
do certain tasks (e.g. log formatters). Also provides lazy registration
37
to allow modules to be loaded on request. (John Arbash Meinel, Adeodato
42
* LogFormatter subclasses show now expect the 'revno' parameter to
43
show() to be a string rather than an int. (Robert Collins)
47
* ``TestCase.run_bzr``, ``run_bzr_captured``, and ``run_bzr_subprocess``
48
can take a ``working_dir='foo'`` parameter, which will change directory
49
for the command. (John Arbash Meinel)
51
* ``bzrlib.lazy_regex.lazy_compile`` can be used to create a proxy
52
around a regex, which defers compilation until first use.
55
* ``TestCase.run_bzr_subprocess`` defaults to supplying the
56
``--no-plugins`` parameter to ensure test reproducability, and avoid
57
problems with system-wide installed plugins. (John Arbash Meinel)
59
* Unique tree root ids are now supported. Newly created trees still
60
use the common root id for compatibility with bzr versions before 0.12.
63
* ``WorkingTree.set_root_id(None)`` is now deprecated. Please
64
pass in inventory.ROOT_ID if you want the default root id value.
65
(Robert Collins, John Arbash Meinel)
67
* New method ``WorkingTree.flush()`` which will write the current memory
68
inventory out to disk. At the same time, read_working_inventory will
69
no longer trash the current tree inventory if it has been modified within
70
the current lock, and the tree will now ``flush()`` automatically on
71
``unlock()``. ``WorkingTree.set_root_id()`` has been updated to take
72
advantage of this functionality. (Robert Collins, John Arbash Meinel)
74
* ``bzrlib.tsort.merge_sorted`` now accepts ``generate_revnos``. This
75
parameter will cause it to add another column to its output, which
76
contains the dotted-decimal revno for each revision, as a tuple.
79
* ``LogFormatter.show_merge`` is deprecated in favour of
80
``LogFormatter.show_merge_revno``. (Robert Collins)
84
* Avoid circular imports by creating a deprecated function for
85
``bzrlib.tree.RevisionTree``. Callers should have been using
86
``bzrlib.revisontree.RevisionTree`` anyway. (John Arbash Meinel,
89
* Don't use ``socket.MSG_WAITALL`` as it doesn't exist on all
90
platforms. (Martin Pool, #66356)
92
* Don't require ``Content-Type`` in range responses. Assume they are a
93
single range if ``Content-Type`` does not exist.
94
(John Arbash Meinel, #62473)
96
* bzr branch/pull no longer complain about progress bar cleanup when
97
interrupted during fetch. (Aaron Bentley, #54000)
99
* ``WorkingTree.set_parent_trees()`` uses the trees to directly write
100
the basis inventory, rather than going through the repository. This
101
allows us to have 1 inventory read, and 2 inventory writes when
102
committing a new tree. (John Arbash Meinel)
104
* When reverting, files that are not locally modified that do not exist
105
in the target are deleted, not just unversioned (Aaron Bentley)
107
* When trying to acquire a lock, don't fail immediately. Instead, try
108
a few times (up to 1 hour) before timing out. Also, report why the
109
lock is unavailable (John Arbash Meinel, #43521, #49556)
111
* Leave HttpTransportBase daughter classes decides how they
112
implement cloning. (Vincent Ladeuil, #61606)
114
* diff3 does not indicate conflicts on clean merge. (Aaron Bentley)
118
* New test base class TestCaseWithMemoryTransport offers memory-only
119
testing facilities: its not suitable for tests that need to mutate disk
120
state, but most tests should not need that and should be converted to
121
TestCaseWithMemoryTransport. (Robert Collins)
123
* ``TestCase.make_branch_and_memory_tree`` now takes a format
124
option to set the BzrDir, Repository and Branch formats of the
125
created objects. (Robert Collins, John Arbash Meinel)
129
* Smart server transport test failures on windows fixed. (Lukáš Lalinský).
131
bzr 0.11rc2 2006-09-27
135
* Test suite hangs on windows fixed. (Andrew Bennets, Alexander Belchenko).
137
* Commit performance regression fixed. (Aaron Bentley, Robert Collins, John
140
bzr 0.11rc1 2006-09-25
144
* Knit files now wait to create their contents until the first data is
145
added. The old code used to create an empty .knit and a .kndx with just
146
the header. However, this caused a lot of extra round trips over sftp.
147
This can change the time for ``bzr push`` to create a new remote branch
148
from 160s down to 100s. This also affects ``bzr commit`` performance when
149
adding new files, ``bzr commit`` on a new kernel-like tree drops from 50s
150
down to 40s (John Arbash Meinel, #44692)
152
* When an entire subtree has been deleted, commit will now report that
153
just the top of the subtree has been deleted, rather than reporting
154
all the individual items. (Robert Collins)
156
* Commit performs one less XML parse. (Robert Collins)
158
* ``bzr checkout`` now operates on readonly branches as well
159
as readwrite branches. This fixes bug #39542. (Robert Collins)
161
* ``bzr bind`` no longer synchronises history with the master branch.
162
Binding should be followed by an update or push to synchronise the
163
two branches. This is closely related to the fix for bug #39542.
166
* ``bzrlib.lazy_import.lazy_import`` function to create on-demand
167
objects. This allows all imports to stay at the global scope, but
168
modules will not actually be imported if they are not used.
171
* Support bzr:// and bzr+ssh:// urls to work with the new RPC-based
172
transport which will be used with the upcoming high-performance smart
173
server. The new command ``bzr serve`` will invoke bzr in server mode,
174
which processes these requests. (Andrew Bennetts, Robert Collins, Martin
177
* New command ``bzr version-info`` which can be used to get a summary
178
of the current state of the tree. This is especially useful as part
179
of a build commands. See ``doc/version_info.txt`` for more information
184
* 'bzr inventory [FILE...]' allows restricting the file list to a
185
specific set of files. (John Arbash Meinel, #3631)
187
* Don't abort when annotating empty files (John Arbash Meinel, #56814)
189
* Add ``Stanza.to_unicode()`` which can be passed to another Stanza
190
when nesting stanzas. Also, add ``read_stanza_unicode`` to handle when
191
reading a nested Stanza. (John Arbash Meinel)
193
* Transform._set_mode() needs to stat the right file.
194
(John Arbash Meinel, #56549)
196
* Raise WeaveFormatError rather than StopIteration when trying to read
197
an empty Weave file. (John Arbash Meinel, #46871)
199
* Don't access e.code for generic URLErrors, only HTTPErrors have .code.
200
(Vincent Ladeuil, #59835)
202
* Handle boundary="" lines properly to allow access through a Squid proxy.
203
(John Arbash Meinel, #57723)
205
* revert now removes newly-added directories (Aaron Bentley, #54172)
207
* ``bzr upgrade sftp://`` shouldn't fail to upgrade v6 branches if there
208
isn't a working tree. (David Allouche, #40679)
210
* Give nicer error messages when a user supplies an invalid --revision
211
parameter. (John Arbash Meinel, #55420)
213
* Handle when LANG is not recognized by python. Emit a warning, but
214
just revert to using 'ascii'. (John Arbash Meinel, #35392)
216
* Don't use preexec_fn on win32, as it is not supported by subprocess.
219
* Skip specific tests when the dependencies aren't met. This includes
220
some ``setup.py`` tests when ``python-dev`` is not available, and
221
some tests that depend on paramiko. (John Arbash Meinel, Mattheiu Moy)
223
* Fallback to Paramiko properly, if no ``ssh`` executable exists on
224
the system. (Andrew Bennetts, John Arbash Meinel)
226
* ``Branch.bind(other_branch)`` no longer takes a write lock on the
227
other branch, and will not push or pull between the two branches.
228
API users will need to perform a push or pull or update operation if they
229
require branch synchronisation to take place. (Robert Collins, #47344)
231
* When creating a tarball or zipfile export, export unicode names as utf-8
232
paths. This may not work perfectly on all platforms, but has the best
233
chance of working in the common case. (John Arbash Meinel, #56816)
235
* When committing, only files that exist in working tree or basis tree
236
may be specified (Aaron Bentley, #50793)
240
* Fixes to run on Python 2.5 (Brian M. Carlson, Martin Pool, Marien Zwart)
244
* TestCaseInTempDir now creates a separate directory for HOME, rather
245
than having HOME set to the same location as the working directory.
248
* run_bzr_subprocess() can take an optional 'env_changes={}' parameter,
249
which will update os.environ inside the spawned child. It also can
250
take a 'universal_newlines=True', which helps when checking the output
251
of the command. (John Arbash Meinel)
253
* Refactor SFTP vendors to allow easier re-use when ssh is used.
256
* Transport.list_dir() and Transport.iter_files_recursive() should always
257
return urlescaped paths. This is now tested (there were bugs in a few
258
of the transports) (Andrew Bennetts, David Allouche, John Arbash Meinel)
260
* New utility function symbol_versioning.deprecation_string. Returns the
261
formatted string for a callable, deprecation format pair. (Robert Collins)
263
* New TestCase helper applyDeprecated. This allows you to call a callable
264
which is deprecated without it spewing to the screen, just by supplying
265
the deprecation format string issued for it. (Robert Collins)
267
* Transport.append and Transport.put have been deprecated in favor of
268
.append_bytes, .append_file, .put_bytes, and .put_file. This removes the
269
ambiguity in what type of object the functions take.
270
Transport.non_atomic_put_{bytes,file} has also been added. Which works
271
similarly to Transport.append() except for SFTP, it doesn't have a round
272
trip when opening the file. Also, it provides functionality for creating
273
a parent directory when trying to create a file, rather than raise
274
NoSuchFile and forcing the caller to repeat their request.
277
* WorkingTree has a new api ``unversion`` which allow the unversioning of
278
entries by their file id. (Robert Collins)
280
* WorkingTree.pending_merges is deprecated. Please use the get_parent_ids
281
(introduced in 0.10) method instead. (Robert Collins)
283
* WorkingTree has a new lock_tree_write method which locks the branch for
284
read rather than write. This is appropriate for actions which only need
285
the branch data for reference rather than mutation. A new decorator
286
needs_tree_write_lock is provided in the workingtree module. Like the
287
needs_read_lock and needs_write_lock decorators this allows static
288
declaration of the locking requirements of a function to ensure that
289
a lock is taken out for casual scripts. (Robert Collins, #54107)
291
* All WorkingTree methods which write to the tree, but not to the branch
292
have been converted to use ``needs_tree_write_lock`` rather than
293
``needs_write_lock``. Also converted is the revert, conflicts and tree
294
transform modules. This provides a modest performance improvement on
295
metadir style trees, due to the reduce lock-acquisition, and a more
296
significant performance improvement on lightweight checkouts from
297
remote branches, where trivial operations used to pay a significant
298
penalty. It also provides the basis for allowing readonly checkouts.
301
* Special case importing the standard library 'copy' module. This shaves
302
off 40ms of startup time, while retaining compatibility. See:
303
``bzrlib/inspect_for_copy.py`` for more details. (John Arbash Meinel)
305
* WorkingTree has a new parent class MutableTree which represents the
306
specialisations of Tree which are able to be altered. (Robert Collins)
308
* New methods mkdir and put_file_bytes_non_atomic on MutableTree that
309
mutate the tree and its contents. (Robert Collins)
311
* Transport behaviour at the root of the URL is now defined and tested.
312
(Andrew Bennetts, Robert Collins)
316
* New test helper classs MemoryTree. This is typically accessed via
317
``self.make_branch_and_memory_tree()`` in test cases. (Robert Collins)
319
* Add start_bzr_subprocess and stop_bzr_subprocess to allow test code to
320
continue running concurrently with a subprocess of bzr. (Andrew Bennetts,
323
* Add a new method ``Transport.get_smart_client()``. This is provided to
324
allow upgrades to a richer interface than the VFS one provided by
325
Transport. (Andrew Bennetts, Martin Pool)
330
* 'merge' now takes --uncommitted, to apply uncommitted changes from a
331
tree. (Aaron Bentley)
333
* 'bzr add --file-ids-from' can be used to specify another path to use
334
for creating file ids, rather than generating all new ones. Internally,
335
the 'action' passed to smart_add_tree() can return file_ids that
336
will be used, rather than having bzrlib generate new ones.
337
(John Arbash Meinel, #55781)
339
* ``bzr selftest --benchmark`` now allows a ``--cache-dir`` parameter.
340
This will cache some of the intermediate trees, and decrease the
341
setup time for benchmark tests. (John Arbash Meinel)
343
* Inverse forms are provided for all boolean options. For example,
344
--strict has --no-strict, --no-recurse has --recurse (Aaron Bentley)
346
* Serialize out Inventories directly, rather than using ElementTree.
347
Writing out a kernel sized inventory drops from 2s down to ~350ms.
348
(Robert Collins, John Arbash Meinel)
352
* Help diffutils 2.8.4 get along with binary tests (Marien Zwart: #57614)
354
* Change LockDir so that if the lock directory doesn't exist when
355
lock_write() is called, an attempt will be made to create it.
356
(John Arbash Meinel, #56974)
358
* ``bzr uncommit`` preserves pending merges. (John Arbash Meinel, #57660)
360
* Active FTP transport now works as intended. (ghozzy, #56472)
362
* Really fix mutter() so that it won't ever raise a UnicodeError.
363
It means it is possible for ~/.bzr.log to contain non UTF-8 characters.
364
But it is a debugging log, not a real user file.
365
(John Arbash Meinel, #56947, #53880)
367
* Change Command handle to allow Unicode command and options.
368
At present we cannot register Unicode command names, so we will get
369
BzrCommandError('unknown command'), or BzrCommandError('unknown option')
370
But that is better than a UnicodeError + a traceback.
371
(John Arbash Meinel, #57123)
373
* Handle TZ=UTC properly when reading/writing revisions.
374
(John Arbash Meinel, #55783, #56290)
376
* Use GPG_TTY to allow gpg --cl to work with gpg-agent in a pipeline,
377
(passing text to sign in on stdin). (John Arbash Meinel, #54468)
379
* External diff does the right thing for binaries even in foreign
380
languages. (John Arbash Meinel, #56307)
382
* Testament handles more cases when content is unicode. Specific bug was
383
in handling of revision properties. (John Arbash Meinel, Holger Krekel,
386
* The bzr selftest was failing on installed versions due to a bug in a new
387
test helper. (John Arbash Meinel, Robert Collins, #58057)
391
* ``bzrlib.cache_utf8`` contains ``encode()`` and ``decode()`` functions
392
which can be used to cache the conversion between utf8 and Unicode.
393
Especially helpful for some of the knit annotation code, which has to
394
convert revision ids to utf8 to annotate lines in storage.
397
* ``setup.py`` now searches the filesystem to find all packages which
398
need to be installed. This should help make the life of packagers
399
easier. (John Arbash Meinel)
405
* The hard-coded built-in ignore rules have been removed. There are
406
now two rulesets which are enforced. A user global one in
407
~/.bazaar/ignore which will apply to every tree, and the tree
408
specific one '.bzrignore'.
409
~/.bazaar/ignore will be created if it does not exist, but with
410
a more conservative list than the old default.
411
This fixes bugs with default rules being enforced no matter what.
412
The old list of ignore rules from bzr is available by
413
running 'bzr ignore --old-default-rules'.
414
(Robert Collins, Martin Pool, John Arbash Meinel)
416
* 'branches.conf' has been changed to 'locations.conf', since it can apply
417
to more locations than just branch locations.
422
* The revision specifier "revno:" is extended to accept the syntax
423
revno:N:branch. For example,
424
revno:42:http://bazaar-vcs.org/bzr/bzr.dev/ means revision 42 in
425
bzr.dev. (Matthieu Moy)
427
* Tests updates to ensure proper URL handling, UNICODE support, and
428
proper printing when the user's terminal encoding cannot display
429
the path of a file that has been versioned.
430
``bzr branch`` can take a target URL rather than only a local directory.
431
Branch.get_parent()/set_parent() now save a relative path if possible,
432
and normalize the parent based on root, allowing access across
433
different transports. (John Arbash Meinel, Wouter van Heyst, Martin Pool)
434
(Malone #48906, #42699, #40675, #5281, #3980, #36363, #43689,
437
* On Unix, detect terminal width using an ioctl not just $COLUMNS.
438
Use terminal width for single-line logs from ``bzr log --line`` and
439
pending-merge display. (Robert Widhopf-Fenk, Gustavo Niemeyer)
442
* On Windows, detect terminal width using GetConsoleScreenBufferInfo.
443
(Alexander Belchenko)
445
* Speedup improvement for 'date:'-revision search. (Guillaume Pinot).
447
* Show the correct number of revisions pushed when pushing a new branch.
450
* 'bzr selftest' now shows a progress bar with the number of tests, and
451
progress made. 'make check' shows tests in -v mode, to be more useful
452
for the PQM status window. (Robert Collins).
453
When using a progress bar, failed tests are printed out, rather than
454
being overwritten by the progress bar until the suite finishes.
457
* 'bzr selftest --benchmark' will run a new benchmarking selftest.
458
'bzr selftest --benchmark --lsprof-timed' will use lsprofile to generate
459
profile data for the individual profiled calls, allowing for fine
460
grained analysis of performance.
461
(Robert Collins, Martin Pool).
463
* 'bzr commit' shows a progress bar. This is useful for commits over sftp
464
where commit can take an appreciable time. (Robert Collins)
466
* 'bzr add' is now less verbose in telling you what ignore globs were
467
matched by files being ignored. Instead it just tells you how many
468
were ignored (because you might reasonably be expecting none to be
469
ignored). 'bzr add -v' is unchanged and will report every ignored
470
file. (Robert Collins).
472
* ftp now has a test server if medusa is installed. As part of testing,
473
ftp support has been improved, including support for supplying a
474
non-standard port. (John Arbash Meinel).
476
* 'bzr log --line' shows the revision number, and uses only the
477
first line of the log message (#5162, Alexander Belchenko;
480
* 'bzr status' has had the --all option removed. The 'bzr ls' command
481
should be used to retrieve all versioned files. (Robert Collins)
483
* 'bzr bundle OTHER/BRANCH' will create a bundle which can be sent
484
over email, and applied on the other end, while maintaining ancestry.
485
This bundle can be applied with either 'bzr merge' or 'bzr pull',
486
the same way you would apply another branch.
487
(John Arbash Meinel, Aaron Bentley)
489
* 'bzr whoami' can now be used to set your identity from the command line,
490
for a branch or globally. (Robey Pointer)
492
* 'bzr checkout' now aliased to 'bzr co', and 'bzr annotate' to 'bzr ann'.
495
* 'bzr revert DIRECTORY' now reverts the contents of the directory as well.
498
* 'bzr get sftp://foo' gives a better error when paramiko is not present.
499
Also updates things like 'http+pycurl://' if pycurl is not present.
500
(John Arbash Meinel) (Malone #47821, #52204)
502
* New env variable BZR_PROGRESS_BAR, sets the default progress bar type.
503
Can be set to 'none' or 'dummy' to disable the progress bar, 'dots' or
504
'tty' to create the respective type. (John Arbash Meinel, #42197, #51107)
506
* Improve the help text for 'bzr diff' to explain what various options do.
507
(John Arbash Meinel, #6391)
509
* 'bzr uncommit -r 10' now uncommits revisions 11.. rather than uncommitting
510
revision 10. This makes -r10 more in line with what other commands do.
511
'bzr uncommit' also now saves the pending merges of the revisions that
512
were removed. So it is safe to uncommit after a merge, fix something,
513
and commit again. (John Arbash Meinel, #32526, #31426)
515
* 'bzr init' now also works on remote locations.
516
(Wouter van Heyst, #48904)
518
* HTTP support has been updated. When using pycurl we now support
519
connection keep-alive, which reduces dns requests and round trips.
520
And for both urllib and pycurl we support multi-range requests,
521
which decreases the number of round-trips. Performance results for
522
``bzr branch http://bazaar-vcs.org/bzr/bzr.dev/`` indicate
523
http branching is now 2-3x faster, and ``bzr pull`` in an existing
524
branch is as much as 4x faster.
525
(Michael Ellerman, Johan Rydberg, John Arbash Meinel, #46768)
527
* Performance improvements for sftp. Branching and pulling are now up to
528
2x faster. Utilize paramiko.readv() support for async requests if it
529
is available (paramiko > 1.6) (John Arbash Meinel)
533
* Fix shadowed definition of TestLocationConfig that caused some
534
tests not to run. (#32587, Erik Bågfors, Michael Ellerman,
537
* Fix unnecessary requirement of sign-my-commits that it be run from
538
a working directory. (Martin Pool, Robert Collins)
540
* 'bzr push location' will only remember the push location if it succeeds
541
in connecting to the remote location. (#49742, John Arbash Meinel)
543
* 'bzr revert' no longer toggles the executable bit on win32
544
(#45010, John Arbash Meinel)
546
* Handle broken pipe under win32 correctly. (John Arbash Meinel)
548
* sftp tests now work correctly on win32 if you have a newer paramiko
551
* Cleanup win32 test suite, and general cleanup of places where
552
file handles were being held open. (John Arbash Meinel)
554
* When specifying filenames for 'diff -r x..y', the name of the file in the
555
working directory can be used, even if its name is different in both x
558
* File-ids containing single- or double-quotes are handled correctly by
559
push. (#52227, Aaron Bentley)
561
* Normalize unicode filenames to ensure cross-platform consistency.
562
(John Arbash Meinel, #43689)
564
* The argument parser can now handle '-' as an argument. Currently
565
no code interprets it specially (it is mostly handled as a file named
566
'-'). But plugins, and future operations can use it.
567
(John Arbash meinel, #50984)
569
* Bundles can properly read binary files with a plain '\r' in them.
570
(John Arbash Meinel, #51927)
572
* Tuning iter_entries() to be more efficient (John Arbash Meinel, #5444)
574
* Lots of win32 fixes (the test suite passes again).
575
(John Arbash Meinel, #50155)
577
* Handle openbsd returning None for sys.getfilesystemencoding() (#41183)
579
* Support ftp APPE (append) to allow Knits to be used over ftp (#42592)
581
* Removals are only committed if they match the filespec (or if there is
582
no filespec). (#46635, Aaron Bentley)
584
* smart-add recurses through all supplied directories
585
(John Arbash Meinel, #52578)
587
* Make the bundle reader extra lines before and after the bundle text.
588
This allows you to parse an email with the bundle inline.
589
(John Arbash Meinel, #49182)
591
* Change the file id generator to squash a little bit more. Helps when
592
working with long filenames on windows. (Also helps for unicode filenames
593
not generating hidden files). (John Arbash Meinel, #43801)
595
* Restore terminal mode on C-c while reading sftp password. (#48923,
596
Nicholas Allen, Martin Pool)
598
* Timestamps are rounded to 1ms, and revision entries can be recreated
599
exactly. (John Arbash Meinel, Jamie Wilkinson, #40693)
601
* Branch.base has changed to a URL, but ~/.bazaar/locations.conf should
602
use local paths, since it is user visible (John Arbash Meinel, #53653)
604
* ``bzr status foo`` when foo was unversioned used to cause a full delta
605
to be generated (John Arbash Meinel, #53638)
607
* When reading revision properties, an empty value should be considered
608
the empty string, not None (John Arbash Meinel, #47782)
610
* ``bzr diff --diff-options`` can now handle binary files being changed.
611
Also, the output is consistent when --diff-options is not supplied.
612
(John Arbash Meinel, #54651, #52930)
614
* Use the right suffixes for loading plugins (John Arbash Meinel, #51810)
616
* Fix Branch.get_parent() to handle the case when the parent is not
617
accessible (John Arbash Meinel, #52976)
621
* Combine the ignore rules into a single regex rather than looping over
622
them to reduce the threshold where N^2 behaviour occurs in operations
623
like status. (Jan Hudec, Robert Collins).
625
* Appending to bzrlib.DEFAULT_IGNORE is now deprecated. Instead, use
626
one of the add functions in bzrlib.ignores. (John Arbash Meinel)
628
* 'bzr push' should only push the ancestry of the current revision, not
629
all of the history in the repository. This is especially important for
630
shared repositories. (John Arbash Meinel)
632
* bzrlib.delta.compare_trees now iterates in alphabetically sorted order,
633
rather than randomly walking the inventories. (John Arbash Meinel)
635
* Doctests are now run in temporary directories which are cleaned up when
636
they finish, rather than using special ScratchDir/ScratchBranch objects.
639
* Split ``check`` into separate methods on the branch and on the repository,
640
so that it can be specialized in ways that are useful or efficient for
641
different formats. (Martin Pool, Robert Collins)
643
* Deprecate Repository.all_revision_ids; most methods don't really need
644
the global revision graph but only that part leading up to a particular
645
revision. (Martin Pool, Robert Collins)
647
* Add a BzrDirFormat control_formats list which allows for control formats
648
that do not use '.bzr' to store their data - i.e. '.svn', '.hg' etc.
649
(Robert Collins, Jelmer Vernooij).
651
* bzrlib.diff.external_diff can be redirected to any file-like object.
652
Uses subprocess instead of spawnvp.
653
(#4047, #48914, James Henstridge, John Arbash Meinel)
655
* New command line option '--profile-imports', which will install a custom
656
importer to log time to import modules and regex compilation time to
657
sys.stderr (John Arbash Meinel)
659
* 'EmptyTree' is now deprecated, please use repository.revision_tree(None)
660
instead. (Robert Collins)
662
* "RevisionTree" is now in bzrlib/revisiontree.py. (Robert Collins)
668
* setup.py failed to install launchpad plugin. (Martin Pool)
674
* Fix failure to commit a merge in a checkout. (Martin Pool,
675
Robert Collins, Erik Bågfors, #43959)
677
* Nicer messages from 'commit' in the case of renames, and correct
678
messages when a merge has occured. (Robert Collins, Martin Pool)
680
* Separate functionality from assert statements as they are skipped in
681
optimized mode of python. Add the same check to pending merges.
682
(#44443, Olaf Conradi)
686
* Do not show the None revision in output of bzr ancestry. (Olaf Conradi)
688
* Add info on standalone branches without a working tree.
689
(#44155, Olaf Conradi)
691
* Fix bug in knits when raising InvalidRevisionId. (#44284, Olaf Conradi)
695
* Make editor invocation comply with Debian Policy. First check
696
environment variables VISUAL and EDITOR, then try editor from
697
alternatives system. If that all fails, fall back to the pre-defined
698
list of editors. (#42904, Olaf Conradi)
702
* New 'register-branch' command registers a public branch into
703
Launchpad.net, where it can be associated with bugs, etc.
704
(Martin Pool, Bjorn Tillenius, Robert Collins)
708
* New public api in InventoryEntry - 'describe_change(old, new)' which
709
provides a human description of the changes between two old and
710
new. (Robert Collins, Martin Pool)
714
* Fix test case for bzr info in upgrading a standalone branch to metadir,
715
uses bzrlib api now. (Olaf Conradi)
719
NOTES WHEN UPGRADING:
721
Release 0.8 of bzr introduces a new format for history storage, called
722
'knit', as an evolution of to the 'weave' format used in 0.7. Local
723
and remote operations are faster using knits than weaves. Several
724
operations including 'init', 'init-repo', and 'upgrade' take a
725
--format option that controls this. Branching from an existing branch
726
will keep the same format.
728
It is possible to merge, pull and push between branches of different
729
formats but this is slower than moving data between homogenous
730
branches. It is therefore recommended (but not required) that you
731
upgrade all branches for a project at the same time. Information on
732
formats is shown by 'bzr info'.
734
bzr 0.8 now allows creation of 'repositories', which hold the history
735
of files and revisions for several branches. Previously bzr kept all
736
the history for a branch within the .bzr directory at the root of the
737
branch, and this is still the default. To create a repository, use
738
the new 'bzr init-repo' command. Branches exist as directories under
739
the repository and contain just a small amount of information
740
indicating the current revision of the branch.
742
bzr 0.8 also supports 'checkouts', which are similar to in cvs and
743
subversion. Checkouts are associated with a branch (optionally in a
744
repository), which contains all the historical information. The
745
result is that a checkout can be deleted without losing any
746
already-committed revisions. A new 'update' command is also available.
748
Repositories and checkouts are not supported with the 0.7 storage
749
format. To use them you must upgrad to either knits, or to the
750
'metaweave' format, which uses weaves but changes the .bzr directory
756
* Sftp paths can now be relative, or local, according to the lftp
757
convention. Paths now take the form:
758
sftp://user:pass@host:port/~/relative/path
760
sftp://user:pass@host:port/absolute/path
762
* The FTP transport now tries to reconnect after a temporary
763
failure. ftp put is made atomic. (Matthieu Moy)
765
* The FTP transport now maintains a pool of connections, and
766
reuses them to avoid multiple connections to the same host (like
767
sftp did). (Daniel Silverstone)
769
* The bzr_man.py file has been removed. To create the man page now,
770
use ./generate_docs.py man. The new program can also create other files.
771
Run "python generate_docs.py --help" for usage information. (Hans
772
Ulrich Niedermann & James Blackwell).
774
* Man Page now gives full help (James Blackwell). Help also updated to
775
reflect user config now being stored in .bazaar (Hans Ulrich
778
* It's now possible to set aliases in bazaar.conf (Erik Bågfors)
780
* Pull now accepts a --revision argument (Erik Bågfors)
782
* 'bzr re-sign' now allows multiple revisions to be supplied on the command
783
line. You can now use the following command to sign all of your old commits.
784
find .bzr/revision-store// -name my@email-* \
785
| sed 's/.*\/\/..\///' \
788
* Upgrade can now upgrade over the network. (Robert Collins)
790
* Two new commands 'bzr checkout' and 'bzr update' allow for CVS/SVN-alike
791
behaviour. By default they will cache history in the checkout, but
792
with --lightweight almost all data is kept in the master branch.
795
* 'revert' unversions newly-versioned files, instead of deleting them.
797
* 'merge' is more robust. Conflict messages have changed.
799
* 'merge' and 'revert' no longer clobber existing files that end in '~' or
802
* Default log format can be set in configuration and plugins can register
803
their own formatters. (Erik Bågfors)
805
* New 'reconcile' command will check branch consistency and repair indexes
806
that can become out of sync in pre 0.8 formats. (Robert Collins,
809
* New 'bzr init --format' and 'bzr upgrade --format' option to control
810
what storage format is created or produced. (Robert Collins,
813
* Add parent location to 'bzr info', if there is one. (Olaf Conradi)
815
* New developer commands 'weave-list' and 'weave-join'. (Martin Pool)
817
* New 'init-repository' command, plus support for repositories in 'init'
818
and 'branch' (Aaron Bentley, Erik Bågfors, Robert Collins)
820
* Improve output of 'info' command. Show all relevant locations related to
821
working tree, branch and repository. Use kibibytes for binary quantities.
822
Fix off-by-one error in missing revisions of working tree. Make 'info'
823
work on branches, repositories and remote locations. Show locations
824
relative to the shared repository, if applicable. Show locking status
825
of locations. (Olaf Conradi)
827
* Diff and merge now safely handle binary files. (Aaron Bentley)
829
* 'pull' and 'push' now normalise the revision history, so that any two
830
branches with the same tip revision will have the same output from 'log'.
833
* 'merge' accepts --remember option to store parent location, like 'push'
834
and 'pull'. (Olaf Conradi)
836
* bzr status and diff when files given as arguments do not exist
837
in the relevant trees. (Martin Pool, #3619)
839
* Add '.hg' to the default ignore list. (Martin Pool)
841
* 'knit' is now the default disk format. This improves disk performance and
842
utilization, increases incremental pull performance, robustness with SFTP
843
and allows checkouts over SFTP to perform acceptably.
844
The initial Knit code was contributed by Johan Rydberg based on a
845
specification by Martin Pool.
846
(Robert Collins, Aaron Bentley, Johan Rydberg, Martin Pool).
848
* New tool to generate all-in-one html version of the manual. (Alexander
851
* Hitting CTRL-C while doing an SFTP push will no longer cause stale locks
852
to be left in the SFTP repository. (Robert Collins, Martin Pool).
854
* New option 'diff --prefix' to control how files are named in diff
855
output, with shortcuts '-p0' and '-p1' corresponding to the options for
856
GNU patch. (Alexander Belchenko, Goffredo Baroncelli, Martin Pool)
858
* Add --revision option to 'annotate' command. (Olaf Conradi)
860
* If bzr shows an unexpected revision-history after pulling (perhaps due
861
to a reweave) it can now be corrected by 'bzr reconcile'.
866
* Commit is now verbose by default, and shows changed filenames and the
867
new revision number. (Robert Collins, Martin Pool)
869
* Unify 'mv', 'move', 'rename'. (#5379, Matthew Fuller)
871
* 'bzr -h' shows help. (#35940, Martin Pool, Ian Bicking)
873
* Make 'pull' and 'push' remember location on failure using --remember.
876
* For compatibility, make old format for using weaves inside metadir
877
available as 'metaweave' format. Rename format 'metadir' to 'default'.
878
Clean up help for option --format in commands 'init', 'init-repo' and
879
'upgrade'. (Olaf Conradi)
883
* The internal storage of history, and logical branch identity have now
884
been split into Branch, and Repository. The common locking and file
885
management routines are now in bzrlib.lockablefiles.
886
(Aaron Bentley, Robert Collins, Martin Pool)
888
* Transports can now raise DependencyNotPresent if they need a library
889
which is not installed, and then another implementation will be
892
* Remove obsolete (and no-op) `decode` parameter to `Transport.get`.
895
* Using Tree Transform for merge, revert, tree-building
897
* WorkingTree.create, Branch.create, WorkingTree.create_standalone,
898
Branch.initialize are now deprecated. Please see BzrDir.create_* for
899
replacement API's. (Robert Collins)
901
* New BzrDir class represents the .bzr control directory and manages
902
formatting issues. (Robert Collins)
904
* New repository.InterRepository class encapsulates Repository to
905
Repository actions and allows for clean selection of optimised code
906
paths. (Robert Collins)
908
* bzrlib.fetch.fetch and bzrlib.fetch.greedy_fetch are now deprecated,
909
please use 'branch.fetch' or 'repository.fetch' depending on your
910
needs. (Robert Collins)
912
* deprecated methods now have a 'is_deprecated' flag on them that can
913
be checked, if you need to determine whether a given callable is
914
deprecated at runtime. (Robert Collins)
916
* Progress bars are now nested - see
917
bzrlib.ui.ui_factory.nested_progress_bar. (Robert Collins, Robey Pointer)
919
* New API call get_format_description() for each type of format.
922
* Changed branch.set_parent() to accept None to remove parent.
925
* Deprecated BzrError AmbiguousBase. (Olaf Conradi)
927
* WorkingTree.branch is now a read only property. (Robert Collins)
929
* bzrlib.ui.text.TextUIFactory now accepts a bar_type parameter which
930
can be None or a factory that will create a progress bar. This is
931
useful for testing or for overriding the bzrlib.progress heuristic.
934
* New API method get_physical_lock_status() to query locks present on a
935
transport. (Olaf Conradi)
937
* Repository.reconcile now takes a thorough keyword parameter to allow
938
requesting an indepth reconciliation, rather than just a data-loss
939
check. (Robert Collins)
941
* bzrlib.ui.ui_factory protocol now supports 'get_boolean' to prompt
942
the user for yes/no style input. (Robert Collins)
946
* SFTP tests now shortcut the SSH negotiation, reducing test overhead
947
for testing SFTP protocol support. (Robey Pointer)
949
* Branch formats are now tested once per implementation (see bzrlib.
950
tests.branch_implementations. This is analagous to the transport
951
interface tests, and has been followed up with working tree,
952
repository and BzrDir tests. (Robert Collins)
954
* New test base class TestCaseWithTransport provides a transport aware
955
test environment, useful for testing any transport-interface using
956
code. The test suite option --transport controls the transport used
957
by this class (when its not being used as part of implementation
958
contract testing). (Robert Collins)
960
* Close logging handler on disabling the test log. This will remove the
961
handler from the internal list inside python's logging module,
962
preventing shutdown from closing it twice. (Olaf Conradi)
964
* Move test case for uncommit to blackbox tests. (Olaf Conradi)
966
* run_bzr and run_bzr_captured now accept a 'stdin="foo"' parameter which
967
will provide String("foo") to the command as its stdin.
973
* .bzrignore is excluded from exports, on the grounds that it's a bzr
974
internal-use file and may not be wanted. (Jamie Wilkinson)
976
* The "bzr directories" command were removed in favor of the new
977
--kind option to the "bzr inventory" command. To list all
978
versioned directories, now use "bzr inventory --kind directory".
981
* Under Windows configuration directory is now %APPDATA%\bazaar\2.0
982
by default. (John Arbash Meinel)
984
* The parent of Bzr configuration directory can be set by BZR_HOME
985
environment variable. Now the path for it is searched in BZR_HOME, then
986
in HOME. Under Windows the order is: BZR_HOME, APPDATA (usually
987
points to C:\Documents and Settings\User Name\Application Data), HOME.
990
* Plugins with the same name in different directories in the bzr plugin
991
path are no longer loaded: only the first successfully loaded one is
992
used. (Robert Collins)
994
* Use systems' external ssh command to open connections if possible.
995
This gives better integration with user settings such as ProxyCommand.
998
* Permissions on files underneath .bzr/ are inherited from the .bzr
999
directory. So for a shared repository, simply doing 'chmod -R g+w .bzr/'
1000
will mean that future file will be created with group write permissions.
1002
* configure.in and config.guess are no longer in the builtin default
1005
* '.sw[nop]' pattern ignored, to ignore vim swap files for nameless
1006
files. (John Arbash Meinel, Martin Pool)
1010
* "bzr INIT dir" now initializes the specified directory, and creates
1011
it if it does not exist. (John Arbash Meinel)
1013
* New remerge command (Aaron Bentley)
1015
* Better zsh completion script. (Steve Borho)
1017
* 'bzr diff' now returns 1 when there are changes in the working
1018
tree. (Robert Collins)
1020
* 'bzr push' now exists and can push changes to a remote location.
1021
This uses the transport infrastructure, and can store the remote
1022
location in the ~/.bazaar/branches.conf configuration file.
1025
* Test directories are only kept if the test fails and the user requests
1028
* Tweaks to short log printing
1030
* Added branch nicks, new nick command, printing them in log output.
1033
* If $BZR_PDB is set, pop into the debugger when an uncaught exception
1034
occurs. (Martin Pool)
1036
* Accept 'bzr resolved' (an alias for 'bzr resolve'), as this is
1037
the same as Subversion. (Martin Pool)
1039
* New ftp transport support (on ftplib), for ftp:// and aftp://
1040
URLs. (Daniel Silverstone)
1042
* Commit editor temporary files now start with 'bzr_log.', to allow
1043
text editors to match the file name and set up appropriate modes or
1044
settings. (Magnus Therning)
1046
* Improved performance when integrating changes from a remote weave.
1047
(Goffredo Baroncelli)
1049
* Sftp will attempt to cache the connection, so it is more likely that
1050
a connection will be reused, rather than requiring multiple password
1053
* bzr revno now takes an optional argument indicating the branch whose
1054
revno should be printed. (Michael Ellerman)
1056
* bzr cat defaults to printing the last version of the file.
1057
(#3632, Matthieu Moy)
1059
* New global option 'bzr --lsprof COMMAND' runs bzr under the lsprof
1060
profiler. (Denys Duchier)
1062
* Faster commits by reading only the headers of affected weave files.
1065
* 'bzr add' now takes a --dry-run parameter which shows you what would be
1066
added, but doesn't actually add anything. (Michael Ellerman)
1068
* 'bzr add' now lists how many files were ignored per glob. add --verbose
1069
lists the specific files. (Aaron Bentley)
1071
* 'bzr missing' now supports displaying changes in diverged trees and can
1072
be limited to show what either end of the comparison is missing.
1073
(Aaron Bently, with a little prompting from Daniel Silverstone)
1077
* SFTP can walk up to the root path without index errors. (Robert Collins)
1079
* Fix bugs in running bzr with 'python -O'. (Martin Pool)
1081
* Error when run with -OO
1083
* Fix bug in reporting http errors that don't have an http error code.
1086
* Handle more cases of pipe errors in display commands
1088
* Change status to 3 for all errors
1090
* Files that are added and unlinked before committing are completely
1091
ignored by diff and status
1093
* Stores with some compressed texts and some uncompressed texts are now
1094
able to be used. (John A Meinel)
1096
* Fix for bzr pull failing sometimes under windows
1098
* Fix for sftp transport under windows when using interactive auth
1100
* Show files which are both renamed and modified as such in 'bzr
1101
status' output. (#4503, Daniel Silverstone)
1103
* Make annotate cope better with revisions committed without a valid
1104
email address. (Marien Zwart)
1106
* Fix representation of tab characters in commit messages. (Harald
1109
* List of plugin directories in BZR_PLUGIN_PATH environment variable is
1110
now parsed properly under Windows. (Alexander Belchenko)
1112
* Show number of revisions pushed/pulled/merged. (Robey Pointer)
1114
* Keep a cached copy of the basis inventory to speed up operations
1115
that need to refer to it. (Johan Rydberg, Martin Pool)
1117
* Fix bugs in bzr status display of non-ascii characters. (Martin
1120
* Remove Makefile.in from default ignore list. (#6413, Tollef Fog
1123
* Fix failure in 'bzr added'. (Nathan McCallum, Martin Pool)
1127
* Fix selftest asking for passwords when there are no SFTP keys.
1128
(Robey Pointer, Jelmer Vernooij)
1130
* Fix selftest run with 'python -O'. (Martin Pool)
1132
* Fix HTTP tests under Windows. (John Arbash Meinel)
1134
* Make tests work even if HOME is not set (Aaron Bentley)
1136
* Updated build_tree to use fixed line-endings for tests which read
1137
the file cotents and compare. Make some tests use this to pass under
1138
Windows. (John Arbash Meinel)
1140
* Skip stat and symlink tests under Windows. (Alexander Belchenko)
1142
* Delay in selftest/testhashcash is now issued under win32 and Cygwin.
1143
(John Arbash Meinel)
1145
* Use terminal width to align verbose test output. (Martin Pool)
1147
* Blackbox tests are maintained within the bzrlib.tests.blackbox directory.
1148
If adding a new test script please add that to
1149
bzrlib.tests.blackbox.__init__. (Robert Collins)
1151
* Much better error message if one of the test suites can't be
1152
imported. (Martin Pool)
1154
* Make check now runs the test suite twice - once with the default locale,
1155
and once with all locales forced to C, to expose bugs. This is not
1156
trivially done within python, so for now its only triggered by running
1157
Make check. Integrators and packagers who wish to check for full
1158
platform support should run 'make check' to test the source.
1161
* Tests can now run TestSkipped if they can't execute for any reason.
1162
(Martin Pool) (NB: TestSkipped should only be raised for correctable
1163
reasons - see the wiki spec ImprovingBzrTestSuite).
1165
* Test sftp with relative, absolute-in-homedir and absolute-not-in-homedir
1166
paths for the transport tests. Introduce blackbox remote sftp tests that
1167
test the same permutations. (Robert Collins, Robey Pointer)
1169
* Transport implementation tests are now independent of the local file
1170
system, which allows tests for esoteric transports, and for features
1171
not available in the local file system. They also repeat for variations
1172
on the URL scheme that can introduce issues in the transport code,
1173
see bzrlib.transport.TransportTestProviderAdapter() for this.
1176
* TestCase.build_tree uses the transport interface to build trees, pass
1177
in a transport parameter to give it an existing connection.
1182
* WorkingTree.pull has been split across Branch and WorkingTree,
1183
to allow Branch only pulls. (Robert Collins)
1185
* commands.display_command now returns the result of the decorated
1186
function. (Robert Collins)
1188
* LocationConfig now has a set_user_option(key, value) call to save
1189
a setting in its matching location section (a new one is created
1190
if needed). (Robert Collins)
1192
* Branch has two new methods, get_push_location and set_push_location
1193
to respectively, get and set the push location. (Robert Collins)
1195
* commands.register_command now takes an optional flag to signal that
1196
the registrant is planning to decorate an existing command. When
1197
given multiple plugins registering a command is not an error, and
1198
the original command class (whether built in or a plugin based one) is
1199
returned to the caller. There is a new error 'MustUseDecorated' for
1200
signalling when a wrapping command should switch to the original
1201
version. (Robert Collins)
1203
* Some option parsing errors will raise 'BzrOptionError', allowing
1204
granular detection for decorating commands. (Robert Collins).
1206
* Branch.read_working_inventory has moved to
1207
WorkingTree.read_working_inventory. This necessitated changes to
1208
Branch.get_root_id, and a move of Branch.set_inventory to WorkingTree
1209
as well. To make it clear that a WorkingTree cannot always be obtained
1210
Branch.working_tree() will raise 'errors.NoWorkingTree' if one cannot
1211
be obtained. (Robert Collins)
1213
* All pending merges operations from Branch are now on WorkingTree.
1216
* The follow operations from Branch have moved to WorkingTree:
1224
* bzrlib.add.smart_add_branch is now smart_add_tree. (Robert Collins)
1226
* New "rio" serialization format, similar to rfc-822. (Martin Pool)
1228
* Rename selftests to `bzrlib.tests.test_foo`. (John A Meinel, Martin
1231
* bzrlib.plugin.all_plugins has been changed from an attribute to a
1232
query method. (Robert Collins)
1234
* New options to read only the table-of-contents of a weave.
1237
* Raise NoSuchFile when someone tries to add a non-existant file.
1240
* Simplify handling of DivergedBranches in cmd_pull().
1244
* Branch.controlfile* logic has moved to lockablefiles.LockableFiles, which
1245
is exposed as Branch().control_files. Also this has been altered with the
1246
controlfile pre/suffix replaced by simple method names like 'get' and
1247
'put'. (Aaron Bentley, Robert Collins).
1249
* Deprecated functions and methods can now be marked as such using the
1250
bzrlib.symbol_versioning module. Marked method have their docstring
1251
updated and will issue a DeprecationWarning using the warnings module
1252
when they are used. (Robert Collins)
1254
* bzrlib.osutils.safe_unicode now exists to provide parameter coercion
1255
for functions that need unicode strings. (Robert Collins)
1261
* pull now takes --verbose to show you what revisions are added or removed
1264
* merge now takes a --show-base option to include the base text in
1268
* The config files are now read using ConfigObj, so '=' should be used as
1269
a separator, not ':'.
5
1272
* New 'bzr commit --strict' option refuses to commit if there are
6
1273
any unknown files in the tree. To commit, make sure all files are