bzr-svn bug report

Sebastian Kuzminsky seb at
Tue Jun 12 22:35:01 BST 2007

Hi folks, I'm not subscribed to the list, please cc: me directly.

I'm getting errors while trying to make a bzr branch from the trunk of
our SVN repository.  The repo has ~10K revisions, the trunk has ~24K
files and uses ~1.8 GB (that's including the .svn directories).

I'm running 'bzr branch' on the system hosting the svn repo.

This machine is a Debian Lenny/Sid system running Linux
It's got 1 GB RAM and ~10 GB swap.  The svn repo and the attempted bzr
branch are both on ext3 on a RAID6 with plenty of disk free.

The 'bzr branch' ran for a couple of hours and got at least ~5.5K revisions
in before this error:

0 seb at bioserve /data/home/seb/bst-bzr>  bzr branch file:///var/svn/bioserve/trunk
bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit ce/svn-v2%253a4278%40bde99a90-77dd-0310-a67a-b190540ba548-trunk-disk%25252dimage%25252fsarge%25252fpartition%25252
d1.tar.bz2.knit corrupt: While reading {svn-v2:5505 at bde99a90-77dd-0310-a67a-b190540ba548-trunk} got MemoryError()

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 718, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 679, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 375, in run_argv_aliases
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 896, in run
    dir = br_from.bzrdir.sprout(to_transport.base, revision_id)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/", line 78, in sprout
    result_repo = repo.clone(result, revision_id)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 127, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 401, in clone
    self.copy_content_into(dest_repo, revision_id)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 354, in copy_content_into
    return InterRepository.get(self, destination).copy_content(revision_id)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/", line 430, in copy_content
  File "/var/lib/python-support/python2.4/libsvn/", line 738, in svn_ra_reporter2_invoke_finish_report
    return apply(_ra.svn_ra_reporter2_invoke_finish_report, args)
  File "/usr/lib/python2.4/site-packages/bzrlib/plugins/svn/", line 250, in close_file
    file_weave.add_lines(self.revid, self.file_parents, lines)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 147, in add_lines
    return self._add_lines(version_id, parents, lines, parent_texts)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 687, in _add_lines
    return self._add(version_id, lines[:], parents,, parent_texts)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 752, in _add
    delta, self.factory.annotated)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 602, in _merge_annotations
    merge_content = self._get_content(parent_id, parent_texts)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 671, in _get_content
    text_map, contents_map = self._get_content_maps([version_id])
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 825, in _get_content_maps
    record_map = self._get_record_map(version_ids)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 793, in _get_record_map
    for component_id, content, digest in \
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 1594, in read_records_iter
    content, digest = self._parse_record(version_id, data)
  File "/usr/lib/python2.4/site-packages/bzrlib/", line 1499, in _parse_record
    "While reading {%s} got %s(%s)"
KnitCorrupt: Knit ce/svn-v2%253a4278%40bde99a90-77dd-0310-a67a-b190540ba548-trunk-disk%25252dimage%25252fsarge%25252fpartition%25252d1.tar.bz2.knit corrupt: While reading {svn-v2:5505 at bde99a90-77dd-0310-a67a-b190540ba548-trunk} got MemoryError()

bzr 0.16.0 on python (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'file:///var/svn/bioserve/trunk']

** please send this report to bazaar at
3 seb at bioserve /data/home/seb/bst-bzr>

Sebastian Kuzminsky
"We're building a machine that will be proud of us."
-- Danny Hillis, Thinking Machines Corporation, 1982

More information about the bazaar mailing list