Networking bugs in bzr 1.13/1.14

Robert Collins robert.collins at canonical.com
Thu Jun 11 03:28:56 BST 2009


Bazaar 1.13 introduced streaming fetch over the bzr:// protocol, which
makes push and pull operations substantially faster.  Unfortunately
due to mismatches with existing code this does not operate correctly
on stacked branches in many cases.  The server is unable to correctly
determine the deltas to send and gives an error when you next try to
pull from an affected branch.

If you are not using stacked branches this does not affect you.
Bazaar will not create stacked branches by default unless you specify
the --stacked option to push/branch, or set a server-side policy for
them. Launchpad sets a server-side policy for stacking - users of
Launchpad will be using stacked branches. You can tell if a branch is
stacked by running 'bzr info BRANCHURL' and looking for
   stacked on: URL
in the output.

If you are using stacked branches, then using bzr versions before
1.13.2, 1.14.2 or 1.14 and above may create repositories that cannot be
streamed from.

A fix for this issue in included in bzr 1.15.

There is another potential failure mode that may affect projects using
bzr-svn, or migrating from GNU Arch. If you encounter a 'Revision
REVISIONID not present' error when branching, you may be suffering
https://bugs.launchpad.net/bzr/+bug/368418. A fix for this was also
included in 1.15.


Resolving this issue
--------------------

Existing branches which are affected require a script run on them to fix
them. The script and instructions are in
https://bugs.launchpad.net/launchpad-code/+bug/354036.

To avoid the bug, bzr needs to be either updated to the current
version from bzr.dev, or you can apply the patches listed below.

If you are using Ubuntu, packages of bzr.dev are available via the
nightly Personal Package Archive
https://launchpad.net/~bzr-nightly-ppa/+archive/ppa.

On the bzr server:
Apply http://bazaar.launchpad.net/~bzr/bzr/trunk/revision/4307, as per
https://bugs.launchpad.net/launchpad-code/+bug/354036. This is included
in bzr 1.15.
Apply http://bazaar.launchpad.net/~bzr/bzr/trunk/revision/4342, as per
https://bugs.launchpad.net/ubuntu/+source/bzr/+bug/360791. This is
included in bzr 1.15.

On client machines:
Run bzr 1.13.2 or bzr 1.14.2. Older versions of bzr will continue to
create problematic branches that will require the fixer script in
https://bugs.launchpad.net/launchpad-code/+bug/354036 to be run against
them.

For further information and support please contact the Bazaar community
via https://answers.launchpad.net/bzr, #bzr on irc.freenode.net, or
bazaar at lists.canonical.com.

-The Bazaar developers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar-announce/attachments/20090611/07226105/attachment.pgp 


More information about the bazaar-announce mailing list