Mercurial > public > mercurial-scm > hg
diff tests/test-grep.t @ 13920:332e400764e5
grep: don't print data from binary files for matches (issue2614)
author | Md. O. Shayan <mdoshayan@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 23:13:17 +0530 |
parents | 05fffd665170 |
children | ffb5c09ba822 |
line wrap: on
line diff
--- a/tests/test-grep.t Sat Apr 09 23:53:23 2011 +0300 +++ b/tests/test-grep.t Sat Apr 09 23:13:17 2011 +0530 @@ -166,3 +166,11 @@ $ hg grep --all red color:3:-:red color:1:+:red + + $ hg init a + $ cd a + $ cp $TESTDIR/binfile.bin . + $ hg add binfile.bin + $ hg ci -m 'add binfile.bin' + $ hg grep "MaCam" --all + binfile.bin:0:+: Binary file matches