Comment 1 for bug 219832

Revision history for this message
John Steele Scott (toojays) wrote :

I get a the same error with an up-to-date checkout of bzr-1.4 branch and bzr-svn 0.4 branch:

jscott@jscott-laptop:~/src/b$ time bzr14 branch $SVNROOT/trunk trunk
Initialising Subversion metadata cache in /home/jscott/.bazaar/svn-cache-exp/85072ce8-75ea-0310-bde9-cb3a2c948a9f
using experimental bzr-svn mappings; output may change between revisions
bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit <bzrlib.knit._PackAccess object at 0xa753cd0> corrupt: incorrect number of lines 41 != 40 for version {svn-v3-trunk0:85072ce8-75ea-0310-bde9-cb3a2c948a9f:trunk:8410}

Traceback (most recent call last):
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/commands.py", line 802, in run_bzr
    ret = run(*run_argv)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/commands.py", line 504, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/builtins.py", line 954, in run
    hardlink=hardlink)
  File "/home/jscott/src/bzr-svn/0.4/remote.py", line 76, in sprout
    result_repo.fetch(repo, revision_id=revision_id)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/repository.py", line 947, in fetch
    return inter.fetch(revision_id=revision_id, pb=pb, find_ghosts=find_ghosts)
  File "/home/jscott/.bazaar/plugins/svn/fetch.py", line 741, in fetch
    self._fetch_switch(needed, pb)
  File "/home/jscott/.bazaar/plugins/svn/fetch.py", line 700, in _fetch_switch
    reporter.finish_report(pool)
  File "/home/jscott/src/bzr-svn/0.4/errors.py", line 117, in convert
    return unbound(*args, **kwargs)
  File "/home/jscott/src/bzr-svn/0.4/transport.py", line 264, in finish_report
    self._baton, pool)
  File "/var/lib/python-support/python2.5/libsvn/ra.py", line 740, in svn_ra_reporter2_invoke_finish_report
    return apply(_ra.svn_ra_reporter2_invoke_finish_report, args)
  File "/home/jscott/.bazaar/plugins/svn/fetch.py", line 488, in abort_edit
    self.target.abort_write_group()
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/repository.py", line 479, in abort_write_group
    self._abort_write_group()
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/repofmt/pack_repo.py", line 1849, in _abort_write_group
    self._pack_collection._abort_write_group()
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/repofmt/pack_repo.py", line 1653, in _abort_write_group
    self._new_pack.abort()
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/repofmt/pack_repo.py", line 318, in abort
    self.write_stream.close()
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/transport/__init__.py", line 273, in close
    del _file_streams[self.transport.abspath(self.relpath)]
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/transport/local.py", line 103, in abspath
    self._local_base, urlutils.unescape(relpath)))
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/urlutils.py", line 525, in unescape
    unquoted = urllib.unquote(url)
  File "urllib.py", line 1154, in unquote
    for i in xrange(1, len(res)):
  File "/home/jscott/.bazaar/plugins/svn/fetch.py", line 418, in close_edit
    self._finish_commit()
  File "/home/jscott/.bazaar/plugins/svn/fetch.py", line 480, in _finish_commit
    self.target.add_revision(self.revid, rev, self.inventory)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/repository.py", line 552, in add_revision
    rev.parent_ids)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/repository.py", line 513, in add_inventory
    inv_lines, check_content=False)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/repofmt/knitrepo.py", line 114, in _inventory_add_lines
    check_content=check_content)[0]
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/versionedfile.py", line 137, in add_lines_with_ghosts
    parent_texts, nostore_sha, random_id, check_content, left_matching_blocks)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/knit.py", line 982, in _add_lines_with_ghosts
    parent_texts, left_matching_blocks, nostore_sha, random_id)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/knit.py", line 1058, in _add
    left_matching_blocks)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/knit.py", line 913, in _merge_annotations
    reference_content = self._get_content(parents[0], parent_texts)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/knit.py", line 970, in _get_content
    text_map, contents_map = self._get_content_maps([version_id])
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/knit.py", line 1148, in _get_content_maps
    record_map = self._get_record_map(version_ids)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/knit.py", line 1113, in _get_record_map
    self._data.read_records_iter(records):
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/knit.py", line 2521, in read_records_iter
    content, digest = self._parse_record(version_id, data)
  File "/home/jscott/src/bzr/bzr.1.4/bzrlib/knit.py", line 2468, in _parse_record
    version_id))
KnitCorrupt: Knit <bzrlib.knit._PackAccess object at 0xa753cd0> corrupt: incorrect number of lines 41 != 40 for version {svn-v3-trunk0:85072ce8-75ea-0310-bde9-cb3a2c948a9f:trunk:8410}

bzr 1.4dev on python 2.5.1 (linux2)
arguments: ['/home/jscott/src/bzr/bzr.1.4/bzr', 'branch', 'svn+ssh://moon/usr/local/svn/rocksoft/src/trunk', 'trunk']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
  launchpad /home/jscott/src/bzr/bzr.1.4/bzrlib/plugins/launchpad [unknown]
  svn /home/jscott/.bazaar/plugins/svn [0.4.10exp0]