comparison mercurial/commands.py @ 29849:f148bfa40489

files: change documentation to match its behaviour (issue5276) Documentation gave the usage pattern as '[OPTION]... [PATTERN]...' when the command match given files as relpaths by default.
author liscju <piotr.listkiewicz@gmail.com>
date Tue, 05 Jul 2016 09:37:07 +0200
parents d5883fd055c6
children b842b1adfea2
comparison
equal deleted inserted replaced
29848:b1f69dbdd76b 29849:f148bfa40489
3911 3911
3912 @command('files', 3912 @command('files',
3913 [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')), 3913 [('r', 'rev', '', _('search the repository as it is in REV'), _('REV')),
3914 ('0', 'print0', None, _('end filenames with NUL, for use with xargs')), 3914 ('0', 'print0', None, _('end filenames with NUL, for use with xargs')),
3915 ] + walkopts + formatteropts + subrepoopts, 3915 ] + walkopts + formatteropts + subrepoopts,
3916 _('[OPTION]... [PATTERN]...')) 3916 _('[OPTION]... [FILE]...'))
3917 def files(ui, repo, *pats, **opts): 3917 def files(ui, repo, *pats, **opts):
3918 """list tracked files 3918 """list tracked files
3919 3919
3920 Print files under Mercurial control in the working directory or 3920 Print files under Mercurial control in the working directory or
3921 specified revision whose names match the given patterns (excluding 3921 specified revision for given files (excluding removed files).
3922 removed files). 3922 Files can be specified as filenames or filesets.
3923 3923
3924 If no patterns are given to match, this command prints the names 3924 If no files are given to match, this command prints the names
3925 of all files under Mercurial control in the working directory. 3925 of all files under Mercurial control.
3926 3926
3927 .. container:: verbose 3927 .. container:: verbose
3928 3928
3929 Examples: 3929 Examples:
3930 3930