bzr crashed on commit after merge from local branch to "svn" working copy

Bug #1115135 reported by Yury Kapoyko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

The order of operations:
1. I have a local bazaar branch from SVN (made with bzr checkout), name id "abc"
2. I've made a branch with "bzr branch abc abc_branch"
3. Working on branch
4. Merging back: "bzr merge ../abc_branch"
5. Trying to commit: "bzr commit" -> CRASH
6. "bzr up" now gives the crash too

Here is the output:

bzr: ERROR: exceptions.KeyError: 'missing revision paths for 11863'

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1141, 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 697, 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 3689, in run
    lossy=lossy)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 218, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/workingtree_4.py", line 218, in commit
    result = WorkingTree.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 218, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 203, in commit
    possible_master_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commit.py", line 187, in update_revprops
    possible_master_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 282, in _get_nick
    master = self.get_master_branch(possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 155, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 2548, in get_master_branch
    possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 2557, in _get_master_branch
    possible_transports=possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 187, in open
    possible_transports=possible_transports)
  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 11863'

bzr 2.6b2 on python 2.7.3 (Linux-3.5.0-17-generic-x86_64-with-
    LinuxMint-14-nadia)
arguments: ['/usr/bin/bzr', 'ci']
plugins: bash_completion[2.6b2], changelog_merge[2.6b2], explorer[1.3.0],
    git[0.6.9], launchpad[2.6b2], netrc_credential_store[2.6b2],
    news_merge[2.6b2], po_merge[2.6b2], qbzr[0.22.2], svn[1.2.1],
    weave_fmt[2.6b2]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'ru_RU.UTF-8'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Revision history for this message
Yury Kapoyko (yury-kapoyko) wrote :

Add: from this moment I have all bzr-svn functionality with that SVN repo broken: for "bzr ls http://...", "bzr co http://..." etc. I receive the similar error.

Revision history for this message
Yury Kapoyko (yury-kapoyko) wrote :

Addition: after removing bzr-svn cache from "/home/<user>/.cache/bzr/svn" bzr-svn works for now.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.