Comment 0 for bug 380621

Revision history for this message
Kevin Smith (ubuntu-qualitycode) wrote : pull from svn repo gives: bzr: ERROR: base checksum mismatch:

We have a subversion repo with about 16000 revisions which appears to work fine both with svn and with an existing bzr-svn branch. I just tried to create a new bzr branch on a new machine (Ubuntu 9.04 Jaunty, using its standard bzr versions), and am getting this error:

bzr: ERROR: base checksum mismatch: 'dfd29a2e55275396552bcf7d083ba632' != '41b36ab118bfc4f0d574041d171c7c93'

This is a showstopper. I can't use bzr on this project until this is resolved. I will have to fall back to plain subversion.

My destination bzr repo (shared but empty) was originally a 1.9-rich-roots, but I also tried with 1.6.1-rich-roots and the result was the same. I can pull up to bzr -r 14579 but attempting to pull 14580 gives this error. There does not appear to be anything unusual about 14580, and I can do svn diff's of that changeset and a couple on either side of it. This leads me to believe it is not a problem with the svn repo being corrupted.

The svn repo in question is not publicly available, but I believe I could provide access to a bzr developer on a limited basis for debugging. I'm a ruby/java programmer so could fiddle with python under supervision, if necessary. This repo has minimal merging, so is mostly trunk with a few release branches. In other words, a simple flow.

Bazaar (bzr) 1.13.1
  Python interpreter: /usr/bin/python 2.6.2
  Python standard library: /usr/lib/python2.6
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/kevins/.bazaar
  Bazaar log file: /home/kevins/.bzr.log

Stack trace:
Tue 2009-05-26 10:13:05 -0400
0.047 bzr arguments: [u'pull', u'-v', u'-r', u'14580']
0.084 looking for plugins in /home/kevins/.bazaar/plugins
0.084 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.271 encoding stdout as sys.stdout encoding 'UTF-8'
0.287 opening working tree '/var/local/bzr/miradi/trunk'
0.333 opening SVN RA connection to 'svn+ssh://subversion.benetech.org/opt/svn/repositories/benetech.org/Miradi/trunk'
1.992 bzr-svn: using Subversion 1.5.4 ()
15.629 Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 918, in run
    possible_transports=possible_transports)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 1551, in pull
    possible_transports=possible_transports)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 2207, in pull
    _override_hook_target=_override_hook_target)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 2029, in pull
    graph=graph)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 725, in update_revisions
    overwrite, graph)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/branch.py", line 635, in update_revisions
    self.target.fetch(self.source, stop_revision)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 495, in fetch
    pb=nested_pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1133, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1251, in fetch
    self._fetch_revisions(needed, pb, use_replay=use_replay)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1175, in _fetch_revisions
    parent_revmeta)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1120, in _fetch_revision_switch
    report_inventory_contents(reporter, parent_revnum, start_empty)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/errors.py", line 127, in convert
    return unbound(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 906, in report_inventory_contents
    reporter.finish()
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 374, in apply_textdelta
    return self._apply_textdelta(base_checksum)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 562, in _apply_textdelta
    raise VersionedFileInvalidChecksum("base checksum mismatch: %r != %r" % (base_checksum, actual_checksum))
VersionedFileInvalidChecksum: base checksum mismatch: 'dfd29a2e55275396552bcf7d083ba632' != '41b36ab118bfc4f0d574041d171c7c93'