Am 25/03/12 06:42, schrieb Ben Finney:
> Package: bzr-svn
> Version: 1.2.1-1
> Severity: normal
>
> Bazaar is failing on what appears to be a valid Subversion repository::
>
> =====
> $ svn checkout svn://anonscm.debian.org/svn/svn/dep/
> A dep/ikiwiki.setup
> A dep/playground
> […]
> A dep/web/depdn-howto.mdwn
> A dep/web/recentchanges.mdwn
> Checked out revision 286.
>
> $ rm -rf dep/
>
> $ bzr branch --bind svn://anonscm.debian.org/svn/svn/dep/
> bzr: ERROR: exceptions.KeyError: 'missing revision paths for 207'
>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 920, in
> exception_to_return_code
> return the_callable(*args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1131, in
> run_bzr
> ret = run(*run_argv)
> File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in
> run_argv_aliases
> return self.run(**all_cmd_args)
> File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 695, in run
> return self._operation.run_simple(*args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in
> run_simple
> self.cleanups, self.func, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in
> _do_with_cleanups
> result = func(*args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1400, in
> run
> from_location)
> File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 778, in
> open_tree_or_branch
> return controldir._get_tree_branch()
> File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 458, in
> _get_tree_branch
> branch = self.open_branch(name=name)
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/remote.py", line
> 519, in open_branch
> branch_path = self._determine_relpath(name)
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/remote.py", line
> 444, in _determine_relpath
> layout = repos.get_layout()
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/repository.py",
> line 736, in get_layout
> return self.get_layout_source()[0]
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/repository.py",
> line 757, in get_layout_source
> self._find_guessed_layout(self.get_config_stack())
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/repository.py",
> line 780, in _find_guessed_layout
> revnum, self._hinted_branch_path)
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/layout/guess.py",
> line 147, in repository_guess_layout
> branch_path=branch_path)
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/layout/guess.py",
> line 154, in logwalker_guess_layout
> max(0, revnum-GUESS_SAMPLE_SIZE)), revnum, branch_path)
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/layout/guess.py",
> line 104, in guess_layout_from_history
> for (revpaths, revnum, revprops) in changed_paths:
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/logwalker.py",
> line 59, in iter_all_changes
> revpaths = get_revision_paths(revnum)
> File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/logwalker.py",
> line 294, in get_revision_paths
> return self.cache.get_revision_paths(revnum)
> File
> "/usr/lib/python2.7/dist-packages/bzrlib/plugins/svn/cache/tdbcache.py", line
> 187, in get_revision_paths
> raise KeyError("missing revision paths for %d" % revnum)
> KeyError: 'missing revision paths for 207'
Was this repository perhaps earlier checked out with older versions of
bzr-svn? If so, you might want to remove your existing caches in
~/.cache/bazaar/svn/ or ~/.bazaar/svn-cache.So far this error has always been caused by the fact that older versions of bzr-svn would leave a half-filled cache when they were interrupted, leading to errors such as this one later. I can confirm that it is possible to check this branch out from scratch without problems. Cheers, jelmer
signature.asc
Description: OpenPGP digital signature

