exceptions.KeyError when branching from 1.1 server via bzr+ssh

Bug #214619 reported by Vadim Zeitlin
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Unassigned

Bug Description

I'm using bzr 1.1.0.candidate.1 (latest available package) with Python 2.4 under Debian and 1.3 with Python 2.5 under Windows. I've created a trivial repository for testing:

% mkdir -p ~/src/tst/bzr
% cd $_
% bzr init
% touch foo bar
% bzr add
% bzr ci -m "initial"

and then tried to clone it from Windows:

t:\tmp> bzr branch bzr+ssh://unix-machine-name/home/zeitlin/src/tst/bzr

which resulted in the following error:

Server is too old for fast get_parent_map, reconnecting. (Upgrade the server to Bazaar 1.2 to avoid this)
bzr: ERROR: exceptions.KeyError: 'file:///T:/tmp/bzr/.bzr/repository/upload/ct2djod0w918c9tzkg0x.pack'

Traceback (most recent call last):
  File "D:\Python\2.5\lib\site-packages\bzrlib\commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "D:\Python\2.5\lib\site-packages\bzrlib\commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "D:\Python\2.5\lib\site-packages\bzrlib\commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "D:\Python\2.5\lib\site-packages\bzrlib\builtins.py", line 927, in run
    hardlink=hardlink)
  File "D:\Python\2.5\lib\site-packages\bzrlib\bzrdir.py", line 941, in sprout
    revision_id=revision_id)
  File "D:\Python\2.5\lib\site-packages\bzrlib\remote.py", line 655, in sprout
    dest_repo.fetch(self, revision_id=revision_id)
  File "D:\Python\2.5\lib\site-packages\bzrlib\repository.py", line 949, in fetch
    return inter.fetch(revision_id=revision_id, pb=pb, find_ghosts=find_ghosts)
  File "D:\Python\2.5\lib\site-packages\bzrlib\decorators.py", line 167, in write_locked
    self.unlock()
  File "D:\Python\2.5\lib\site-packages\bzrlib\inter.py", line 110, in unlock
    self.target.unlock()
  File "D:\Python\2.5\lib\site-packages\bzrlib\repofmt\pack_repo.py", line 2073, in unlock
    self.abort_write_group()
  File "D:\Python\2.5\lib\site-packages\bzrlib\repository.py", line 482, in abort_write_group
    self._abort_write_group()
  File "D:\Python\2.5\lib\site-packages\bzrlib\repofmt\pack_repo.py", line 1850, in _abort_write_group
    self._pack_collection._abort_write_group()
  File "D:\Python\2.5\lib\site-packages\bzrlib\repofmt\pack_repo.py", line 1654, in _abort_write_group
    self._new_pack.abort()
  File "D:\Python\2.5\lib\site-packages\bzrlib\repofmt\pack_repo.py", line 318, in abort
    self.write_stream.close()
  File "D:\Python\2.5\lib\site-packages\bzrlib\transport\__init__.py", line 281, in close
    del _file_streams[self.transport.abspath(self.relpath)]
KeyError: 'file:///T:/tmp/bzr/.bzr/repository/upload/ct2djod0w918c9tzkg0x.pack'

I realize that 1.1 is an old version by now but it's still a rather annoying problem for me as I'd prefer to use a packaged version on the Debian system instead of installing latest and greatest from, source if possible. FWIW using bzr: protocol does work but bzr+ssh: would be much more convenient so I'd be grateful for any ideas about how to work around the problem above.

Thanks in advance!

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

I'm pretty sure this is a duplicate of a fixed bug. If you have any problems with newer versions, feel free to re-open this.

Changed in bzr:
status: New → 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.