bzr log fails with KeyError if there is a ghost in the mainline history

Bug #235055 reported by Tom Cato Amundsen
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Aaron Bentley

Bug Description

"bzr check" fails similarly. http://www.solfege.org/bzr/solfege.dev is on the net so you can see yourself.
The repository was created with the tool that converted my gnu arch repo to bzr (was it baz-import??)

I am uncertain if this bug is the same as https://bugs.launchpad.net/bzr/+bug/205564
If so, I'm sorry for the duplicate report.

Bzr 1.3 works fine.

tom@tomsin-laptop:~$ bzr log http://www.solfege.org/bzr/solfege.dev
bzr: ERROR: exceptions.KeyError: 'Arch-1:<email address hidden>%solfege--unstable--3.1--version-0'

Traceback (most recent call last):
  File "/home/tom/lib/python/bzrlib/commands.py", line 846, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/tom/lib/python/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/home/tom/lib/python/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/tom/lib/python/bzrlib/commands.py", line 807, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/tom/lib/python/bzrlib/builtins.py", line 1754, in run
    rev1 = revision[0].in_history(b)
  File "/home/tom/lib/python/bzrlib/revisionspec.py", line 218, in in_history
    revs = branch.revision_history()
  File "/home/tom/lib/python/bzrlib/decorators.py", line 127, in read_locked
    return unbound(self, *args, **kwargs)
  File "/home/tom/lib/python/bzrlib/branch.py", line 387, in revision_history
    history = self._gen_revision_history()
  File "/home/tom/lib/python/bzrlib/branch.py", line 1925, in _gen_revision_history
    self._extend_partial_history()
  File "/home/tom/lib/python/bzrlib/branch.py", line 1949, in _extend_partial_history
    for revision_id in iterator:
  File "/home/tom/lib/python/bzrlib/repository.py", line 1622, in iter_reverse_revision_history
    parents = graph.get_parent_map([next_id])[next_id]
KeyError: 'Arch-1:<email address hidden>%solfege--unstable--3.1--version-0'

bzr 1.5 on python 2.4.5 (linux2)
arguments: ['/home/tom/bin/bzr', 'log', 'http://www.solfege.org/bzr/solfege.dev']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'nb_NO.UTF-8'
plugins:
  bzrtools /home/tom/.bazaar/plugins/bzrtools [1.5.0]
  launchpad /home/tom/lib/python/bzrlib/plugins/launchpad [unknown]
*** 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.

Revision history for this message
Matthew Fuller (fullermd) wrote :

Fails on bzr.dev too.

Changed in bzr:
status: New → Confirmed
Revision history for this message
Tom Cato Amundsen (tca) wrote :

Sorry, one error in the initial report: works on bzr 1.2, not 1.3.
On bzr 1.3 the bug looks similar to https://bugs.launchpad.net/bzr/+bug/205564, so this is probably a duplicate.

Tom Cato

Revision history for this message
Tom Cato Amundsen (tca) wrote :

John Arbash Meinel wrote about the bug in this thread
http://thread.gmane.org/gmane.comp.version-control.bazaar-ng.general/42335

James Westby (james-w)
Changed in bzr:
importance: Undecided → Medium
Aaron Bentley (abentley)
Changed in bzr:
assignee: nobody → abentley
milestone: none → 1.6
status: Confirmed → Fix Released
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.