~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-20 12:19:29 UTC
  • mfrom: (6437.23.11 2.5)
  • mto: (6581.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6582.
  • Revision ID: jelmer@samba.org-20120220121929-7ni2psvjoatm1yp4
Merge bzr/2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
rendering on the screen naturally.
34
34
"""
35
35
 
36
 
import sys
 
36
from __future__ import absolute_import
37
37
 
38
38
import bzrlib
39
39
from bzrlib import (
40
40
    config,
41
41
    osutils,
42
42
    registry,
 
43
    i18n,
43
44
    )
44
45
 
45
46
 
330
331
               will be a pickle.
331
332
--coverage     Generate line coverage report in the specified directory.
332
333
 
 
334
-Oname=value   Override the ``name`` config option setting it to ``value`` for
 
335
               the duration of the command.  This can be used multiple times if
 
336
               several options need to be overridden.
 
337
 
333
338
See http://doc.bazaar.canonical.com/developers/profiling.html for more
334
339
information on profiling.
335
340
 
617
622
BZR_PDB             Control whether to launch a debugger on error.
618
623
BZR_SIGQUIT_PDB     Control whether SIGQUIT behaves normally or invokes a
619
624
                    breakin debugger.
 
625
BZR_TEXTUI_INPUT    Force console input mode for prompts to line-based (instead
 
626
                    of char-based).
620
627
=================== ===========================================================
621
628
"""
622
629
 
762
769
                        'Information on configuration and log files')
763
770
topic_registry.register_lazy('hooks', 'bzrlib.hooks', 'hooks_help_text',
764
771
                        'Points at which custom processing can be added')
 
772
topic_registry.register_lazy('location-alias', 'bzrlib.directory_service',
 
773
                        'AliasDirectory.help_text',
 
774
                        'Aliases for remembered locations')
765
775
 
766
776
# Load some of the help topics from files. Note that topics which reproduce API
767
777
# details will tend to skew (quickly usually!) so please seek other solutions
774
784
                        'Types of conflicts and what to do about them')
775
785
topic_registry.register('debug-flags', _load_from_file,
776
786
                        'Options to show or record debug information')
777
 
topic_registry.register('location-alias', _load_from_file,
778
 
                        'Aliases for remembered locations')
779
787
topic_registry.register('log-formats', _load_from_file,
780
788
                        'Details on the logging formats available')
781
789
topic_registry.register('url-special-chars', _load_from_file,
879
887
        result += _format_see_also(additional_see_also)
880
888
        if plain:
881
889
            result = help_as_plain_text(result)
 
890
        i18n.install()
 
891
        result = i18n.gettext_per_paragraph(result)
882
892
        return result
883
893
 
884
894
    def get_help_topic(self):