Comment 6 for bug 373726

Revision history for this message
Reuben Firmin (reubenf) wrote : Re: Error importing svn repository

Hi, with 0.5.4, we get a different (related?) error:

bzr svn-import --trees /opt/svn/repositories/benetech.org/Bookshare/
Initialising Subversion metadata cache in /root/.bazaar/svn-cache/13cce0d3-8e6b-44ce-8dc0-d6332f4951be
Using repository layout: trunk0
bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit _KnitGraphIndex(CombinedGraphIndex(GraphIndex('file:///tmp/foobahh/Bookshare/.bzr/repository/indices/77f9da8f074fce0ac5772c1ca8f3c6ed.tix'), GraphIndex('file:///tmp/foobahh/Bookshare/.bzr/repository/indices/c0f11e5d47642e2fed6fd3df6ab36fd5.tix'), GraphIndex('file:///tmp/foobahh/Bookshare/.bzr/repository/indices/2d1e9e274509eb9ac36b13f6993a0a0a.tix'), GraphIndex('file:///tmp/foobahh/Bookshare/.bzr/repository/indices/ff643f97ad642a0a59e4a4e674bf390d.tix'), GraphIndex('file:///tmp/foobahh/Bookshare/.bzr/repository/indices/e5ccb74bb128a24085ad6a5935018f09.tix'))) corrupt: inconsistent details in add_records: (' 11134595 123', ((('xml2smillinkverifica-20090314122245-oww4lg1a6y0bhrkn-6', 'reubenf@fridge-20090314122250-f6ne0s1fv1c3jgzs'),), (('xml2smillinkverifica-20090314122245-oww4lg1a6y0bhrkn-6', 'reubenf@fridge-20090314122250-f6ne0s1fv1c3jgzs'),))) (' 15316748 2648', ((), ()))

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 727, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 922, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 559, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/commands.py", line 170, in run
    to_revnum=to_revnum, prefix=prefix)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/convert.py", line 288, in convert_repository
    inter.fetch(needed=revfinder.get_missing())
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1260, in fetch
    self._fetch_revisions(needed, pb, use_replay=use_replay)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1184, in _fetch_revisions
    parent_revmeta)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1128, in _fetch_revision_switch
    report_inventory_contents(reporter, parent_revnum, start_empty)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/errors.py", line 130, in convert
    return unbound(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 912, in report_inventory_contents
    reporter.finish()
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 393, in close
    return self._close()
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 578, in _close
    check_content=False, # Can we assume we are always line-safe?
  File "/usr/local/lib/python2.6/site-packages/bzrlib/knit.py", line 913, in add_lines
    parent_texts, left_matching_blocks, nostore_sha, random_id)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/knit.py", line 1001, in _add
    random_id=random_id)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/knit.py", line 2786, in add_records
    ": %s %s" % ((value, node_refs), keys[key]))
KnitCorrupt: Knit _KnitGraphIndex(CombinedGraphIndex(GraphIndex('file:///tmp/foobahh/Bookshare/.bzr/repository/indices/77f9da8f074fce0ac5772c1ca8f3c6ed.tix'), GraphIndex('file:///tmp/foobahh/Bookshare/.bzr/repository/indices/c0f11e5d47642e2fed6fd3df6ab36fd5.tix'), GraphIndex('file:///tmp/foobahh/Bookshare/.bzr/repository/indices/2d1e9e274509eb9ac36b13f6993a0a0a.tix'), GraphIndex('file:///tmp/foobahh/Bookshare/.bzr/repository/indices/ff643f97ad642a0a59e4a4e674bf390d.tix'), GraphIndex('file:///tmp/foobahh/Bookshare/.bzr/repository/indices/e5ccb74bb128a24085ad6a5935018f09.tix'))) corrupt: inconsistent details in add_records: (' 11134595 123', ((('xml2smillinkverifica-20090314122245-oww4lg1a6y0bhrkn-6', 'reubenf@fridge-20090314122250-f6ne0s1fv1c3jgzs'),), (('xml2smillinkverifica-20090314122245-oww4lg1a6y0bhrkn-6', 'reubenf@fridge-20090314122250-f6ne0s1fv1c3jgzs'),))) (' 15316748 2648', ((), ()))

bzr 1.14.1 on python 2.6.2 (linux2)
arguments: ['/usr/local/bin/bzr', 'svn-import', '--trees', '/opt/svn/repositories/benetech.org/Bookshare/']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /usr/local/lib/python2.6/site-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/local/lib/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [unknown]
  svn /usr/local/lib/python2.6/site-packages/bzrlib/plugins/svn [0.5.4]
*** 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.