~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Robert Collins
  • Date: 2007-04-20 05:44:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070420054437-5txpyqld8y7cl3k5
Fix the ModuleHelpTopic get_help_topic to be tested with closer to real world data and strip the bzrlib.plugins. prefix from the name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    topics = indices.search(topic)
43
43
    shadowed_terms = []
44
44
    for index, topic in topics[1:]:
45
 
        shadowed_terms.append('%s%s' % (index.prefix, topic))
 
45
        shadowed_terms.append('%s%s' % (index.prefix, topic.get_help_topic()))
46
46
    outfile.write(topics[0][1].get_help_text(shadowed_terms))
47
47
 
48
48