python tools/ -o doc/en/user-reference/index.txt rstx fails with a traceback in a fresh branch

Bug #956860 reported by Vincent Ladeuil
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Vincent Ladeuil

Bug Description

Weird, I encounter the following when running 'make docs-sphinx' in a *fresh* bzr branch (don't even dream to reproduce it otherwise):

Traceback (most recent call last):
  File "tools/", line 108, in <module>
  File "tools/", line 94, in main
    infogen_mod.infogen(options, outfile)
  File "bzrlib/doc_generate/", line 56, in infogen
    outfile.write(_get_body(params, topic_dir))
  File "bzrlib/doc_generate/", line 68, in _get_body
  File "bzrlib/doc_generate/", line 87, in _get_section
    help = registry.get_detail(topic)
  File "bzrlib/help_topics/", line 92, in get_detail
    return obj(topic)
  File "bzrlib/help_topics/", line 744, in get_current_formats_topic
  File "bzrlib/", line 1353, in help_topic
    default_help = self.get_help('default')
  File "bzrlib/", line 209, in get_help
    the_help = self._help_dict[self._get_key_or_default(key)]
KeyError: 'default'

The culprit command is 'python tools/ -o doc/en/user-reference/index.txt rstx'.

Adding 'from bzrlib import [workingtree|branch|repository]' is enough to fix the issue...

Related branches

Vincent Ladeuil (vila)
Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
status: New → In Progress
importance: Undecided → Medium
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.6b2
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers