summaryrefslogtreecommitdiff
path: root/tests/test-grep.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-grep.t')
-rw-r--r--tests/test-grep.t15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/test-grep.t b/tests/test-grep.t
index 0b4c3f2..80f94a8 100644
--- a/tests/test-grep.t
+++ b/tests/test-grep.t
@@ -59,9 +59,8 @@ other
follow
- $ hg grep --traceback -f 'import\n\Z' port2
+ $ hg grep --traceback -f 'import$' port2
port:0:import
-
$ echo deport >> port2
$ hg commit -m 5 -u eggs -d '6 0'
$ hg grep -f --all -nu port port2
@@ -107,8 +106,12 @@ match in last "line" without newline
$ python -c 'fp = open("noeol", "wb"); fp.write("no infinite loop"); fp.close();'
$ hg ci -Amnoeol
adding noeol
+
+last character omitted in output to avoid infinite loop
+
$ hg grep loop
- noeol:4:no infinite loop
+ noeol:4:no infinite loo
+
$ cd ..
@@ -163,14 +166,10 @@ of just using revision numbers.
color:3:-:red
color:1:+:red
- $ cd ..
-
$ hg init a
$ cd a
- $ cp "$TESTDIR/binfile.bin" .
+ $ cp $TESTDIR/binfile.bin .
$ hg add binfile.bin
$ hg ci -m 'add binfile.bin'
$ hg grep "MaCam" --all
binfile.bin:0:+: Binary file matches
-
- $ cd ..