hg rollback

откатить последнюю транзакцию (ОПАСНО) (УСТАРЕЛО)

Please use :hg:`commit --amend` instead of rollback to correct
mistakes in the last commit.

This command should be used with care. There is only one level of
rollback, and there is no way to undo a rollback. It will also
restore the dirstate at the time of the last transaction, losing
any dirstate changes since that time. This command does not alter
the working directory.

Transactions are used to encapsulate the effects of all commands
that create new changesets or propagate existing changesets into a
repository.

.. container:: verbose

  For example, the following commands are transactional, and their
  effects can be rolled back:

  - commit
  - import
  - pull
  - push (with this repository as the destination)
  - unbundle

  To avoid permanent data loss, rollback will refuse to rollback a
  commit transaction if it isn't checked out. Use --force to
  override this protection.

  The rollback command can be entirely disabled by setting the
  ``ui.rollback`` configuration setting to false. If you're here
  because you want to use rollback and it's disabled, you can
  re-enable the command by setting ``ui.rollback`` to true.

This command is not intended for use on public repositories. Once
changes are visible for pull by other users, rolling a transaction
back locally is ineffective (someone else may already have pulled
the changes). Furthermore, a race is possible with readers of the
repository; for example an in-progress pull from the repository
may fail if a rollback is performed.

Returns 0 on success, 1 if no rollback data is available.


options:

 == ========= =================================================
 -n --dry-run ничего реально не делать, просто напечатать вывод
 -f --force   игнорировать меры безопасности                   
 == ========= =================================================

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