equal
deleted
inserted
replaced
2958 """ |
2958 """ |
2959 reflags = re.M |
2959 reflags = re.M |
2960 if opts.get('ignore_case'): |
2960 if opts.get('ignore_case'): |
2961 reflags |= re.I |
2961 reflags |= re.I |
2962 try: |
2962 try: |
2963 regexp = re.compile(pattern, reflags) |
2963 regexp = util.compilere(pattern, reflags) |
2964 except re.error, inst: |
2964 except re.error, inst: |
2965 ui.warn(_("grep: invalid match pattern: %s\n") % inst) |
2965 ui.warn(_("grep: invalid match pattern: %s\n") % inst) |
2966 return 1 |
2966 return 1 |
2967 sep, eol = ':', '\n' |
2967 sep, eol = ':', '\n' |
2968 if opts.get('print0'): |
2968 if opts.get('print0'): |