mercurial/commands.py
branchstable
changeset 15765 1ef46bcd76f8
parent 15744 5a20115e7397
child 15773 371cff9610cd
child 15779 01831f55e972
equal deleted inserted replaced
15764:c8cd3c4bf9a4 15765:1ef46bcd76f8
  2661     becomes a non-match, or "+" for a non-match that becomes a match),
  2661     becomes a non-match, or "+" for a non-match that becomes a match),
  2662     use the --all flag.
  2662     use the --all flag.
  2663 
  2663 
  2664     Returns 0 if a match is found, 1 otherwise.
  2664     Returns 0 if a match is found, 1 otherwise.
  2665     """
  2665     """
  2666     reflags = 0
  2666     reflags = re.M
  2667     if opts.get('ignore_case'):
  2667     if opts.get('ignore_case'):
  2668         reflags |= re.I
  2668         reflags |= re.I
  2669     try:
  2669     try:
  2670         regexp = re.compile(pattern, reflags)
  2670         regexp = re.compile(pattern, reflags)
  2671     except re.error, inst:
  2671     except re.error, inst: