bzr log fails with KeyError: 'null:'

Bug #205564 reported by Tom Cato Amundsen
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Unassigned

Bug Description

After upgrading from bzr 1.2 to 1.3, I have problems with "bzr log". --short or --line works fine, but --long gives this traceback.
The solfege repo was created with the tool that converted my gnu arch repo to bzr.

bzr branch http://www.solfege.org/bzr/solfege.dev
bzr log
tom@tomsin-laptop:~/tmp/solfege.repo/r200$ bzr log
bzr: ERROR: exceptions.KeyError: 'null:'

Traceback (most recent call last):
  File "/home/tom/lib/python/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/home/tom/lib/python/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/home/tom/lib/python/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/tom/lib/python/bzrlib/commands.py", line 800, in ignore_pipe
    result = func(*args, **kwargs)
  File "/home/tom/lib/python/bzrlib/builtins.py", line 1765, in run
    limit=limit)
  File "/home/tom/lib/python/bzrlib/log.py", line 189, in show_log
    start_revision, end_revision, search, limit)
  File "/home/tom/lib/python/bzrlib/log.py", line 257, in _show_log
    view_revisions = _filter_revision_range(list(view_revs_iter),
  File "/home/tom/lib/python/bzrlib/log.py", line 523, in get_view_revisions
    merge_sorted_revisions = merge_sort(
  File "/home/tom/lib/python/bzrlib/decorators.py", line 127, in read_locked
    return unbound(self, *args, **kwargs)
  File "/home/tom/lib/python/bzrlib/repofmt/pack_repo.py", line 1978, in get_revision_graph
    children_of_ghosts.update(children[ghost])
KeyError: 'null:'

bzr 1.3 on python 2.4.4.final.0 (linux2)
arguments: ['/home/tom/bin/bzr', 'log']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'nb_NO.UTF-8'
plugins:
  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.

Using bzr 1.3 on some of my other repos, that are not converted from gnu-arch works fine.

tom@tomsin-laptop:~/tmp/solfege.repo/r200$ bzr --version
Bazaar (bzr) 1.3
  Python interpreter: /usr/bin/python 2.4.4.final.0
  Python standard library: /usr/lib/python2.4
  bzrlib: /home/tom/lib/python/bzrlib
  Bazaar configuration: /home/tom/.bazaar
  Bazaar log file: /home/tom/.bzr.log

Copyright 2005, 2006, 2007, 2008 Canonical Ltd.
http://bazaar-vcs.org/

I'm tca on #solfege and #bzr irc.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Confirmed here locally.

Changed in bzr:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Tom Cato Amundsen (tca) wrote :

Showing the log using bzr missing works:
 bzr missing --long --reverse --mine-only ../solfege-3.10

Revision history for this message
John A Meinel (jameinel) wrote :

get_revision_graph has been removed in the latest versions. I'm not sure if that makes this a duplicate of bug #235055, just applicable to older bzr clients.

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

I'm closing this bug since the traceback mention in the report does not happen in bzr.dev.
(Opened a new bug https://bugs.launchpad.net/bzr/+bug/240795 with a different error, still trying to make latest bzr work with gnu solfege repo)

Changed in bzr:
status: Triaged → Fix Committed
James Westby (james-w)
Changed in bzr:
status: Fix Committed → 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.