##// END OF EJS Templates
track-tags: introduce first bits of tags tracking during transaction...
track-tags: introduce first bits of tags tracking during transaction This changeset introduces detection of tags changes during transaction. When this happens a 'tag_moved=1' argument is set for hooks, similar to what we do for bookmarks and phases. This code is disabled by default as there are still various performance concerns. Some require a smarter use of our existing tag caches and some other require rework around the transaction logic to skip execution when unneeded. These performance improvements have been delayed, I would like to be able to experiment and stabilize the feature behavior first. Later changesets will push the concept further and provide a way for hooks to know what are the actual changes introduced by the transaction. Similar work is needed for the other families of changes (bookmark, phase, obsolescence, etc). Upgrade of the transaction logic will likely be performed at the same time. The current code can report some false positive when .hgtags file changes but resulting tags are unchanged. This will be fixed in the next changeset. For testing, we simply globally enable a hook in the tag test as all the possible tag update cases should exist there. A couple of them show the false positive mentioned above. See in code documentation for more details.

File last commit:

r28958:77e566fe default
r31994:b36318e6 default
Show More
environment.txt
111 lines | 3.9 KiB | text/plain | TextLexer
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 HG
Path to the 'hg' executable, automatically passed when running
hooks, extensions or external tools. If unset or empty, this is
the hg executable's name if it's frozen, or an executable named
'hg' (with %PATHEXT% [defaulting to COM/EXE/BAT/CMD] extensions on
Windows) is searched.
HGEDITOR
This is the name of the editor to run when committing. See EDITOR.
Brodie Rao
help: refer to user configuration file more consistently...
r12083 (deprecated, use configuration file)
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999
HGENCODING
This overrides the default locale setting detected by Mercurial.
This setting is used to convert data including usernames,
changeset descriptions, tag names, and branches. This setting can
be overridden with the --encoding command-line option.
HGENCODINGMODE
This sets Mercurial's behavior for handling unknown characters
while transcoding user input. The default is "strict", which
causes Mercurial to abort if it can't map a character. Other
settings include "replace", which replaces unknown characters, and
"ignore", which drops them. This setting can be overridden with
the --encodingmode command-line option.
Matt Mackall
encoding: default ambiguous character to narrow...
r12866 HGENCODINGAMBIGUOUS
This sets Mercurial's behavior for handling characters with
"ambiguous" widths like accented Latin characters with East Asian
fonts. By default, Mercurial assumes ambiguous characters are
narrow, set this variable to "wide" if such characters cause
formatting problems.
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 HGMERGE
An executable to use for resolving merge conflicts. The program
will be executed with three arguments: local file, remote file,
ancestor file.
Brodie Rao
help: refer to user configuration file more consistently...
r12083 (deprecated, use configuration file)
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999
HGRCPATH
Brodie Rao
help: refer to user configuration file more consistently...
r12083 A list of files or directories to search for configuration
files. Item separator is ":" on Unix, ";" on Windows. If HGRCPATH
is not set, platform default search path is used. If empty, only
the .hg/hgrc from the current repository is read.
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999
For each element in HGRCPATH:
- if it's a directory, all files ending with .rc are added
- otherwise, the file itself will be added
Brodie Rao
ui: add HGPLAIN environment variable for easier scripting...
r10455 HGPLAIN
Brodie Rao
help: refer to user configuration file more consistently...
r12083 When set, this disables any configuration settings that might
change Mercurial's default output. This includes encoding,
defaults, verbose mode, debug mode, quiet mode, tracebacks, and
Brodie Rao
ui: add HGPLAIN environment variable for easier scripting...
r10455 localization. This can be useful when scripting against Mercurial
in the face of existing user configuration.
Equivalent options set via command line flags or environment
variables are not overridden.
Brodie Rao
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT...
r13849 HGPLAINEXCEPT
This is a comma-separated list of features to preserve when
Yuya Nishihara
help: mention alias and revsetalias in description of HGPLAINEXCEPT
r26827 HGPLAIN is enabled. Currently the following values are supported:
``alias``
Don't remove aliases.
``i18n``
Preserve internationalization.
``revsetalias``
Don't remove revset aliases.
Yuya Nishihara
ui: drop template aliases by HGPLAIN...
r28958 ``templatealias``
Don't remove template aliases.
Matt Anderson
progress: display progress bar when HGPLAINEXCEPT contains "progress"...
r28171 ``progress``
Don't hide progress output.
Brodie Rao
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT...
r13849
Setting HGPLAINEXCEPT to anything (even an empty string) will
enable plain mode.
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 HGUSER
This is the string used as the author of a commit. If not set,
available values will be considered in this order:
- HGUSER (deprecated)
Brodie Rao
help: refer to user configuration file more consistently...
r12083 - configuration files from the HGRCPATH
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 - EMAIL
- interactive prompt
- LOGNAME (with ``@hostname`` appended)
Brodie Rao
help: refer to user configuration file more consistently...
r12083 (deprecated, use configuration file)
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999
EMAIL
May be used as the author of a commit; see HGUSER.
LOGNAME
May be used as the author of a commit; see HGUSER.
VISUAL
This is the name of the editor to use when committing. See EDITOR.
EDITOR
Sometimes Mercurial needs to open a text file in an editor for a
user to modify, for example when writing commit messages. The
editor it uses is determined by looking at the environment
variables HGEDITOR, VISUAL and EDITOR, in that order. The first
non-empty one is chosen. If all of them are empty, the editor
defaults to 'vi'.
PYTHONPATH
This is used by Python to find imported modules and may need to be
set appropriately if this Mercurial is not installed system-wide.