mercurial/commands.py
changeset 15773 371cff9610cd
parent 15747 e251250ac20b
parent 15765 1ef46bcd76f8
child 15774 0bd17a4bed88
equal deleted inserted replaced
15772:83a140752239 15773:371cff9610cd
  2692     becomes a non-match, or "+" for a non-match that becomes a match),
  2692     becomes a non-match, or "+" for a non-match that becomes a match),
  2693     use the --all flag.
  2693     use the --all flag.
  2694 
  2694 
  2695     Returns 0 if a match is found, 1 otherwise.
  2695     Returns 0 if a match is found, 1 otherwise.
  2696     """
  2696     """
  2697     reflags = 0
  2697     reflags = re.M
  2698     if opts.get('ignore_case'):
  2698     if opts.get('ignore_case'):
  2699         reflags |= re.I
  2699         reflags |= re.I
  2700     try:
  2700     try:
  2701         regexp = re.compile(pattern, reflags)
  2701         regexp = re.compile(pattern, reflags)
  2702     except re.error, inst:
  2702     except re.error, inst: