##// END OF EJS Templates
grep: make multiline mode the default (BC)...
Matt Mackall -
r15765:1ef46bcd stable
parent child Browse files
Show More
@@ -2663,7 +2663,7 b' def grep(ui, repo, pattern, *pats, **opt'
2663
2663
2664 Returns 0 if a match is found, 1 otherwise.
2664 Returns 0 if a match is found, 1 otherwise.
2665 """
2665 """
2666 reflags = 0
2666 reflags = re.M
2667 if opts.get('ignore_case'):
2667 if opts.get('ignore_case'):
2668 reflags |= re.I
2668 reflags |= re.I
2669 try:
2669 try:
@@ -59,8 +59,9 b' other'
59
59
60 follow
60 follow
61
61
62 $ hg grep --traceback -f 'import$' port2
62 $ hg grep --traceback -f 'import\n\Z' port2
63 port:0:import
63 port:0:import
64
64 $ echo deport >> port2
65 $ echo deport >> port2
65 $ hg commit -m 5 -u eggs -d '6 0'
66 $ hg commit -m 5 -u eggs -d '6 0'
66 $ hg grep -f --all -nu port port2
67 $ hg grep -f --all -nu port port2
General Comments 0
You need to be logged in to leave comments. Login now