5
* ``bzr mv`` enhanced to support already moved files.
6
In the past the mv command would have failed if the source file doesn't
7
exist. In this situation ``bzr mv`` would now detect that the file has
8
already moved and update the repository accordingly, if the target file
10
A new option ``--after`` has been added so that if two files already
11
exist, you could notify Bazaar that you have moved a (versioned) file and
12
replaced it with another. Thus in this case ``bzr move --after`` will
13
only update the Bazaar identifier.
14
(Steffen Eichenberg, Marius Kruger)
16
* ``ls`` now works on treeless branches and remote branches.
19
* ``bzr help global-options`` describes the global options.
24
* Reserved ids (any revision-id ending in a colon) are rejected by
25
versionedfiles, repositories, branches, and working trees
32
* New ``--first`` option to ``bzr selftest`` to run specified tests
33
before the rest of the suite. (Martin Pool)
40
* ``bzr help global-options`` describes the global options. (Aaron Bentley)
44
* Skip documentation generation tests if the tools to do so are not
45
available. Fixes running selftest for installled copies of bzr.
46
(John Arbash Meinel, #80330)
48
* Fix the code that discovers whether bzr is being run from it's
49
working tree to handle the case when it isn't but the directory
50
it is in is below a repository. (James Westby, #77306)
53
bzr 0.14rc1 2007-01-16
57
* New connection: ``bzr+http://`` which supports tunnelling the smart
58
protocol over an HTTP connection. If writing is enabled on the bzr
59
server, then you can write over the http connection.
60
(Andrew Bennetts, John Arbash Meinel)
62
* Aliases now support quotation marks, so they can contain whitespace
65
* PyCurlTransport now use a single curl object. By specifying explicitly
66
the 'Range' header, we avoid the need to use two different curl objects
67
(and two connections to the same server). (Vincent Ladeuil)
69
* ``bzr commit`` does not prompt for a message until it is very likely to
70
succeed. (Aaron Bentley)
72
* ``bzr conflicts`` now takes --text to list pathnames of text conflicts
75
* Fix ``iter_lines_added_or_present_in_versions`` to use a set instead
76
of a list while checking if a revision id was requested. Takes 10s
77
off of the ``fileids_affected_by_revision_ids`` time, which is 10s
78
of the ``bzr branch`` time. Also improve ``fileids_...`` time by
79
filtering lines with a regex rather than multiple ``str.find()``
80
calls. (saves another 300ms) (John Arbash Meinel)
82
* Policy can be set for each configuration key. This allows keys to be
83
inherited properly across configuration entries. For example, this
84
should enable you to do::
87
push_location = sftp://host/srv/project/
88
push_location:policy = appendpath
90
And then a branch like ``/home/user/project/mybranch`` should get an
91
automatic push location of ``sftp://host/srv/project/mybranch``.
94
* Added ``bzr status --short`` to make status report svn style flags
95
for each file. For example::
103
* 'bzr selftest --clean-output' allows easily clean temporary tests
104
directories without running tests. (Alexander Belchenko)
106
* ``bzr help hidden-commands`` lists all hidden commands. (Aaron Bentley)
108
* ``bzr merge`` now has an option ``--pull`` to fall back to pull if
109
local is fully merged into remote. (Jan Hudec)
111
* ``bzr help formats`` describes available directory formats. (Aaron Bentley)
115
* A few tweaks directly to ``fileids_affected_by_revision_ids`` to
116
help speed up processing, as well allowing to extract unannotated
117
lines. Between the two ``fileids_affected_by_revision_ids`` is
118
improved by approx 10%. (John Arbash Meinel)
120
* Change Revision serialization to only write out millisecond
121
resolution. Rather than expecting floating point serialization to
122
preserve more resolution than we need. (Henri Weichers, Martin Pool)
124
* Test suite ends cleanly on Windows. (Vincent Ladeuil)
126
* When 'encoding_type' attribute of class Command is equal to 'exact',
127
force sys.stdout to be a binary stream on Windows, and therefore
128
keep exact line-endings (without LF -> CRLF conversion).
129
(Alexander Belchenko)
131
* Single-letter short options are no longer globally declared. (Martin
134
* Before using detected user/terminal encoding bzr should check
135
that Python has corresponding codec. (Alexander Belchenko)
137
* Formats for end-user selection are provided via a FormatRegistry (Aaron Bentley)
141
* ``bzr missing --verbose`` was showing adds/removals in the wrong
142
direction. (John Arbash Meinel)
144
* ``bzr annotate`` now defaults to showing dotted revnos for merged
145
revisions. It cuts them off at a depth of 12 characters, but you can
146
supply ``--long`` to see the full number. You can also use
147
``--show-ids`` to display the original revision ids, rather than
148
revision numbers and committer names. (John Arbash Meinel, #75637)
150
* bzr now supports Win32 UNC path (e.g. \\HOST\path).
151
(Alexander Belchenko, #57869)
153
* Win32-specific: output of cat, bundle and diff commands don't mangle
154
line-endings (Alexander Belchenko, #55276)
156
* Replace broken fnmatch based ignore pattern matching with custom pattern
158
(Kent Gibson, Jan Hudec #57637)
160
* pycurl and urllib can detect short reads at different places. Update
161
the test suite to test more cases. Also detect http error code 416
162
which was raised for that specific bug. Also enhance the urllib
163
robustness by detecting invalid ranges (and pycurl's one by detecting
164
short reads during the initial GET). (Vincent Ladeuil, #73948)
166
* The urllib connection sharing interacts badly with urllib2
167
proxy setting (the connections didn't go thru the proxy
168
anymore). Defining a proper ProxyHandler solves the
169
problem. (Vincent Ladeuil, #74759)
171
* Use urlutils to generate relative URLs, not osutils
172
(Aaron Bentley, #76229)
174
* ``bzr status`` in a readonly directory should work without giving
175
lots of errors. (John Arbash Meinel, #76299)
177
* Mention the revisionspec topic for the revision option help.
178
(Wouter van Heyst, #31663)
180
* Allow plugins import from zip archives.
181
(Alexander Belchenko, #68124)
186
No changes from 0.13rc1
188
bzr 0.13rc1 2006-11-27
192
* New command ``bzr remove-tree`` allows the removal of the working
196
* urllib uses shared keep-alive connections, so http
197
operations are substantially faster.
198
(Vincent Ladeuil, #53654)
200
* ``bzr export`` allows an optional branch parameter, to export a bzr
201
tree from some other url. For example:
202
``bzr export bzr.tar.gz http://bazaar-vcs.org/bzr/bzr.dev``
205
* Added ``bzr help topics`` to the bzr help system. This gives a
206
location for general information, outside of a specific command.
207
This includes updates for ``bzr help revisionspec`` the first topic
208
included. (Goffredo Baroncelli, John Arbash Meinel, #42714)
210
* WSGI-compatible HTTP smart server. See ``doc/http_smart_server.txt``.
213
* Knit files will now cache full texts only when the size of the
214
deltas is as large as the size of the fulltext. (Or after 200
215
deltas, whichever comes first). This has the most benefit on large
216
files with small changes, such as the inventory for a large project.
217
(eg For a project with 2500 files, and 7500 revisions, it changes
218
the size of inventory.knit from 11MB to 5.4MB) (John Arbash Meinel)
222
* New -D option given before the command line turns on debugging output
223
for particular areas. -Derror shows tracebacks on all errors.
226
* Clean up ``bzr selftest --benchmark bundle`` to correct an import,
227
and remove benchmarks that take longer than 10min to run.
230
* Use ``time.time()`` instead of ``time.clock()`` to decide on
231
progress throttling. Because ``time.clock()`` is actually CPU time,
232
so over a high-latency connection, too many updates get throttled.
235
* ``MemoryTransport.list_dir()`` would strip the first character for
236
files or directories in root directory. (John Arbash Meinel)
238
* New ``ChrootTransportDecorator``, accessible via the ``chroot+`` url
239
prefix. It disallows any access to locations above a set URL. (Andrew
244
* Now _KnitIndex properly decode revision ids when loading index data.
245
And optimize the knit index parsing code. (Dmitry Vasiliev, John
248
* ``bzrlib/bzrdir.py`` was directly referencing ``bzrlib.workingtree``,
249
without importing it. This prevented ``bzr upgrade`` from working
250
unless a plugin already imported ``bzrlib.workingtree``
251
(John Arbash Meinel, #70716)
253
* Suppress the traceback on invalid URLs (Vincent Ladeuil, #70803).
255
* Give nicer error message when an http server returns a 403
256
error code. (Vincent Ladeuil, #57644).
258
* When a multi-range http GET request fails, try a single
259
range one. If it fails too, forget about ranges. Remember that until
260
the death of the transport and propagates that to the clones.
261
(Vincent Ladeuil, #62276, #62029).
263
* Handles user/passwords supplied in url from command
264
line (for the urllib implementation). Don't request already
265
known passwords (Vincent Ladeuil, #42383, #44647, #48527)
267
* _KnitIndex.add_versions() dictionary compresses revision ids as they
268
are added. This fixes bug where fetching remote revisions records
269
them as full references rather than integers. (John Arbash Meinel,
272
* ``bzr ignore`` strips trailing slashes in patterns.
273
Also ``bzr ignore`` rejects absolute paths. (Kent Gibson, #4559)
275
* ``bzr ignore`` takes multiple arguments. (Cheuksan Edward Wang, #29488)
277
* mv correctly handles paths that traverse symlinks.
278
(Aaron Bentley, #66964)
280
* Give nicer looking error messages when failing to connect over ssh.
281
(John Arbash Meinel, #49172)
283
* Pushing to a remote branch does not currently update the remote working
284
tree. After a remote push, ``bzr status`` and ``bzr diff`` on the remote
285
machine now show that the working tree is out of date.
286
(Cheuksan Edward Wang #48136)
288
* Use patiencediff instead of difflib for determining deltas to insert
289
into knits. This avoids the O(N^3) behavior of difflib. Patience
290
diff should be O(N^2). (Cheuksan Edward Wang, #65714)
292
* Running ``bzr log`` on nonexistent file gives an error instead of the
293
entire log history. (Cheuksan Edward Wang #50793)
295
* ``bzr cat`` can look up contents of removed or renamed files. If the
296
pathname is ambiguous, i.e. the files in the old and new trees have
297
different id's, the default is the file in the new tree. The user can
298
use "--name-from-revision" to select the file in the old tree.
299
(Cheuksan Edward Wang, #30190)
303
* TestingHTTPRequestHandler really handles the Range header
304
(previously it was ignoring it and returning the whole file,).
310
* Clean up ``bzr selftest --benchmark bundle`` to correct an import,
311
and remove benchmarks that take longer than 10min to run.
314
bzr 0.12rc1 2006-10-23
318
* ``bzr log`` now shows dotted-decimal revision numbers for all revisions,
319
rather than just showing a decimal revision number for revisions on the
320
mainline. These revision numbers are not yet accepted as input into bzr
321
commands such as log, diff etc. (Robert Collins)
323
* revisions can now be specified using dotted-decimal revision numbers.
324
For instance, ``bzr diff -r 1.2.1..1.2.3. (Robert Collins)
326
* ``bzr help commands`` output is now shorter (Aaron Bentley)
328
* ``bzr`` now uses lazy importing to reduce the startup time. This has
329
a moderate effect on lots of actions, especially ones that have
330
little to do. For example ``bzr rocks`` time is down to 116ms from
331
283ms. (John Arbash Meinel)
333
* New Registry class to provide name-to-object registry-like support,
334
for example for schemes where plugins can register new classes to
335
do certain tasks (e.g. log formatters). Also provides lazy registration
336
to allow modules to be loaded on request. (John Arbash Meinel, Adeodato
341
* LogFormatter subclasses show now expect the 'revno' parameter to
342
show() to be a string rather than an int. (Robert Collins)
346
* ``TestCase.run_bzr``, ``run_bzr_captured``, and ``run_bzr_subprocess``
347
can take a ``working_dir='foo'`` parameter, which will change directory
348
for the command. (John Arbash Meinel)
350
* ``bzrlib.lazy_regex.lazy_compile`` can be used to create a proxy
351
around a regex, which defers compilation until first use.
354
* ``TestCase.run_bzr_subprocess`` defaults to supplying the
355
``--no-plugins`` parameter to ensure test reproducability, and avoid
356
problems with system-wide installed plugins. (John Arbash Meinel)
358
* Unique tree root ids are now supported. Newly created trees still
359
use the common root id for compatibility with bzr versions before 0.12.
362
* ``WorkingTree.set_root_id(None)`` is now deprecated. Please
363
pass in inventory.ROOT_ID if you want the default root id value.
364
(Robert Collins, John Arbash Meinel)
366
* New method ``WorkingTree.flush()`` which will write the current memory
367
inventory out to disk. At the same time, read_working_inventory will
368
no longer trash the current tree inventory if it has been modified within
369
the current lock, and the tree will now ``flush()`` automatically on
370
``unlock()``. ``WorkingTree.set_root_id()`` has been updated to take
371
advantage of this functionality. (Robert Collins, John Arbash Meinel)
373
* ``bzrlib.tsort.merge_sorted`` now accepts ``generate_revnos``. This
374
parameter will cause it to add another column to its output, which
375
contains the dotted-decimal revno for each revision, as a tuple.
378
* ``LogFormatter.show_merge`` is deprecated in favour of
379
``LogFormatter.show_merge_revno``. (Robert Collins)
383
* Avoid circular imports by creating a deprecated function for
384
``bzrlib.tree.RevisionTree``. Callers should have been using
385
``bzrlib.revisontree.RevisionTree`` anyway. (John Arbash Meinel,
388
* Don't use ``socket.MSG_WAITALL`` as it doesn't exist on all
389
platforms. (Martin Pool, #66356)
391
* Don't require ``Content-Type`` in range responses. Assume they are a
392
single range if ``Content-Type`` does not exist.
393
(John Arbash Meinel, #62473)
395
* bzr branch/pull no longer complain about progress bar cleanup when
396
interrupted during fetch. (Aaron Bentley, #54000)
398
* ``WorkingTree.set_parent_trees()`` uses the trees to directly write
399
the basis inventory, rather than going through the repository. This
400
allows us to have 1 inventory read, and 2 inventory writes when
401
committing a new tree. (John Arbash Meinel)
403
* When reverting, files that are not locally modified that do not exist
404
in the target are deleted, not just unversioned (Aaron Bentley)
406
* When trying to acquire a lock, don't fail immediately. Instead, try
407
a few times (up to 1 hour) before timing out. Also, report why the
408
lock is unavailable (John Arbash Meinel, #43521, #49556)
410
* Leave HttpTransportBase daughter classes decides how they
411
implement cloning. (Vincent Ladeuil, #61606)
413
* diff3 does not indicate conflicts on clean merge. (Aaron Bentley)
415
* If a commit fails, the commit message is stored in a file at the root of
416
the tree for later commit. (Cheuksan Edward Wang, Stefan Metzmacher,
421
* New test base class TestCaseWithMemoryTransport offers memory-only
422
testing facilities: its not suitable for tests that need to mutate disk
423
state, but most tests should not need that and should be converted to
424
TestCaseWithMemoryTransport. (Robert Collins)
426
* ``TestCase.make_branch_and_memory_tree`` now takes a format
427
option to set the BzrDir, Repository and Branch formats of the
428
created objects. (Robert Collins, John Arbash Meinel)
432
* Smart server transport test failures on windows fixed. (Lukáš Lalinský).
434
bzr 0.11rc2 2006-09-27
438
* Test suite hangs on windows fixed. (Andrew Bennets, Alexander Belchenko).
440
* Commit performance regression fixed. (Aaron Bentley, Robert Collins, John
443
bzr 0.11rc1 2006-09-25
447
* Knit files now wait to create their contents until the first data is
448
added. The old code used to create an empty .knit and a .kndx with just
449
the header. However, this caused a lot of extra round trips over sftp.
450
This can change the time for ``bzr push`` to create a new remote branch
451
from 160s down to 100s. This also affects ``bzr commit`` performance when
452
adding new files, ``bzr commit`` on a new kernel-like tree drops from 50s
453
down to 40s (John Arbash Meinel, #44692)
455
* When an entire subtree has been deleted, commit will now report that
456
just the top of the subtree has been deleted, rather than reporting
457
all the individual items. (Robert Collins)
459
* Commit performs one less XML parse. (Robert Collins)
461
* ``bzr checkout`` now operates on readonly branches as well
462
as readwrite branches. This fixes bug #39542. (Robert Collins)
464
* ``bzr bind`` no longer synchronises history with the master branch.
465
Binding should be followed by an update or push to synchronise the
466
two branches. This is closely related to the fix for bug #39542.
469
* ``bzrlib.lazy_import.lazy_import`` function to create on-demand
470
objects. This allows all imports to stay at the global scope, but
471
modules will not actually be imported if they are not used.
474
* Support bzr:// and bzr+ssh:// urls to work with the new RPC-based
475
transport which will be used with the upcoming high-performance smart
476
server. The new command ``bzr serve`` will invoke bzr in server mode,
477
which processes these requests. (Andrew Bennetts, Robert Collins, Martin
480
* New command ``bzr version-info`` which can be used to get a summary
481
of the current state of the tree. This is especially useful as part
482
of a build commands. See ``doc/version_info.txt`` for more information
487
* 'bzr inventory [FILE...]' allows restricting the file list to a
488
specific set of files. (John Arbash Meinel, #3631)
490
* Don't abort when annotating empty files (John Arbash Meinel, #56814)
492
* Add ``Stanza.to_unicode()`` which can be passed to another Stanza
493
when nesting stanzas. Also, add ``read_stanza_unicode`` to handle when
494
reading a nested Stanza. (John Arbash Meinel)
496
* Transform._set_mode() needs to stat the right file.
497
(John Arbash Meinel, #56549)
499
* Raise WeaveFormatError rather than StopIteration when trying to read
500
an empty Weave file. (John Arbash Meinel, #46871)
502
* Don't access e.code for generic URLErrors, only HTTPErrors have .code.
503
(Vincent Ladeuil, #59835)
505
* Handle boundary="" lines properly to allow access through a Squid proxy.
506
(John Arbash Meinel, #57723)
508
* revert now removes newly-added directories (Aaron Bentley, #54172)
510
* ``bzr upgrade sftp://`` shouldn't fail to upgrade v6 branches if there
511
isn't a working tree. (David Allouche, #40679)
513
* Give nicer error messages when a user supplies an invalid --revision
514
parameter. (John Arbash Meinel, #55420)
516
* Handle when LANG is not recognized by python. Emit a warning, but
517
just revert to using 'ascii'. (John Arbash Meinel, #35392)
519
* Don't use preexec_fn on win32, as it is not supported by subprocess.
522
* Skip specific tests when the dependencies aren't met. This includes
523
some ``setup.py`` tests when ``python-dev`` is not available, and
524
some tests that depend on paramiko. (John Arbash Meinel, Mattheiu Moy)
526
* Fallback to Paramiko properly, if no ``ssh`` executable exists on
527
the system. (Andrew Bennetts, John Arbash Meinel)
529
* ``Branch.bind(other_branch)`` no longer takes a write lock on the
530
other branch, and will not push or pull between the two branches.
531
API users will need to perform a push or pull or update operation if they
532
require branch synchronisation to take place. (Robert Collins, #47344)
534
* When creating a tarball or zipfile export, export unicode names as utf-8
535
paths. This may not work perfectly on all platforms, but has the best
536
chance of working in the common case. (John Arbash Meinel, #56816)
538
* When committing, only files that exist in working tree or basis tree
539
may be specified (Aaron Bentley, #50793)
543
* Fixes to run on Python 2.5 (Brian M. Carlson, Martin Pool, Marien Zwart)
547
* TestCaseInTempDir now creates a separate directory for HOME, rather
548
than having HOME set to the same location as the working directory.
551
* run_bzr_subprocess() can take an optional 'env_changes={}' parameter,
552
which will update os.environ inside the spawned child. It also can
553
take a 'universal_newlines=True', which helps when checking the output
554
of the command. (John Arbash Meinel)
556
* Refactor SFTP vendors to allow easier re-use when ssh is used.
559
* Transport.list_dir() and Transport.iter_files_recursive() should always
560
return urlescaped paths. This is now tested (there were bugs in a few
561
of the transports) (Andrew Bennetts, David Allouche, John Arbash Meinel)
563
* New utility function symbol_versioning.deprecation_string. Returns the
564
formatted string for a callable, deprecation format pair. (Robert Collins)
566
* New TestCase helper applyDeprecated. This allows you to call a callable
567
which is deprecated without it spewing to the screen, just by supplying
568
the deprecation format string issued for it. (Robert Collins)
570
* Transport.append and Transport.put have been deprecated in favor of
571
.append_bytes, .append_file, .put_bytes, and .put_file. This removes the
572
ambiguity in what type of object the functions take.
573
Transport.non_atomic_put_{bytes,file} has also been added. Which works
574
similarly to Transport.append() except for SFTP, it doesn't have a round
575
trip when opening the file. Also, it provides functionality for creating
576
a parent directory when trying to create a file, rather than raise
577
NoSuchFile and forcing the caller to repeat their request.
580
* WorkingTree has a new api ``unversion`` which allow the unversioning of
581
entries by their file id. (Robert Collins)
583
* WorkingTree.pending_merges is deprecated. Please use the get_parent_ids
584
(introduced in 0.10) method instead. (Robert Collins)
586
* WorkingTree has a new lock_tree_write method which locks the branch for
587
read rather than write. This is appropriate for actions which only need
588
the branch data for reference rather than mutation. A new decorator
589
needs_tree_write_lock is provided in the workingtree module. Like the
590
needs_read_lock and needs_write_lock decorators this allows static
591
declaration of the locking requirements of a function to ensure that
592
a lock is taken out for casual scripts. (Robert Collins, #54107)
594
* All WorkingTree methods which write to the tree, but not to the branch
595
have been converted to use ``needs_tree_write_lock`` rather than
596
``needs_write_lock``. Also converted is the revert, conflicts and tree
597
transform modules. This provides a modest performance improvement on
598
metadir style trees, due to the reduce lock-acquisition, and a more
599
significant performance improvement on lightweight checkouts from
600
remote branches, where trivial operations used to pay a significant
601
penalty. It also provides the basis for allowing readonly checkouts.
604
* Special case importing the standard library 'copy' module. This shaves
605
off 40ms of startup time, while retaining compatibility. See:
606
``bzrlib/inspect_for_copy.py`` for more details. (John Arbash Meinel)
608
* WorkingTree has a new parent class MutableTree which represents the
609
specialisations of Tree which are able to be altered. (Robert Collins)
611
* New methods mkdir and put_file_bytes_non_atomic on MutableTree that
612
mutate the tree and its contents. (Robert Collins)
614
* Transport behaviour at the root of the URL is now defined and tested.
615
(Andrew Bennetts, Robert Collins)
619
* New test helper classs MemoryTree. This is typically accessed via
620
``self.make_branch_and_memory_tree()`` in test cases. (Robert Collins)
622
* Add start_bzr_subprocess and stop_bzr_subprocess to allow test code to
623
continue running concurrently with a subprocess of bzr. (Andrew Bennetts,
626
* Add a new method ``Transport.get_smart_client()``. This is provided to
627
allow upgrades to a richer interface than the VFS one provided by
628
Transport. (Andrew Bennetts, Martin Pool)
633
* 'merge' now takes --uncommitted, to apply uncommitted changes from a
634
tree. (Aaron Bentley)
636
* 'bzr add --file-ids-from' can be used to specify another path to use
637
for creating file ids, rather than generating all new ones. Internally,
638
the 'action' passed to smart_add_tree() can return file_ids that
639
will be used, rather than having bzrlib generate new ones.
640
(John Arbash Meinel, #55781)
642
* ``bzr selftest --benchmark`` now allows a ``--cache-dir`` parameter.
643
This will cache some of the intermediate trees, and decrease the
644
setup time for benchmark tests. (John Arbash Meinel)
646
* Inverse forms are provided for all boolean options. For example,
647
--strict has --no-strict, --no-recurse has --recurse (Aaron Bentley)
649
* Serialize out Inventories directly, rather than using ElementTree.
650
Writing out a kernel sized inventory drops from 2s down to ~350ms.
651
(Robert Collins, John Arbash Meinel)
655
* Help diffutils 2.8.4 get along with binary tests (Marien Zwart: #57614)
657
* Change LockDir so that if the lock directory doesn't exist when
658
lock_write() is called, an attempt will be made to create it.
659
(John Arbash Meinel, #56974)
661
* ``bzr uncommit`` preserves pending merges. (John Arbash Meinel, #57660)
663
* Active FTP transport now works as intended. (ghozzy, #56472)
665
* Really fix mutter() so that it won't ever raise a UnicodeError.
666
It means it is possible for ~/.bzr.log to contain non UTF-8 characters.
667
But it is a debugging log, not a real user file.
668
(John Arbash Meinel, #56947, #53880)
670
* Change Command handle to allow Unicode command and options.
671
At present we cannot register Unicode command names, so we will get
672
BzrCommandError('unknown command'), or BzrCommandError('unknown option')
673
But that is better than a UnicodeError + a traceback.
674
(John Arbash Meinel, #57123)
676
* Handle TZ=UTC properly when reading/writing revisions.
677
(John Arbash Meinel, #55783, #56290)
679
* Use GPG_TTY to allow gpg --cl to work with gpg-agent in a pipeline,
680
(passing text to sign in on stdin). (John Arbash Meinel, #54468)
682
* External diff does the right thing for binaries even in foreign
683
languages. (John Arbash Meinel, #56307)
685
* Testament handles more cases when content is unicode. Specific bug was
686
in handling of revision properties. (John Arbash Meinel, Holger Krekel,
689
* The bzr selftest was failing on installed versions due to a bug in a new
690
test helper. (John Arbash Meinel, Robert Collins, #58057)
694
* ``bzrlib.cache_utf8`` contains ``encode()`` and ``decode()`` functions
695
which can be used to cache the conversion between utf8 and Unicode.
696
Especially helpful for some of the knit annotation code, which has to
697
convert revision ids to utf8 to annotate lines in storage.
700
* ``setup.py`` now searches the filesystem to find all packages which
701
need to be installed. This should help make the life of packagers
702
easier. (John Arbash Meinel)
708
* The hard-coded built-in ignore rules have been removed. There are
709
now two rulesets which are enforced. A user global one in
710
~/.bazaar/ignore which will apply to every tree, and the tree
711
specific one '.bzrignore'.
712
~/.bazaar/ignore will be created if it does not exist, but with
713
a more conservative list than the old default.
714
This fixes bugs with default rules being enforced no matter what.
715
The old list of ignore rules from bzr is available by
716
running 'bzr ignore --old-default-rules'.
717
(Robert Collins, Martin Pool, John Arbash Meinel)
719
* 'branches.conf' has been changed to 'locations.conf', since it can apply
720
to more locations than just branch locations.
725
* The revision specifier "revno:" is extended to accept the syntax
726
revno:N:branch. For example,
727
revno:42:http://bazaar-vcs.org/bzr/bzr.dev/ means revision 42 in
728
bzr.dev. (Matthieu Moy)
730
* Tests updates to ensure proper URL handling, UNICODE support, and
731
proper printing when the user's terminal encoding cannot display
732
the path of a file that has been versioned.
733
``bzr branch`` can take a target URL rather than only a local directory.
734
Branch.get_parent()/set_parent() now save a relative path if possible,
735
and normalize the parent based on root, allowing access across
736
different transports. (John Arbash Meinel, Wouter van Heyst, Martin Pool)
737
(Malone #48906, #42699, #40675, #5281, #3980, #36363, #43689,
740
* On Unix, detect terminal width using an ioctl not just $COLUMNS.
741
Use terminal width for single-line logs from ``bzr log --line`` and
742
pending-merge display. (Robert Widhopf-Fenk, Gustavo Niemeyer)
745
* On Windows, detect terminal width using GetConsoleScreenBufferInfo.
746
(Alexander Belchenko)
748
* Speedup improvement for 'date:'-revision search. (Guillaume Pinot).
750
* Show the correct number of revisions pushed when pushing a new branch.
753
* 'bzr selftest' now shows a progress bar with the number of tests, and
754
progress made. 'make check' shows tests in -v mode, to be more useful
755
for the PQM status window. (Robert Collins).
756
When using a progress bar, failed tests are printed out, rather than
757
being overwritten by the progress bar until the suite finishes.
760
* 'bzr selftest --benchmark' will run a new benchmarking selftest.
761
'bzr selftest --benchmark --lsprof-timed' will use lsprofile to generate
762
profile data for the individual profiled calls, allowing for fine
763
grained analysis of performance.
764
(Robert Collins, Martin Pool).
766
* 'bzr commit' shows a progress bar. This is useful for commits over sftp
767
where commit can take an appreciable time. (Robert Collins)
769
* 'bzr add' is now less verbose in telling you what ignore globs were
770
matched by files being ignored. Instead it just tells you how many
771
were ignored (because you might reasonably be expecting none to be
772
ignored). 'bzr add -v' is unchanged and will report every ignored
773
file. (Robert Collins).
775
* ftp now has a test server if medusa is installed. As part of testing,
776
ftp support has been improved, including support for supplying a
777
non-standard port. (John Arbash Meinel).
779
* 'bzr log --line' shows the revision number, and uses only the
780
first line of the log message (#5162, Alexander Belchenko;
783
* 'bzr status' has had the --all option removed. The 'bzr ls' command
784
should be used to retrieve all versioned files. (Robert Collins)
786
* 'bzr bundle OTHER/BRANCH' will create a bundle which can be sent
787
over email, and applied on the other end, while maintaining ancestry.
788
This bundle can be applied with either 'bzr merge' or 'bzr pull',
789
the same way you would apply another branch.
790
(John Arbash Meinel, Aaron Bentley)
792
* 'bzr whoami' can now be used to set your identity from the command line,
793
for a branch or globally. (Robey Pointer)
795
* 'bzr checkout' now aliased to 'bzr co', and 'bzr annotate' to 'bzr ann'.
798
* 'bzr revert DIRECTORY' now reverts the contents of the directory as well.
801
* 'bzr get sftp://foo' gives a better error when paramiko is not present.
802
Also updates things like 'http+pycurl://' if pycurl is not present.
803
(John Arbash Meinel) (Malone #47821, #52204)
805
* New env variable BZR_PROGRESS_BAR, sets the default progress bar type.
806
Can be set to 'none' or 'dummy' to disable the progress bar, 'dots' or
807
'tty' to create the respective type. (John Arbash Meinel, #42197, #51107)
809
* Improve the help text for 'bzr diff' to explain what various options do.
810
(John Arbash Meinel, #6391)
812
* 'bzr uncommit -r 10' now uncommits revisions 11.. rather than uncommitting
813
revision 10. This makes -r10 more in line with what other commands do.
814
'bzr uncommit' also now saves the pending merges of the revisions that
815
were removed. So it is safe to uncommit after a merge, fix something,
816
and commit again. (John Arbash Meinel, #32526, #31426)
818
* 'bzr init' now also works on remote locations.
819
(Wouter van Heyst, #48904)
821
* HTTP support has been updated. When using pycurl we now support
822
connection keep-alive, which reduces dns requests and round trips.
823
And for both urllib and pycurl we support multi-range requests,
824
which decreases the number of round-trips. Performance results for
825
``bzr branch http://bazaar-vcs.org/bzr/bzr.dev/`` indicate
826
http branching is now 2-3x faster, and ``bzr pull`` in an existing
827
branch is as much as 4x faster.
828
(Michael Ellerman, Johan Rydberg, John Arbash Meinel, #46768)
830
* Performance improvements for sftp. Branching and pulling are now up to
831
2x faster. Utilize paramiko.readv() support for async requests if it
832
is available (paramiko > 1.6) (John Arbash Meinel)
836
* Fix shadowed definition of TestLocationConfig that caused some
837
tests not to run. (#32587, Erik Bågfors, Michael Ellerman,
840
* Fix unnecessary requirement of sign-my-commits that it be run from
841
a working directory. (Martin Pool, Robert Collins)
843
* 'bzr push location' will only remember the push location if it succeeds
844
in connecting to the remote location. (#49742, John Arbash Meinel)
846
* 'bzr revert' no longer toggles the executable bit on win32
847
(#45010, John Arbash Meinel)
849
* Handle broken pipe under win32 correctly. (John Arbash Meinel)
851
* sftp tests now work correctly on win32 if you have a newer paramiko
854
* Cleanup win32 test suite, and general cleanup of places where
855
file handles were being held open. (John Arbash Meinel)
857
* When specifying filenames for 'diff -r x..y', the name of the file in the
858
working directory can be used, even if its name is different in both x
861
* File-ids containing single- or double-quotes are handled correctly by
862
push. (#52227, Aaron Bentley)
864
* Normalize unicode filenames to ensure cross-platform consistency.
865
(John Arbash Meinel, #43689)
867
* The argument parser can now handle '-' as an argument. Currently
868
no code interprets it specially (it is mostly handled as a file named
869
'-'). But plugins, and future operations can use it.
870
(John Arbash meinel, #50984)
872
* Bundles can properly read binary files with a plain '\r' in them.
873
(John Arbash Meinel, #51927)
875
* Tuning iter_entries() to be more efficient (John Arbash Meinel, #5444)
877
* Lots of win32 fixes (the test suite passes again).
878
(John Arbash Meinel, #50155)
880
* Handle openbsd returning None for sys.getfilesystemencoding() (#41183)
882
* Support ftp APPE (append) to allow Knits to be used over ftp (#42592)
884
* Removals are only committed if they match the filespec (or if there is
885
no filespec). (#46635, Aaron Bentley)
887
* smart-add recurses through all supplied directories
888
(John Arbash Meinel, #52578)
890
* Make the bundle reader extra lines before and after the bundle text.
891
This allows you to parse an email with the bundle inline.
892
(John Arbash Meinel, #49182)
894
* Change the file id generator to squash a little bit more. Helps when
895
working with long filenames on windows. (Also helps for unicode filenames
896
not generating hidden files). (John Arbash Meinel, #43801)
898
* Restore terminal mode on C-c while reading sftp password. (#48923,
899
Nicholas Allen, Martin Pool)
901
* Timestamps are rounded to 1ms, and revision entries can be recreated
902
exactly. (John Arbash Meinel, Jamie Wilkinson, #40693)
904
* Branch.base has changed to a URL, but ~/.bazaar/locations.conf should
905
use local paths, since it is user visible (John Arbash Meinel, #53653)
907
* ``bzr status foo`` when foo was unversioned used to cause a full delta
908
to be generated (John Arbash Meinel, #53638)
910
* When reading revision properties, an empty value should be considered
911
the empty string, not None (John Arbash Meinel, #47782)
913
* ``bzr diff --diff-options`` can now handle binary files being changed.
914
Also, the output is consistent when --diff-options is not supplied.
915
(John Arbash Meinel, #54651, #52930)
917
* Use the right suffixes for loading plugins (John Arbash Meinel, #51810)
919
* Fix Branch.get_parent() to handle the case when the parent is not
920
accessible (John Arbash Meinel, #52976)
924
* Combine the ignore rules into a single regex rather than looping over
925
them to reduce the threshold where N^2 behaviour occurs in operations
926
like status. (Jan Hudec, Robert Collins).
928
* Appending to bzrlib.DEFAULT_IGNORE is now deprecated. Instead, use
929
one of the add functions in bzrlib.ignores. (John Arbash Meinel)
931
* 'bzr push' should only push the ancestry of the current revision, not
932
all of the history in the repository. This is especially important for
933
shared repositories. (John Arbash Meinel)
935
* bzrlib.delta.compare_trees now iterates in alphabetically sorted order,
936
rather than randomly walking the inventories. (John Arbash Meinel)
938
* Doctests are now run in temporary directories which are cleaned up when
939
they finish, rather than using special ScratchDir/ScratchBranch objects.
942
* Split ``check`` into separate methods on the branch and on the repository,
943
so that it can be specialized in ways that are useful or efficient for
944
different formats. (Martin Pool, Robert Collins)
946
* Deprecate Repository.all_revision_ids; most methods don't really need
947
the global revision graph but only that part leading up to a particular
948
revision. (Martin Pool, Robert Collins)
950
* Add a BzrDirFormat control_formats list which allows for control formats
951
that do not use '.bzr' to store their data - i.e. '.svn', '.hg' etc.
952
(Robert Collins, Jelmer Vernooij).
954
* bzrlib.diff.external_diff can be redirected to any file-like object.
955
Uses subprocess instead of spawnvp.
956
(#4047, #48914, James Henstridge, John Arbash Meinel)
958
* New command line option '--profile-imports', which will install a custom
959
importer to log time to import modules and regex compilation time to
960
sys.stderr (John Arbash Meinel)
962
* 'EmptyTree' is now deprecated, please use repository.revision_tree(None)
963
instead. (Robert Collins)
965
* "RevisionTree" is now in bzrlib/revisiontree.py. (Robert Collins)
971
* setup.py failed to install launchpad plugin. (Martin Pool)
977
* Fix failure to commit a merge in a checkout. (Martin Pool,
978
Robert Collins, Erik Bågfors, #43959)
980
* Nicer messages from 'commit' in the case of renames, and correct
981
messages when a merge has occured. (Robert Collins, Martin Pool)
983
* Separate functionality from assert statements as they are skipped in
984
optimized mode of python. Add the same check to pending merges.
985
(#44443, Olaf Conradi)
989
* Do not show the None revision in output of bzr ancestry. (Olaf Conradi)
991
* Add info on standalone branches without a working tree.
992
(#44155, Olaf Conradi)
994
* Fix bug in knits when raising InvalidRevisionId. (#44284, Olaf Conradi)
998
* Make editor invocation comply with Debian Policy. First check
999
environment variables VISUAL and EDITOR, then try editor from
1000
alternatives system. If that all fails, fall back to the pre-defined
1001
list of editors. (#42904, Olaf Conradi)
1005
* New 'register-branch' command registers a public branch into
1006
Launchpad.net, where it can be associated with bugs, etc.
1007
(Martin Pool, Bjorn Tillenius, Robert Collins)
1011
* New public api in InventoryEntry - 'describe_change(old, new)' which
1012
provides a human description of the changes between two old and
1013
new. (Robert Collins, Martin Pool)
1017
* Fix test case for bzr info in upgrading a standalone branch to metadir,
1018
uses bzrlib api now. (Olaf Conradi)
1022
NOTES WHEN UPGRADING:
1024
Release 0.8 of bzr introduces a new format for history storage, called
1025
'knit', as an evolution of to the 'weave' format used in 0.7. Local
1026
and remote operations are faster using knits than weaves. Several
1027
operations including 'init', 'init-repo', and 'upgrade' take a
1028
--format option that controls this. Branching from an existing branch
1029
will keep the same format.
1031
It is possible to merge, pull and push between branches of different
1032
formats but this is slower than moving data between homogenous
1033
branches. It is therefore recommended (but not required) that you
1034
upgrade all branches for a project at the same time. Information on
1035
formats is shown by 'bzr info'.
1037
bzr 0.8 now allows creation of 'repositories', which hold the history
1038
of files and revisions for several branches. Previously bzr kept all
1039
the history for a branch within the .bzr directory at the root of the
1040
branch, and this is still the default. To create a repository, use
1041
the new 'bzr init-repo' command. Branches exist as directories under
1042
the repository and contain just a small amount of information
1043
indicating the current revision of the branch.
1045
bzr 0.8 also supports 'checkouts', which are similar to in cvs and
1046
subversion. Checkouts are associated with a branch (optionally in a
1047
repository), which contains all the historical information. The
1048
result is that a checkout can be deleted without losing any
1049
already-committed revisions. A new 'update' command is also available.
1051
Repositories and checkouts are not supported with the 0.7 storage
1052
format. To use them you must upgrad to either knits, or to the
1053
'metaweave' format, which uses weaves but changes the .bzr directory
1059
* Sftp paths can now be relative, or local, according to the lftp
1060
convention. Paths now take the form:
1061
sftp://user:pass@host:port/~/relative/path
1063
sftp://user:pass@host:port/absolute/path
1065
* The FTP transport now tries to reconnect after a temporary
1066
failure. ftp put is made atomic. (Matthieu Moy)
1068
* The FTP transport now maintains a pool of connections, and
1069
reuses them to avoid multiple connections to the same host (like
1070
sftp did). (Daniel Silverstone)
1072
* The bzr_man.py file has been removed. To create the man page now,
1073
use ./generate_docs.py man. The new program can also create other files.
1074
Run "python generate_docs.py --help" for usage information. (Hans
1075
Ulrich Niedermann & James Blackwell).
1077
* Man Page now gives full help (James Blackwell). Help also updated to
1078
reflect user config now being stored in .bazaar (Hans Ulrich
1081
* It's now possible to set aliases in bazaar.conf (Erik Bågfors)
1083
* Pull now accepts a --revision argument (Erik Bågfors)
1085
* 'bzr re-sign' now allows multiple revisions to be supplied on the command
1086
line. You can now use the following command to sign all of your old commits.
1087
find .bzr/revision-store// -name my@email-* \
1088
| sed 's/.*\/\/..\///' \
1091
* Upgrade can now upgrade over the network. (Robert Collins)
1093
* Two new commands 'bzr checkout' and 'bzr update' allow for CVS/SVN-alike
1094
behaviour. By default they will cache history in the checkout, but
1095
with --lightweight almost all data is kept in the master branch.
1098
* 'revert' unversions newly-versioned files, instead of deleting them.
1100
* 'merge' is more robust. Conflict messages have changed.
1102
* 'merge' and 'revert' no longer clobber existing files that end in '~' or
1105
* Default log format can be set in configuration and plugins can register
1106
their own formatters. (Erik Bågfors)
1108
* New 'reconcile' command will check branch consistency and repair indexes
1109
that can become out of sync in pre 0.8 formats. (Robert Collins,
1112
* New 'bzr init --format' and 'bzr upgrade --format' option to control
1113
what storage format is created or produced. (Robert Collins,
1116
* Add parent location to 'bzr info', if there is one. (Olaf Conradi)
1118
* New developer commands 'weave-list' and 'weave-join'. (Martin Pool)
1120
* New 'init-repository' command, plus support for repositories in 'init'
1121
and 'branch' (Aaron Bentley, Erik Bågfors, Robert Collins)
1123
* Improve output of 'info' command. Show all relevant locations related to
1124
working tree, branch and repository. Use kibibytes for binary quantities.
1125
Fix off-by-one error in missing revisions of working tree. Make 'info'
1126
work on branches, repositories and remote locations. Show locations
1127
relative to the shared repository, if applicable. Show locking status
1128
of locations. (Olaf Conradi)
1130
* Diff and merge now safely handle binary files. (Aaron Bentley)
1132
* 'pull' and 'push' now normalise the revision history, so that any two
1133
branches with the same tip revision will have the same output from 'log'.
1136
* 'merge' accepts --remember option to store parent location, like 'push'
1137
and 'pull'. (Olaf Conradi)
1139
* bzr status and diff when files given as arguments do not exist
1140
in the relevant trees. (Martin Pool, #3619)
1142
* Add '.hg' to the default ignore list. (Martin Pool)
1144
* 'knit' is now the default disk format. This improves disk performance and
1145
utilization, increases incremental pull performance, robustness with SFTP
1146
and allows checkouts over SFTP to perform acceptably.
1147
The initial Knit code was contributed by Johan Rydberg based on a
1148
specification by Martin Pool.
1149
(Robert Collins, Aaron Bentley, Johan Rydberg, Martin Pool).
1151
* New tool to generate all-in-one html version of the manual. (Alexander
1154
* Hitting CTRL-C while doing an SFTP push will no longer cause stale locks
1155
to be left in the SFTP repository. (Robert Collins, Martin Pool).
1157
* New option 'diff --prefix' to control how files are named in diff
1158
output, with shortcuts '-p0' and '-p1' corresponding to the options for
1159
GNU patch. (Alexander Belchenko, Goffredo Baroncelli, Martin Pool)
1161
* Add --revision option to 'annotate' command. (Olaf Conradi)
1163
* If bzr shows an unexpected revision-history after pulling (perhaps due
1164
to a reweave) it can now be corrected by 'bzr reconcile'.
1169
* Commit is now verbose by default, and shows changed filenames and the
1170
new revision number. (Robert Collins, Martin Pool)
1172
* Unify 'mv', 'move', 'rename'. (#5379, Matthew Fuller)
1174
* 'bzr -h' shows help. (#35940, Martin Pool, Ian Bicking)
1176
* Make 'pull' and 'push' remember location on failure using --remember.
1179
* For compatibility, make old format for using weaves inside metadir
1180
available as 'metaweave' format. Rename format 'metadir' to 'default'.
1181
Clean up help for option --format in commands 'init', 'init-repo' and
1182
'upgrade'. (Olaf Conradi)
1186
* The internal storage of history, and logical branch identity have now
1187
been split into Branch, and Repository. The common locking and file
1188
management routines are now in bzrlib.lockablefiles.
1189
(Aaron Bentley, Robert Collins, Martin Pool)
1191
* Transports can now raise DependencyNotPresent if they need a library
1192
which is not installed, and then another implementation will be
1193
tried. (Martin Pool)
1195
* Remove obsolete (and no-op) `decode` parameter to `Transport.get`.
1198
* Using Tree Transform for merge, revert, tree-building
1200
* WorkingTree.create, Branch.create, WorkingTree.create_standalone,
1201
Branch.initialize are now deprecated. Please see BzrDir.create_* for
1202
replacement API's. (Robert Collins)
1204
* New BzrDir class represents the .bzr control directory and manages
1205
formatting issues. (Robert Collins)
1207
* New repository.InterRepository class encapsulates Repository to
1208
Repository actions and allows for clean selection of optimised code
1209
paths. (Robert Collins)
1211
* bzrlib.fetch.fetch and bzrlib.fetch.greedy_fetch are now deprecated,
1212
please use 'branch.fetch' or 'repository.fetch' depending on your
1213
needs. (Robert Collins)
1215
* deprecated methods now have a 'is_deprecated' flag on them that can
1216
be checked, if you need to determine whether a given callable is
1217
deprecated at runtime. (Robert Collins)
1219
* Progress bars are now nested - see
1220
bzrlib.ui.ui_factory.nested_progress_bar. (Robert Collins, Robey Pointer)
1222
* New API call get_format_description() for each type of format.
1225
* Changed branch.set_parent() to accept None to remove parent.
1228
* Deprecated BzrError AmbiguousBase. (Olaf Conradi)
1230
* WorkingTree.branch is now a read only property. (Robert Collins)
1232
* bzrlib.ui.text.TextUIFactory now accepts a bar_type parameter which
1233
can be None or a factory that will create a progress bar. This is
1234
useful for testing or for overriding the bzrlib.progress heuristic.
1237
* New API method get_physical_lock_status() to query locks present on a
1238
transport. (Olaf Conradi)
1240
* Repository.reconcile now takes a thorough keyword parameter to allow
1241
requesting an indepth reconciliation, rather than just a data-loss
1242
check. (Robert Collins)
1244
* bzrlib.ui.ui_factory protocol now supports 'get_boolean' to prompt
1245
the user for yes/no style input. (Robert Collins)
1249
* SFTP tests now shortcut the SSH negotiation, reducing test overhead
1250
for testing SFTP protocol support. (Robey Pointer)
1252
* Branch formats are now tested once per implementation (see bzrlib.
1253
tests.branch_implementations. This is analagous to the transport
1254
interface tests, and has been followed up with working tree,
1255
repository and BzrDir tests. (Robert Collins)
1257
* New test base class TestCaseWithTransport provides a transport aware
1258
test environment, useful for testing any transport-interface using
1259
code. The test suite option --transport controls the transport used
1260
by this class (when its not being used as part of implementation
1261
contract testing). (Robert Collins)
1263
* Close logging handler on disabling the test log. This will remove the
1264
handler from the internal list inside python's logging module,
1265
preventing shutdown from closing it twice. (Olaf Conradi)
1267
* Move test case for uncommit to blackbox tests. (Olaf Conradi)
1269
* run_bzr and run_bzr_captured now accept a 'stdin="foo"' parameter which
1270
will provide String("foo") to the command as its stdin.