branch svn:// fails due to KeyError u'filename'

Bug #313893 reported by Daniel Clemente
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
New
Undecided
Unassigned

Bug Description

With latest bzrtools, bzr-svn, bzr. I got this. The „--stacked“ and „-r last:1“ are not necessary for it to fail.

$ bzr branch svn://scribus.info/Scribus/trunk/Scribus --stacked -r last:1
bzr: ERROR: exceptions.KeyError: u'scribus/icons/rect.png'

Traceback (most recent call last):
  File "/Werkstatt/bzr/oficial/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Werkstatt/bzr/oficial/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/Werkstatt/bzr/oficial/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Werkstatt/bzr/oficial/bzrlib/builtins.py", line 991, in run
    source_branch=br_from)
  File "/home/dc/.bazaar/plugins/svn/remote.py", line 65, in sprout
    return super(SvnRemoteAccess, self).sprout(*args, **kwargs)
  File "/Werkstatt/bzr/oficial/bzrlib/bzrdir.py", line 1127, in sprout
    hardlink=hardlink)
  File "/Werkstatt/bzr/oficial/bzrlib/bzrdir.py", line 1441, in create_workingtree
    accelerator_tree=accelerator_tree, hardlink=hardlink)
  File "/Werkstatt/bzr/oficial/bzrlib/workingtree_4.py", line 1370, in initialize
    basis = branch.repository.revision_tree(revision_id)
  File "/Werkstatt/bzr/oficial/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/Werkstatt/bzr/oficial/bzrlib/repository.py", line 1809, in revision_tree
    inv = self.get_revision_inventory(revision_id)
  File "/Werkstatt/bzr/oficial/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/Werkstatt/bzr/oficial/bzrlib/repository.py", line 1772, in get_revision_inventory
    return self.get_inventory(revision_id)
  File "/Werkstatt/bzr/oficial/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/Werkstatt/bzr/oficial/bzrlib/repository.py", line 1663, in get_inventory
    return self.iter_inventories([revision_id]).next()
  File "/Werkstatt/bzr/oficial/bzrlib/repository.py", line 1681, in _iter_inventories
    for text, revision_id in self._iter_inventory_xmls(revision_ids):
  File "/Werkstatt/bzr/oficial/bzrlib/repository.py", line 1688, in _iter_inventory_xmls
    for record in stream:
  File "/Werkstatt/bzr/oficial/bzrlib/knit.py", line 1189, in get_record_stream
    ordering, include_delta_closure):
  File "/Werkstatt/bzr/oficial/bzrlib/knit.py", line 1292, in _get_remaining_record_stream
    text_map, _ = self._get_content_maps(keys, non_local)
  File "/Werkstatt/bzr/oficial/bzrlib/knit.py", line 1023, in _get_content_maps
    'unordered', True):
  File "/Werkstatt/bzr/oficial/bzrlib/versionedfile.py", line 1458, in get_record_stream
    lines = self._get_lines(k)
  File "/home/dc/.bazaar/plugins/svn/foreign/versionedfiles.py", line 39, in get_lines
    return osutils.split_lines(self.repository.get_inventory_xml(key))
  File "/Werkstatt/bzr/oficial/bzrlib/foreign.py", line 220, in get_inventory_xml
    return self.serialise_inventory(self.get_inventory(revision_id))
  File "/home/dc/.bazaar/plugins/svn/repository.py", line 448, in get_inventory
    return self.revision_tree(revision_id).inventory
  File "/home/dc/.bazaar/plugins/svn/repository.py", line 550, in revision_tree
    return SvnRevisionTree(self, revision_id)
  File "/home/dc/.bazaar/plugins/svn/tree.py", line 75, in __init__
    self.id_map = repository.get_fileid_map(self._revmeta, mapping)
  File "/home/dc/.bazaar/plugins/svn/repository.py", line 451, in get_fileid_map
    return self.fileid_map.get_map(revmeta.get_foreign_revid(), mapping)
  File "/home/dc/.bazaar/plugins/svn/fileids.py", line 304, in get_map
    self.actual.update_map(map, revid, idmap, changes)
  File "/home/dc/.bazaar/plugins/svn/fileids.py", line 207, in update_map
    del map[x]
KeyError: u'scribus/icons/rect.png'

bzr 1.11dev on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'svn://scribus.info/Scribus/trunk/Scribus', '--stacked', '-r', 'last:1']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'es_ES.UTF-8'
plugins:
  bzrtools /home/dc/.bazaar/plugins/bzrtools [1.10]
  fastimport /home/dc/.bazaar/plugins/fastimport [unknown]
  gtk /home/dc/.bazaar/plugins/gtk [0.96.0.dev.1]
  launchpad /Werkstatt/bzr/oficial/bzrlib/plugins/launchpad [unknown]
  qbzr /home/dc/.bazaar/plugins/qbzr [0.9.5dev]
  svn /home/dc/.bazaar/plugins/svn [0.5.0.rc.1]
*** 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
Daniel Clemente (n142857) wrote :

Another strange error after a long wait after the command: bzr branch svn://scribus.info/Scribus/trunk/Scribus

bzr: ERROR: Unable to find file id for child 'config.pl' in 'admin' in <RevisionMetadata for revision 599, path branches/Version13x/Scribus in repository '11d20701-8431-0410-a711-e3c959e3b870'>.

And no backtrace.

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.