Add an option that only ignores whitespaces at EOL. The name of the option is
the same as Git.
.. feature::
Added `--ignore-space-at-eol` diff option to ignore whitespace differences at line endings.
( )
quark | |
yuja |
hg-reviewers |
Add an option that only ignores whitespaces at EOL. The name of the option is
the same as Git.
.. feature::
Added `--ignore-space-at-eol` diff option to ignore whitespace differences at line endings.
Lint Skipped |
Unit Tests Skipped |
Looks good to me. It seems to be a significant feature that is worth a release note. Maybe check https://www.mercurial-scm.org/wiki/ReleasenotesExtension and amend the commit message to include something like:
.. feature:: Added `--ignore-space-at-eol` diff option to ignore whitespace differences at line endings.
mercurial/help/config.txt | ||
---|---|---|
317 | Maybe remove only since otherwise it sounds ignorewseol must be used together with ignorews. |
Looks like you didn't run test-help.t. I'll fix it in flight, but please run all tests next time.
...and test-record.t and test-duplicateoptions.py. This is getting a bit too many, especially since the last one is not trivial, so please send an update instead.
Yes, I've also suggested that. The concern was sandboxing, so we can run tests from untrusted people. I have no experience setting something like that up, but I'd be very happy if someone else could do it. It would be really nice to not have to run tests after applying a patch (if we're willing to live with the test failures we'd get every now and then due to conflicting changes).
@martinvonz - a reasonable first pass would be to whitelist known contributors for CI runs.
That sounds reasonable. Still not my area of expertise, but I'd be happy to see it done.
mercurial/cmdutil.py | ||
---|---|---|
125–126 | Regular diff chose -Z for the short option |
mercurial/cmdutil.py | ||
---|---|---|
125–126 | -Z sounds good, which doesn't conflict with any existing short FWIW, the long option is called as --ignore-trailing-space in |
mercurial/cmdutil.py | ||
---|---|---|
125–126 | I am happy to change '-Z'. The used the long opt name from git. I am happy either way, but I personally would prefer the git name. |
mercurial/mdiff.py | ||
---|---|---|
102 | This matches empty lines because \s includes \n. Can you add a test for this bug? |
Regular diff chose -Z for the short option