Comment 10 for bug 241170

Revision history for this message
cyli (cyli) wrote : Re: Assertion error when trying to push

So full details of what I did are here (apologies for seeming to beat this into the ground, but I thought my general description may not have been very clear):

Server:
cyli@legion:~$ mkdir Temp
cyli@legion:~$ cd Temp
cyli@legion:~/Temp$ bzr init
cyli@legion:~/Temp$ echo hello > hello.txt
cyli@legion:~/Temp$ bzr add hello.txt
added hello.txt
cyli@legion:~/Temp$ bzr commit -m "added hello.txt"
added hello.txt
Committed revision 1.
cyli@legion:~/Temp$ bzr ancestry
cyli@legion-20080708070158-avaluy8zhfg6j45x

Local:
jinchuuriki:~ cyli$ mkdir Temp
jinchuuriki:~ cyli$ cd Temp
jinchuuriki:Temp cyli$ bzr checkout bzr+ssh://legion/home/cyli/Temp .
Server is too old for fast get_parent_map, reconnecting. (Upgrade the server to Bazaar 1.2 to avoid this)
jinchuuriki:Temp cyli$ bzr ancestry
cyli@legion-20080708070158-avaluy8zhfg6j45x
jinchuuriki:Temp cyli$ echo "hello again" >> hello.txt
jinchuuriki:Temp cyli$ bzr status
modified:
  hello.txt
jinchuuriki:Temp cyli$ bzr commit -m "changed hello.txt"
Committing to: bzr+ssh://legion/home/cyli/Temp/
modified hello.txt
Server is too old for fast get_parent_map, reconnecting. (Upgrade the server to Bazaar 1.2 to avoid this)
bzr: ERROR: exceptions.AssertionError: 1 != 2

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.5/site-packages/bzrlib/builtins.py", line 2364, in run
    author=author)
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/workingtree_4.py", line 240, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/mutabletree.py", line 197, in commit
    revprops=revprops, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/commit.py", line 392, in commit
    self.rev_id)
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/remote.py", line 1511, in set_last_revision_info
    return self._real_branch.set_last_revision_info(revno, revision_id)
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/branch.py", line 1456, in set_last_revision_info
    raise AssertionError('%d != %d' % (len(history), revno))
AssertionError: 1 != 2

bzr 1.5 on python 2.5.1 (darwin)
arguments: ['/usr/local/bin/bzr', 'commit', '-m', 'changed hello.txt']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /Library/Python/2.5/site-packages/bzrlib/plugins/bzrtools [1.5.0]
  launchpad /Library/Python/2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  qbzr /Library/Python/2.5/site-packages/bzrlib/plugins/qbzr [0.9.0]
  rebase /Library/Python/2.5/site-packages/bzrlib/plugins/rebase [0.3.0dev0]
*** 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.
jinchuuriki:Temp cyli$ bzr ancestry
cyli@legion-20080708070158-avaluy8zhfg6j45x