bzr crashed while pushing

Bug #212193 reported by Tomáš Myšík
4
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

While pushing, bzr crashed - see the output below.

gapon@cattie ~/public_html/worx/swiz5 $ bzr push
Using saved location: bzr+ssh://default/srv/repo/swiz5.bzr/
Bzrtools is not up to date with installed bzr version 1.1.0.candidate.1.
There should be a newer version available, e.g. 1.1.
Unable to load plugin 'bzrtools' from '/usr/lib/python2.4/site-packages/bzrlib/plugins'
Server is too old for fast get_parent_map, reconnecting. (Upgrade the server to Bazaar 1.2 to avoid this)
Bzrtools is not up to date with installed bzr version 1.1.0.candidate.1.
There should be a newer version available, e.g. 1.1.
Unable to load plugin 'bzrtools' from '/usr/lib/python2.4/site-packages/bzrlib/plugins'
bzr: ERROR: exceptions.AssertionError: 321 != 322

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 840, in run
    stop_revision=revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 127, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1556, in push
    _override_hook_source_branch=_override_hook_source_branch)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1598, in _push_with_bound_branches
    result = self._basic_push(target, overwrite, stop_revision)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1617, in _basic_push
    target.update_revisions(self, stop_revision)
  File "/usr/lib/python2.5/site-packages/bzrlib/remote.py", line 1526, in update_revisions
    other, stop_revision=stop_revision, overwrite=overwrite)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1480, in update_revisions
    other_last_revision)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/branch.py", line 1398, in set_last_revision_info
    assert len(history) == revno, '%d != %d' % (len(history), revno)
AssertionError: 321 != 322

bzr 1.3 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'push']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'cs_CZ.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.3.0]
  diffstat /home/gapon/.bazaar/plugins/diffstat [unknown]
  docdiff /home/gapon/.bazaar/plugins/docdiff [0.9.0]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.93.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  lessdiff /home/gapon/.bazaar/plugins/lessdiff [unknown]
  lesslog /home/gapon/.bazaar/plugins/lesslog [unknown]
  qbzr /home/gapon/.bazaar/plugins/qbzr [0.9.0]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.2.0]
  stats /home/gapon/.bazaar/plugins/stats [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Martin Albisetti (beuno) wrote :

I suspect this is due to a problem with bzrtools plugin rather then bzr.
Could you disable the plugin and try again?

Revision history for this message
Aaron Bentley (abentley) wrote :

It's nothing to do with bzrtools. Bzrtools isn't even being loaded.

The problem appears to be that the remote branch is in a format earlier than dirstate-tags and its revision-history doesn't follow the lefthand history. Bazaar used to consider this okay, but newer formats use the lefthand history exclusively.

The local branch appears to be in dirstate-tags or a more recent format, so it follows the lefthand history, and the branches disagree about what history should look like.

Upgrading the remote branch to dirstate-tags or later should fix this problem.

Revision history for this message
Laurent Bigonville (bigon) wrote :

I can confirm that upgrading the branch to dirstate-tags fix the problem

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.