diff mercurial/commands.py @ 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 5a20115e7397
children 371cff9610cd 01831f55e972
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Jan 02 20:52:16 2012 -0600
+++ b/mercurial/commands.py	Tue Jan 03 15:48:58 2012 -0600
@@ -2663,7 +2663,7 @@
 
     Returns 0 if a match is found, 1 otherwise.
     """
-    reflags = 0
+    reflags = re.M
     if opts.get('ignore_case'):
         reflags |= re.I
     try: