test-help: improve test coverage
Adds a test that extension commands are omitted from the default
command list.
Extends test coverage of commands.help_ by 1 line.
test-help: improve test coverage
Adds a test for commands without help text.
Extends test coverage of commands.help_ by 1 line.
test-help: improve test coverage
Adds a test for help on a command with no options.
Extends test coverage of commands.help_ by 2 lines.
test-help: improve test coverage
Adds a test for handling ambiguous command help
Extends test coverage of commands.help_ by 4 lines.
patch: better handling of sequence of offset patch hunks (
issue1941)
The built-in patch implementation applied the hunks to the wrong lines of the
file if the file in the repo has been modified to skew the patch line numbers
and the file contains repetitive sequences of lines.
diffhelpers: handle CRLF in hunk last line without EOL
Note that diff generation code always ends last lines without newline with a
LF, so this is a tolerance.
patch: drop eol normalization fast-path for 'lf' and 'crlf'
With eolmode set to 'lf' or 'crlf' we avoided the hunk duplication and
normalization by reading the input patch in text mode. Dropping this
optimization simplifies code expectations for a small overhead.
The change in test-mq-eol comes from a tolerance to CRLF instead of LF for last
lines without newlines being broken by this revision. This tolerance was only
partially supported and will be added again in a better way.