Mercurial > hg
changeset 43092:0b75457d1133
formatting: remove the data-ogre from the config example
Without he final `-`, black ignore the stdin and just looks at file provided as
command line argument.
Since `hg fix` feeds the file content through stdin and does not pass file
argument, this meant black happily exited successful (all files passed as
argument were formatted) without any output. Fix picked this "no output" as the
new file content, deleting all previous content.
I appreciate the fact this effectively removed all buggy code in any files
processing that way, but this also ate all my data.
The example config is now fixed in that regards.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 07 Oct 2019 11:48:34 -0400 |
parents | 127cc1f72e70 |
children | 9002f4a3dde6 |
files | contrib/examples/fix.hgrc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/examples/fix.hgrc Sun Oct 06 17:27:51 2019 -0400 +++ b/contrib/examples/fix.hgrc Mon Oct 07 11:48:34 2019 -0400 @@ -11,5 +11,5 @@ # git+https://github.com/python/black/@d9e71a75ccfefa3d9156a64c03313a0d4ad981e5 # to have the dependencies for grey. # -# black:command = python3.7 contrib/grey.py --skip-string-normalization +# black:command = python3.7 contrib/grey.py --skip-string-normalization - # black:pattern = set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**"