changeset 52973:515196315b82

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.
author Mitchell Kember <mkember@janestreet.com>
date Wed, 12 Feb 2025 11:37:07 -0500
parents e189a555865c
children 874c64e041b5
files tests/test-annotate.t
diffstat 1 files changed, 14 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 ..