comparison mercurial/helptext/environment.txt @ 43632:2e017696181f

help: create packages for the help text These files need to be loaded as resources with PyOxidizer, instead of using filesystem representations. AFAICT, the resource loading mechanisms only work for the named package given to it, and can't reach into a subdirectory. While here, the `help` directory is renamed to `helptext`. Without this, trying to load external help text crashed in mercurial/help.py when importing `.i18n`, saying there's no `mercurial.help.i18n` module. Differential Revision: https://phab.mercurial-scm.org/D7376
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 13 Nov 2019 21:52:25 -0500
parents mercurial/help/environment.txt@aef2b98d9352
children d56a2d6f34f0
comparison
equal deleted inserted replaced
43631:d3c4368099ed 43632:2e017696181f
1 HG
2 Path to the 'hg' executable, automatically passed when running
3 hooks, extensions or external tools. If unset or empty, this is
4 the hg executable's name if it's frozen, or an executable named
5 'hg' (with %PATHEXT% [defaulting to COM/EXE/BAT/CMD] extensions on
6 Windows) is searched.
7
8 HGEDITOR
9 This is the name of the editor to run when committing. See EDITOR.
10
11 (deprecated, see :hg:`help config.ui.editor`)
12
13 HGENCODING
14 This overrides the default locale setting detected by Mercurial.
15 This setting is used to convert data including usernames,
16 changeset descriptions, tag names, and branches. This setting can
17 be overridden with the --encoding command-line option.
18
19 HGENCODINGMODE
20 This sets Mercurial's behavior for handling unknown characters
21 while transcoding user input. The default is "strict", which
22 causes Mercurial to abort if it can't map a character. Other
23 settings include "replace", which replaces unknown characters, and
24 "ignore", which drops them. This setting can be overridden with
25 the --encodingmode command-line option.
26
27 HGENCODINGAMBIGUOUS
28 This sets Mercurial's behavior for handling characters with
29 "ambiguous" widths like accented Latin characters with East Asian
30 fonts. By default, Mercurial assumes ambiguous characters are
31 narrow, set this variable to "wide" if such characters cause
32 formatting problems.
33
34 HGMERGE
35 An executable to use for resolving merge conflicts. The program
36 will be executed with three arguments: local file, remote file,
37 ancestor file.
38
39 (deprecated, see :hg:`help config.ui.merge`)
40
41 HGRCPATH
42 A list of files or directories to search for configuration
43 files. Item separator is ":" on Unix, ";" on Windows. If HGRCPATH
44 is not set, platform default search path is used. If empty, only
45 the .hg/hgrc from the current repository is read.
46
47 For each element in HGRCPATH:
48
49 - if it's a directory, all files ending with .rc are added
50 - otherwise, the file itself will be added
51
52 HGPLAIN
53 When set, this disables any configuration settings that might
54 change Mercurial's default output. This includes encoding,
55 defaults, verbose mode, debug mode, quiet mode, tracebacks, and
56 localization. This can be useful when scripting against Mercurial
57 in the face of existing user configuration.
58
59 In addition to the features disabled by ``HGPLAIN=``, the following
60 values can be specified to adjust behavior:
61
62 ``+strictflags``
63 Restrict parsing of command line flags.
64
65 Equivalent options set via command line flags or environment
66 variables are not overridden.
67
68 See :hg:`help scripting` for details.
69
70 HGPLAINEXCEPT
71 This is a comma-separated list of features to preserve when
72 HGPLAIN is enabled. Currently the following values are supported:
73
74 ``alias``
75 Don't remove aliases.
76 ``color``
77 Don't disable colored output.
78 ``i18n``
79 Preserve internationalization.
80 ``revsetalias``
81 Don't remove revset aliases.
82 ``templatealias``
83 Don't remove template aliases.
84 ``progress``
85 Don't hide progress output.
86
87 Setting HGPLAINEXCEPT to anything (even an empty string) will
88 enable plain mode.
89
90 HGUSER
91 This is the string used as the author of a commit. If not set,
92 available values will be considered in this order:
93
94 - HGUSER (deprecated)
95 - configuration files from the HGRCPATH
96 - EMAIL
97 - interactive prompt
98 - LOGNAME (with ``@hostname`` appended)
99
100 (deprecated, see :hg:`help config.ui.username`)
101
102 EMAIL
103 May be used as the author of a commit; see HGUSER.
104
105 LOGNAME
106 May be used as the author of a commit; see HGUSER.
107
108 VISUAL
109 This is the name of the editor to use when committing. See EDITOR.
110
111 EDITOR
112 Sometimes Mercurial needs to open a text file in an editor for a
113 user to modify, for example when writing commit messages. The
114 editor it uses is determined by looking at the environment
115 variables HGEDITOR, VISUAL and EDITOR, in that order. The first
116 non-empty one is chosen. If all of them are empty, the editor
117 defaults to 'vi'.
118
119 PYTHONPATH
120 This is used by Python to find imported modules and may need to be
121 set appropriately if this Mercurial is not installed system-wide.