hg files [ПАРАМЕТР]... [ФАЙЛ]...

list tracked files

Print files under Mercurial control in the working directory or
specified revision for given files (excluding removed files).
Files can be specified as filenames or filesets.

If no files are given to match, this command prints the names
of all files under Mercurial control.

.. container:: verbose

  Template:

  The following keywords are supported in addition to the common template
  keywords and functions. See also :hg:`help templates`.

  :flags:   String. Character denoting file's symlink and executable bits.
  :path:    String. Repository-absolute path of the file.
  :size:    Integer. Size of the file in bytes.

  Examples:

  - list all files under the current directory::

      hg files .

  - shows sizes and flags for current revision::

      hg files -vr .

  - list all files named README::

      hg files -I "**/README"

  - list all binary files::

      hg files "set:binary()"

  - find files containing a regular expression::

      hg files "set:grep('bob')"

  - search tracked file contents with xargs and grep::

      hg files -0 | xargs -0 grep foo

See :hg:`help patterns` and :hg:`help filesets` for more information
on specifying file patterns.

Returns 0 if a match is found, 1 otherwise.



options ([+] can be repeated):

 == ==================== ===============================================================
 -r --rev РЕВИЗИЯ        искать в хранилище, каким оно было на момент РЕВИЗИЯ           
 -0 --print0             вставлять NUL после имен файлов, для использования с xargs     
 -I --include ШАБЛОН [+] добавить файлы, имена которых соответствуют данным шаблонам    
 -X --exclude ШАБЛОН [+] не добавлять файлы, имена которых соответствуют данным шаблонам
 -T --template ШАБЛОН    отображать с помощью шаблона                                   
 -S --subrepos           рекурсивно обрабатывать подхранилища                           
 == ==================== ===============================================================

global options ([+] can be repeated):

 == ====================== =======================================================================================================================
 -R --repository ХРАНИЛИЩЕ корневой каталог хранилища или имя файла комплекта                                                                     
    --cwd КАТАЛОГ          сменить рабочий каталог                                                                                                
 -y --noninteractive       не спрашивать, на все вопросы автоматически выбирать первый вариант                                                    
 -q --quiet                подавлять вывод                                                                                                        
 -v --verbose              включить дополнительный вывод                                                                                          
    --color ТИП            when to colorize (boolean, always, auto, never, or debug)                                                              
    --config КОНФИГ [+]    задать/переопределить параметр конфигурации (в виде 'секция.параметр=значение')                                        
    --config-file HGRC [+] load config file to set/override config options                                                                        
    --debug                включить отладочный вывод                                                                                              
    --debugger             запустить отладчик                                                                                                     
    --encoding КОДИРОВКА   установить кодировку (по умолчанию: UTF-8)                                                                             
    --encodingmode РЕЖИМ   установить режим кодировки (по умолчанию: strict)                                                                      
    --traceback            всегда печатать трассировку стека при исключении                                                                       
    --time                 время выполнения команды                                                                                               
    --profile              профилирование выполнения команды                                                                                      
    --version              напечатать информацию о версии и выйти                                                                                 
 -h --help                 показать справку и выйти                                                                                               
    --hidden               учитывать скрытые наборы изменений                                                                                     
    --pager ТИП            когда использовать прокрутку (логический. always (всегда), auto(автоматически) или never (никогда) (по умолчанию: auto)
 == ====================== =======================================================================================================================