Comment 3 for bug 393349

Revision history for this message
Jonathan Lange (jml) wrote : Re: exceptions.AttributeError: 'AbsentContentFactory' object has no attribute 'get_bytes_as'

  File ELIDED, line NNN, in someFunction
    dest_branch.pull(source_branch, overwrite=True)
  File "<string>", line 4, in pull_write_locked
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/branch.py", line 855, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/branch.py", line 3144, in pull
    _override_hook_target=_override_hook_target)
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/branch.py", line 3020, in pull
    overwrite=overwrite, graph=graph)
  File "<string>", line 4, in update_revisions_write_locked
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/branch.py", line 808, in update_revisions
    overwrite, graph)
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/branch.py", line 2963, in update_revisions
    self.target.fetch(self.source, stop_revision)
  File "<string>", line 4, in fetch_write_locked
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/branch.py", line 532, in fetch
    pb=pb)
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/repository.py", line 1553, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "<string>", line 4, in fetch_write_locked
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/repository.py", line 3139, in fetch
    pb=pb, find_ghosts=find_ghosts)
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/fetch.py", line 82, in __init__
    self.__fetch()
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/fetch.py", line 108, in __fetch
    self._fetch_everything_for_search(search)
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/fetch.py", line 135, in _fetch_everything_for_search
    resume_tokens, missing_keys = self.sink.insert_stream(
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/repository.py", line 4047, in insert_stream
    return self._locked_insert_stream(stream, src_format, is_resume)
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/repository.py", line 4089, in _locked_insert_stream
    self.target_repo.chk_bytes.insert_record_stream(substream)
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/groupcompress.py", line 1369, in insert_record_stream
    for _ in self._insert_record_stream(stream, random_id=False):
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/groupcompress.py", line 1423, in _insert_record_stream
    for record in stream:
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/repofmt/groupcompress_repo.py", line 932, in _filter_id_to_entry
    self._chk_id_roots, uninteresting_root_keys):
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/chk_map.py", line 1414, in iter_interesting_nodes
    interesting_root_keys, uninteresting_root_keys, pb)
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/chk_map.py", line 1351, in _find_all_uninteresting
    pb=pb)
  File "/srv/bazaar.launchpad.net/production/launchpad-rev-8204/lib/bzrlib/chk_map.py", line 1303, in _find_children_info
    bytes = record.get_bytes_as('fulltext')
AttributeError: 'AbsentContentFactory' object has no attribute 'get_bytes_as'