Mercurial > hg
view tests/test-dirstate-backup.t @ 50359:f4ff55583dec stable
fix: highlight the required configuration and behavior of the fixer tools
The problem is that `hg help fix` didn't mention *how* to configure the tools,
and while I knew that `{rootpath}` existed in the configuration, I missed that
the tools require reading content from stdin. (I configured `gofmt` to use
`{rootpath}`, and that had the effect of squashing all changes in a file at `.`
into the first commit and emptying that content from its descendants.)
Basically all this does is put a pointer in the default (command level) help to
the extension level help that mentions the configuration, and moves the
extension level help that documents reading from stdin and writing to stdout to
the top to give it more prominence. The last sentence is adjusted a bit to
reflect the new location.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 25 Apr 2023 17:49:35 -0400 |
parents | ffd19d73518d |
children |
line wrap: on
line source
Set up $ hg init repo $ cd repo $ echo a > a $ hg add a $ hg commit -m a Try to import an empty patch $ hg import --no-commit - <<EOF > EOF applying patch from stdin abort: stdin: no diffs found [10] No dirstate backups are left behind $ ls .hg/dirstate* | sort .hg/dirstate