equal
deleted
inserted
replaced
1090 use the --all flag. |
1090 use the --all flag. |
1091 """ |
1091 """ |
1092 reflags = 0 |
1092 reflags = 0 |
1093 if opts['ignore_case']: |
1093 if opts['ignore_case']: |
1094 reflags |= re.I |
1094 reflags |= re.I |
1095 regexp = re.compile(pattern, reflags) |
1095 try: |
|
1096 regexp = re.compile(pattern, reflags) |
|
1097 except Exception, inst: |
|
1098 ui.warn(_("grep: invalid match pattern: %s!\n") % inst) |
|
1099 return None |
1096 sep, eol = ':', '\n' |
1100 sep, eol = ':', '\n' |
1097 if opts['print0']: |
1101 if opts['print0']: |
1098 sep = eol = '\0' |
1102 sep = eol = '\0' |
1099 |
1103 |
1100 fcache = {} |
1104 fcache = {} |