595
"""Environment Variables
597
=================== ===========================================================
598
BZRPATH Path where bzr is to look for shell plugin external
600
BZR_EMAIL E-Mail address of the user. Overrides EMAIL.
601
EMAIL E-Mail address of the user.
602
BZR_EDITOR Editor for editing commit messages. Overrides EDITOR.
603
EDITOR Editor for editing commit messages.
604
BZR_PLUGIN_PATH Paths where bzr should look for plugins.
605
BZR_DISABLE_PLUGINS Plugins that bzr should not load.
606
BZR_PLUGINS_AT Plugins to load from a directory not in BZR_PLUGIN_PATH.
607
BZR_HOME Directory holding .bazaar config dir. Overrides HOME.
608
BZR_HOME (Win32) Directory holding bazaar config dir. Overrides APPDATA and
610
BZR_REMOTE_PATH Full name of remote 'bzr' command (for bzr+ssh:// URLs).
611
BZR_SSH Path to SSH client, or one of paramiko, openssh, sshcorp,
613
BZR_LOG Location of .bzr.log (use '/dev/null' to suppress log).
614
BZR_LOG (Win32) Location of .bzr.log (use 'NUL' to suppress log).
615
BZR_COLUMNS Override implicit terminal width.
616
BZR_CONCURRENCY Number of processes that can be run concurrently (selftest)
617
BZR_PROGRESS_BAR Override the progress display. Values are 'none' or 'text'.
618
BZR_PDB Control whether to launch a debugger on error.
619
BZR_SIGQUIT_PDB Control whether SIGQUIT behaves normally or invokes a
621
=================== ===========================================================
598
known_env_variables = [
599
("BZRPATH", "Path where bzr is to look for shell plugin external commands."),
600
("BZR_EMAIL", "E-Mail address of the user. Overrides EMAIL."),
601
("EMAIL", "E-Mail address of the user."),
602
("BZR_EDITOR", "Editor for editing commit messages. Overrides EDITOR."),
603
("EDITOR", "Editor for editing commit messages."),
604
("BZR_PLUGIN_PATH", "Paths where bzr should look for plugins."),
605
("BZR_DISABLE_PLUGINS", "Plugins that bzr should not load."),
606
("BZR_PLUGINS_AT", "Plugins to load from a directory not in BZR_PLUGIN_PATH."),
607
("BZR_HOME", "Directory holding .bazaar config dir. Overrides HOME."),
608
("BZR_HOME (Win32)", "Directory holding bazaar config dir. Overrides APPDATA and HOME."),
609
("BZR_REMOTE_PATH", "Full name of remote 'bzr' command (for bzr+ssh:// URLs)."),
610
("BZR_SSH", "Path to SSH client, or one of paramiko, openssh, sshcorp, plink or lsh."),
611
("BZR_LOG", "Location of .bzr.log (use '/dev/null' to suppress log)."),
612
("BZR_LOG (Win32)", "Location of .bzr.log (use 'NUL' to suppress log)."),
613
("BZR_COLUMNS", "Override implicit terminal width."),
614
("BZR_CONCURRENCY", "Number of processes that can be run concurrently (selftest)"),
615
("BZR_PROGRESS_BAR", "Override the progress display. Values are 'none' or 'text'."),
616
("BZR_PDB", "Control whether to launch a debugger on error."),
617
("BZR_SIGQUIT_PDB", "Control whether SIGQUIT behaves normally or invokes a breakin debugger."),
618
("BZR_TEXTUI_INPUT", "Force console input mode for prompts to line-based (instead of char-based)."),
621
def _env_variables(topic):
623
ret = ["Environment Variables\n\n"
624
"See bzr help configuration for more details.\n\n"]
625
max_key_len = max([len(k[0]) for k in known_env_variables])
626
desc_len = (80 - max_key_len - 2)
627
ret.append("=" * max_key_len + " " + "=" * desc_len + "\n")
628
for k, desc in known_env_variables:
629
ret.append(k + (max_key_len + 1 - len(k)) * " ")
630
ret.append("\n".join(textwrap.wrap(
631
desc, width=desc_len, subsequent_indent=" " * (max_key_len + 1))))
633
ret += "=" * max_key_len + " " + "=" * desc_len + "\n"
733
744
topic_registry.register('basic', _basic_help, "Basic commands", SECT_HIDDEN)
734
745
topic_registry.register('topics', _help_on_topics, "Topics list", SECT_HIDDEN)
735
746
def get_current_formats_topic(topic):
736
from bzrlib import bzrdir
747
from bzrlib import controldir
737
748
return "Current Storage Formats\n\n" + \
738
bzrdir.format_registry.help_topic(topic)
749
controldir.format_registry.help_topic(topic)
739
750
def get_other_formats_topic(topic):
740
from bzrlib import bzrdir
751
from bzrlib import controldir
741
752
return "Other Storage Formats\n\n" + \
742
bzrdir.format_registry.help_topic(topic)
753
controldir.format_registry.help_topic(topic)
743
754
topic_registry.register('current-formats', get_current_formats_topic,
744
755
'Current storage formats')
745
756
topic_registry.register('other-formats', get_other_formats_topic,