diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2011-10-01 20:49:36 +0000 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-09-27 13:27:51 +0000 |
commit | 921ced43c48c1d170452a7b251b94cc96ec8dd44 (patch) | |
tree | 3c4a89176ea67fe4c7bf7b375488361a823c95fa /tests/test-grep.t | |
parent | 9039c805b0a7e36220101323f82735f08a104b37 (diff) | |
download | mercurial-tarball-master.tar.gz |
Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz.HEADmercurial-1.9.3master
Diffstat (limited to 'tests/test-grep.t')
-rw-r--r-- | tests/test-grep.t | 15 |
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 .. |