Mercurial > public > mercurial-scm > hg
diff tests/test-grep.t @ 15765:1ef46bcd76f8 stable
grep: make multiline mode the default (BC)
This is a much more logical way to deal with ^ and $.
Old ^ and $ behavior are available with \A and \Z.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 03 Jan 2012 15:48:58 -0600 |
parents | 0e34699d6988 |
children | 4f795f5fbb0b |
line wrap: on
line diff
--- a/tests/test-grep.t Mon Jan 02 20:52:16 2012 -0600 +++ b/tests/test-grep.t Tue Jan 03 15:48:58 2012 -0600 @@ -59,8 +59,9 @@ follow - $ hg grep --traceback -f 'import$' port2 + $ hg grep --traceback -f 'import\n\Z' port2 port:0:import + $ echo deport >> port2 $ hg commit -m 5 -u eggs -d '6 0' $ hg grep -f --all -nu port port2