hg purge [ПАРАМЕТР]... [КАТАЛОГ]...

псевдонимы: clean

удалить файлы, не отслеживаемые Mercurial

Delete files not known to Mercurial. This is useful to test local
and uncommitted changes in an otherwise-clean source tree.

This means that purge will delete the following by default:

- Unknown files: files marked with "?" by :hg:`status`
- Empty directories: in fact Mercurial ignores directories unless
  they contain files under source control management

But it will leave untouched:

- Modified and unmodified tracked files
- Ignored files (unless -i or --all is specified)
- New files added to the repository (with :hg:`add`)

The --files and --dirs options can be used to direct purge to delete
only files, only directories, or both. If neither option is given,
both will be deleted.

If directories are given on the command line, only files in these
directories are considered.

Be careful with purge, as you could irreversibly delete some files
you forgot to add to the repository. If you only want to print the
list of files that this program would delete, use the --print
option.


options ([+] can be repeated):

 == ==================== ===================================================================================
 -a --abort-on-err       прервать выполнение при возникновении ошибки                                       
    --all                зачистить также игнорируемые файлы                                                 
 -i --ignored            purge only ignored files                                                           
    --dirs               удалить пустые директории                                                          
    --files              удалить файлы                                                                      
 -p --print              напечатать имена файлов вместо их удаления                                         
 -0 --print0             добавлять NUL после имен файлов для использования с xargs (подразумевает-p/--print)
    --confirm            ask before permanently deleting files                                              
 -I --include ШАБЛОН [+] добавить файлы, имена которых соответствуют данным шаблонам                        
 -X --exclude ШАБЛОН [+] не добавлять файлы, имена которых соответствуют данным шаблонам                    
 == ==================== ===================================================================================

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)
 == ====================== =======================================================================================================================