Attempting a lightweight checkout raises KeyError exception

Bug #190843 reported by Brian de Alwis
4
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

Server is: svn+https://papyrus.usask.ca/svn/dept. I've set my svn-branching-scheme to be:

gt/trunk
gt/branches/*
gt/tags/*
hci/projects/*/*

Trying to a lightweight check out svn+https://papyrus.usask.ca/svn/dept/gt/trunk fails with a KeyError exception. I was able to do a lightweight checkout previously when the branching-scheme was 'single' and mandatory was 'False'.

$ cat ~/.bazaar/subversion.conf
[2d47b262-a5da-0310-af36-9ee85df9eb2a]
locations = svn+https://papyrus.usask.ca/svn/dept;https://papyrus.usask.ca/svn/dept
branching-scheme = list-QlpoOTFBWSZTWedGXbUAAA3RgAAQABC6-d4AIAAhoRoDI00KZMTIMjNoVAIQx5jLy94_UZgOCL1nWol3lDJRu_xdyRThQkOdGXbU
branching-scheme-mandatory = True

$ bzr co --lightweight svn+https://papyrus.usask.ca/svn/dept/gt/trunk gt-trunk
bzr: ERROR: exceptions.KeyError: 'svn-v3-list-QlpoOTFBWSZTWedGXbUAAA3RgAAQABC6-d4AIAAhoRoDI00KZMTIMjNoVAIQx5jLy94_UZgOCL1nWol3lDJRu_xdyRThQkOdGXbU:2d47b262-a5da-0310-af36-9ee85df9eb2a:gt%2Ftrunk:4882'

Traceback (most recent call last):
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/commands.py", line 806, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/commands.py", line 762, in run_bzr
    ret = run(*run_argv)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/builtins.py", line 989, in run
    accelerator_tree)
  File "/Users/bsd/.bazaar/plugins/svn/branch.py", line 189, in create_checkout
    return self._create_lightweight_checkout(to_location, revision_id)
  File "/Users/bsd/.bazaar/plugins/svn/branch.py", line 183, in _create_lightweight_checkout
    return WorkingTree.open(to_location)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/workingtree.py", line 333, in open
    return control.open_workingtree(_unsupported)
  File "/Users/bsd/.bazaar/plugins/svn/workingtree.py", line 751, in open_workingtree
    return SvnWorkingTree(self, self.local_path, self.open_branch())
  File "/Users/bsd/.bazaar/plugins/svn/workingtree.py", line 92, in __init__
    self.base_tree = SvnBasisTree(self)
  File "/Users/bsd/.bazaar/plugins/svn/tree.py", line 227, in __init__
    workingtree.branch.mapping)
  File "/Users/bsd/.bazaar/plugins/svn/repository.py", line 259, in get_fileid_map
    self.revision_fileid_renames, mapping)
  File "/Users/bsd/.bazaar/plugins/svn/fileids.py", line 173, in get_map
    revmap = self._apply_changes(new_file_id, changes, find_children)
  File "/Users/bsd/.bazaar/plugins/svn/fileids.py", line 219, in _apply_changes
    for c in find_children(data[1], data[2]):
  File "/Users/bsd/.bazaar/plugins/svn/fileids.py", line 163, in find_children
    (revnum, bp) = quickrevidmap[revid]
KeyError: 'svn-v3-list-QlpoOTFBWSZTWedGXbUAAA3RgAAQABC6-d4AIAAhoRoDI00KZMTIMjNoVAIQx5jLy94_UZgOCL1nWol3lDJRu_xdyRThQkOdGXbU:2d47b262-a5da-0310-af36-9ee85df9eb2a:gt%2Ftrunk:4882'

bzr 1.1.0 on python 2.4.4.final.0 (darwin)
arguments: ['/usr/pkg/bin/bzr', 'co', '--lightweight', 'svn+https://papyrus.usask.ca/svn/dept/gt/trunk', 'gt-trunk']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_CA.UTF-8'
plugins:
  automv /Users/bsd/.bazaar/plugins/automv [unknown]
  launchpad /usr/pkg/lib/python2.4/site-packages/bzrlib/plugins/launchpad [unknown]
  multiparent /usr/pkg/lib/python2.4/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
  svn /Users/bsd/.bazaar/plugins/svn [0.4.8dev0]
*** 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
Jelmer Vernooij (jelmer) wrote :

This is a regression in the 0.4 branch.

Changed in bzr-svn:
assignee: nobody → jelmer
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This has been fixed.

Changed in bzr-svn:
status: Triaged → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → 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.