mercurial/commands.py
changeset 31363 d0014d2d7645
parent 31345 dd49a6c166f7
child 31386 f1f57e4e55e0
equal deleted inserted replaced
31362:50cd81346ad4 31363:d0014d2d7645
  2081     on specifying file patterns.
  2081     on specifying file patterns.
  2082 
  2082 
  2083     Returns 0 if a match is found, 1 otherwise.
  2083     Returns 0 if a match is found, 1 otherwise.
  2084 
  2084 
  2085     """
  2085     """
  2086     ctx = scmutil.revsingle(repo, opts.get('rev'), None)
  2086     ctx = scmutil.revsingle(repo, opts.get(r'rev'), None)
  2087 
  2087 
  2088     end = '\n'
  2088     end = '\n'
  2089     if opts.get('print0'):
  2089     if opts.get('print0'):
  2090         end = '\0'
  2090         end = '\0'
  2091     fmt = '%s' + end
  2091     fmt = '%s' + end