mercurial/commands.py
changeset 38648 ffd08ec22955
parent 38631 9ef10437bb88
child 38649 0d0f8bd692c4
equal deleted inserted replaced
38647:0f4c2c70e26e 38648:ffd08ec22955
  2499     ('l', 'files-with-matches', None,
  2499     ('l', 'files-with-matches', None,
  2500      _('print only filenames and revisions that match')),
  2500      _('print only filenames and revisions that match')),
  2501     ('n', 'line-number', None, _('print matching line numbers')),
  2501     ('n', 'line-number', None, _('print matching line numbers')),
  2502     ('r', 'rev', [],
  2502     ('r', 'rev', [],
  2503      _('only search files changed within revision range'), _('REV')),
  2503      _('only search files changed within revision range'), _('REV')),
  2504     ('', 'allfiles', False,
  2504     ('', 'all-files', False,
  2505      _('include all files in the changeset while grepping (EXPERIMENTAL)')),
  2505      _('include all files in the changeset while grepping (EXPERIMENTAL)')),
  2506     ('u', 'user', None, _('list the author (long with -v)')),
  2506     ('u', 'user', None, _('list the author (long with -v)')),
  2507     ('d', 'date', None, _('list the date (short with -q)')),
  2507     ('d', 'date', None, _('list the date (short with -q)')),
  2508     ] + formatteropts + walkopts,
  2508     ] + formatteropts + walkopts,
  2509     _('[OPTION]... PATTERN [FILE]...'),
  2509     _('[OPTION]... PATTERN [FILE]...'),
  2545     if opts.get('print0'):
  2545     if opts.get('print0'):
  2546         sep = eol = '\0'
  2546         sep = eol = '\0'
  2547 
  2547 
  2548     if not opts.get('rev') and not diff:
  2548     if not opts.get('rev') and not diff:
  2549         opts['rev'] = ["wdir()"]
  2549         opts['rev'] = ["wdir()"]
  2550         opts['allfiles'] = True
  2550         opts['all_files'] = True
  2551 
  2551 
  2552     getfile = util.lrucachefunc(repo.file)
  2552     getfile = util.lrucachefunc(repo.file)
  2553 
  2553 
  2554     def matchlines(body):
  2554     def matchlines(body):
  2555         begin = 0
  2555         begin = 0