annotate: add test for --ignore-space-at-eol
This was missing from the whitespace option testing in test-annotate.t.
I changed the "a" file contents a bit to make the output different from the
other whitespace flags.
--- a/tests/test-annotate.t Tue Feb 18 22:30:55 2025 +0100
+++ b/tests/test-annotate.t Wed Feb 12 11:37:07 2025 -0500
@@ -1066,9 +1066,9 @@
adding a
$ sed 's/EOL$//g' > a <<EOF
> a a
- >
> EOL
> b b
+ >
> EOF
$ hg ci -m "changea"
@@ -1076,33 +1076,41 @@
$ hg annotate a
1: a a
- 0:
1:
1: b b
+ 0:
Annotate with --ignore-space-change
$ hg annotate --ignore-space-change a
1: a a
- 1:
0:
0: b b
+ 1:
Annotate with --ignore-all-space
$ hg annotate --ignore-all-space a
0: a a
- 0:
- 1:
+ 0:
0: b b
+ 1:
Annotate with --ignore-blank-lines (similar to no options case)
$ hg annotate --ignore-blank-lines a
1: a a
- 0:
1:
1: b b
+ 0:
+
+Annotate with --ignore-space-at-eol
+
+ $ hg annotate --ignore-space-at-eol a
+ 1: a a
+ 0:
+ 1: b b
+ 1:
$ cd ..