##// END OF EJS Templates
test 261a9f47b44b: grep w/ match in last line w/o newline...
Christian Ebert -
r7240:dac14cc9 default
parent child Browse files
Show More
@@ -53,6 +53,12 b" hg ci -m 3 -d '0 0'"
53 hg grep orange
53 hg grep orange
54 hg grep --all orange
54 hg grep --all orange
55
55
56 echo % match in last "line" without newline
57 python -c 'fp = open("noeol", "wb"); fp.write("no infinite loop"); fp.close();'
58 hg ci -Amnoeol
59 echo % last character omitted in output to avoid infinite loop
60 hg grep loop
61
56 # Got a traceback when using grep on a single
62 # Got a traceback when using grep on a single
57 # revision with renamed files.
63 # revision with renamed files.
58 cd ..
64 cd ..
@@ -66,3 +72,4 b' hg ci -Am rename'
66 hg grep octarine
72 hg grep octarine
67 # Used to crash here
73 # Used to crash here
68 hg grep -r 1 octarine
74 hg grep -r 1 octarine
75
@@ -32,6 +32,10 b' color:3:orange'
32 color:3:+:orange
32 color:3:+:orange
33 color:2:-:orange
33 color:2:-:orange
34 color:1:+:orange
34 color:1:+:orange
35 % match in last line without newline
36 adding noeol
37 % last character omitted in output to avoid infinite loop
38 noeol:4:no infinite loo
35 % issue 685
39 % issue 685
36 adding color
40 adding color
37 color:0:octarine
41 color:0:octarine
General Comments 0
You need to be logged in to leave comments. Login now