~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help_topics/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-23 19:45:15 UTC
  • mto: This revision was merged to the branch mainline in revision 6486.
  • Revision ID: jelmer@samba.org-20120223194515-1ctgfzj362m0tu0k
Use bzrdir.controldir for generic access to control directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
739
739
topic_registry.register('basic', _basic_help, "Basic commands", SECT_HIDDEN)
740
740
topic_registry.register('topics', _help_on_topics, "Topics list", SECT_HIDDEN)
741
741
def get_current_formats_topic(topic):
742
 
    from bzrlib import bzrdir
 
742
    from bzrlib import controldir
743
743
    return "Current Storage Formats\n\n" + \
744
 
        bzrdir.format_registry.help_topic(topic)
 
744
        controldir.format_registry.help_topic(topic)
745
745
def get_other_formats_topic(topic):
746
 
    from bzrlib import bzrdir
 
746
    from bzrlib import controldir
747
747
    return "Other Storage Formats\n\n" + \
748
 
        bzrdir.format_registry.help_topic(topic)
 
748
        controldir.format_registry.help_topic(topic)
749
749
topic_registry.register('current-formats', get_current_formats_topic,
750
750
    'Current storage formats')
751
751
topic_registry.register('other-formats', get_other_formats_topic,