changeset 18776 | 87441497ecaa |
parent 18746 | c0087d48ec3a |
child 18777 | 8048c519dc6a |
--- a/mercurial/commands.py Mon Mar 11 12:06:13 2013 -0700 +++ b/mercurial/commands.py Mon Mar 11 12:07:33 2013 -0700 @@ -2960,7 +2960,7 @@ if opts.get('ignore_case'): reflags |= re.I try: - regexp = re.compile(pattern, reflags) + regexp = util.compilere(pattern, reflags) except re.error, inst: ui.warn(_("grep: invalid match pattern: %s\n") % inst) return 1