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 |