Comment 0 for bug 246891

Revision history for this message
Per Johansson (per.j) wrote : bzr log -v takes forever

I've used tailor to convert the netbsd src module to a bazaar branch, but only the last 1000 revisions. When I run bzr log -v on this branch, it hangs perceivably forever. If I wait long enough though, the first few entries are displayed (and then the command continues to hang).
bzr log without -v works fine.

I could upload the .bzr dir if requested, but it's 481 MB as a tgz, so it's quite big. I could also help if given some directions (I know next to nothing about python, much less bazaar internals).

$ bzr --version
Bazaar (bzr) 1.5
  Python interpreter: /opt/local/bin/python2.5 2.5.2
  Python standard library: /opt/local/lib/python2.5
  bzrlib: /opt/local/lib/python2.5/site-packages/bzrlib

Installed via macports on my MacBook Pro running Leopard.

Backtrace from sending SIGQUIT (ie not a very scientific way of finding the spot):
(Pdb) bt
  /opt/local/bin/bzr(102)<module>()
-> exit_val = bzrlib.commands.main(sys.argv)
  /opt/local/lib/python2.5/site-packages/bzrlib/commands.py(837)main()
-> ret = run_bzr_catch_errors(argv)
  /opt/local/lib/python2.5/site-packages/bzrlib/commands.py(846)run_bzr_catch_errors()
-> return run_bzr(argv)
  /opt/local/lib/python2.5/site-packages/bzrlib/commands.py(797)run_bzr()
-> ret = run(*run_argv)
  /opt/local/lib/python2.5/site-packages/bzrlib/commands.py(499)run_argv_aliases()
-> return self.run(**all_cmd_args)
  /opt/local/lib/python2.5/site-packages/bzrlib/commands.py(807)ignore_pipe()
-> result = func(*args, **kwargs)
  /opt/local/lib/python2.5/site-packages/bzrlib/builtins.py(1774)run()
-> limit=limit)
  /opt/local/lib/python2.5/site-packages/bzrlib/log.py(185)show_log()
-> start_revision, end_revision, search, limit)
  /opt/local/lib/python2.5/site-packages/bzrlib/log.py(232)_show_log()
-> branch.repository, view_revisions, generate_delta):
  /opt/local/lib/python2.5/site-packages/bzrlib/log.py(315)_iter_revisions()
-> deltas))
  /opt/local/lib/python2.5/site-packages/bzrlib/repository.py(1133)get_deltas_for_revisions()
-> yield trees[revision.revision_id].changes_from(old_tree)
  /opt/local/lib/python2.5/site-packages/bzrlib/tree.py(93)changes_from()
-> want_unversioned=want_unversioned,
  /opt/local/lib/python2.5/site-packages/bzrlib/decorators.py(127)read_locked()
-> return unbound(self, *args, **kwargs)
  /opt/local/lib/python2.5/site-packages/bzrlib/tree.py(734)compare()
-> want_unversioned=want_unversioned)
  /opt/local/lib/python2.5/site-packages/bzrlib/delta.py(217)_compare_trees()
-> want_unversioned=want_unversioned):
  /opt/local/lib/python2.5/site-packages/bzrlib/tree.py(788)iter_changes()
-> specific_file_ids=specific_file_ids))
  /opt/local/lib/python2.5/site-packages/bzrlib/inventory.py(976)iter_entries_by_dir()
-> yield child_relpath, child_ie
> /opt/local/lib/python2.5/site-packages/bzrlib/breakin.py(33)_debug()
-> signal.signal(signal.SIGQUIT, _debug)