Mercurial's format source extension version 0.4.0
Pierre-Yves David2019-07-17
Version 0.4.0 of the formatsource extension for Mercurial just got pushed.
The extension deals with codebase formatting and smooths its consequences during
merges.
The release is available on pypi and upgrading is recommended.
Version 0.4.0 brings the following changes:
Formatting of the help text was improved
The
format-sourcecommand gained an--extra-config-fileflag. Use it to record custom config files when running initial formatting.It is now possible to track the tool version number when formatting files. The value will be put to use in later version of the extension to help to react to tool version changes. Tools coming with a default configuration will now track their version.
A new
format-source.run-modeconfig option has been added. Set it toyesto forcibly run formatters during any merge involving formatted files. Set it tonoto disable any formatting during merges.The
format-sourcecommand gained a--currentflag to run formatter on the working copy files. Each files get formatted according formatter defined in previoushg format-sourcecall.