bzr 0.19 generate bundle that is not understandable by 0.18

Bug #129724 reported by Alexander Belchenko
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Critical
Aaron Bentley

Bug Description

I have no way with bzr 0.19 to generate bundle that will be understandable by bzr 0.18.
I have only bzr 0.18 on my server, and I try to transfer latest changes from my local machine. Unfortunately bzr 0.19 generate new merge-directive format bundle, and I can't see a way to force generation of old format bundle. It's breaks compatibility with older versions of bzr.

When I try to pull bundle I have this error:

[bialix@donkey ~/repo/bzr.easy_install]$ bzr -Derror --no-plugins pull .bundle
bzr: ERROR: bzrlib.errors.NotBranchError: Not a branch: /webhomes/bialix/repo/bzr.easy_install/.bundle/

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commands.py", line 729, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commands.py", line 691, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commands.py", line 389, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/builtins.py", line 610, in run
    branch_from = Branch.open(location)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/branch.py", line 131, in open
    control = bzrdir.BzrDir.open(base, _unsupported)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 529, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 566, in open_from_transport
    redirected)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1166, in do_catching_redirections
    return action(transport)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 543, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1248, in find_format
    raise errors.NotBranchError(path=transport.base)
NotBranchError: Not a branch: /webhomes/bialix/repo/bzr.easy_install/.bundle/

bzr 0.18.0 on python 2.5.0.final.0 (freebsd5)
arguments: ['/usr/local/bin/bzr', '-Derror', '--no-plugins', 'pull', '.bundle']

** please send this report to <email address hidden>

Revision history for this message
John A Meinel (jameinel) wrote :

'bzr bundle' changed to creating merge directives with a new format bundle internally.

They are a lot smaller and more efficient, but older clients will not be able to read them.

As part of the fix for bug #129504, it would be reasonable to change:

'bzr bundle' to be a separate command from 'bzr send'. And we can make it deprecated/hidden.

It should still create Bundle format 8/9, while 'bzr send -o' can generate the new format bundles.

It would be reasonable that 'bzr bundle' to issue a note saying that you can use 'bzr send -o' instead, which will generate a smaller/clearer/etc format.

There are some other incompatibilities. (bzr send *always* requires a target branch, while bzr bundle -r -2..-1 would just generate the bundle to recreate -1 from -2. It is possible that 'bzr send -r -2..-1 .' would do the same)

The new bundle format is pretty clear that you need at least bzr 0.19, since it has that in the header.

Revision history for this message
John A Meinel (jameinel) wrote :

I think this should be fixed before 0.19 is released, along with bug #129504

Changed in bzr:
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Aaron Bentley (abentley) wrote :

--format 0.9 will produce output compatible with Bazaar 0.12 and later.

Changed in bzr:
assignee: nobody → aaron-bentley
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.