hg backout [ПАРАМЕТР]... [-r] РЕВИЗИЯ
отменить эффект более раннего набора изменений
Prepare a new changeset with the effect of REV undone in the
current working directory. If no conflicts were encountered,
it will be committed immediately.
If REV is the parent of the working directory, then this new changeset
is committed automatically (unless --no-commit is specified).
.. note::
:hg:`backout` cannot be used to fix either an unwanted or
incorrect merge.
.. container:: verbose
Examples:
- Reverse the effect of the parent of the working directory.
This backout will be committed immediately::
hg backout -r .
- Reverse the effect of previous bad revision 23::
hg backout -r 23
- Reverse the effect of previous bad revision 23 and
leave changes uncommitted::
hg backout -r 23 --no-commit
hg commit -m "Backout revision 23"
By default, the pending changeset will have one parent,
maintaining a linear history. With --merge, the pending
changeset will instead have two parents: the old parent of the
working directory and a new child of REV that simply undoes REV.
Before version 1.7, the behavior without --merge was equivalent
to specifying --merge followed by :hg:`update --clean .` to
cancel the merge and leave the child of REV as a head to be
merged separately.
See :hg:`help dates` for a list of formats valid for -d/--date.
See :hg:`help revert` for a way to restore files to the state
of another revision.
Returns 0 on success, 1 if nothing to backout or there are unresolved
files.
options ([+] can be repeated):
== ==================== ===============================================================
--merge слить со старым родителем после завершения
--commit commit if no conflicts were encountered (DEPRECATED)
--no-commit do not commit
--parent РЕВИЗИЯ выбираемая родительская ревизия при отмене слияния (УСТАРЕЛО)
-r --rev РЕВИЗИЯ ревизия для отмены
-e --edit вызвать редактор для создания сообщения фиксации
-t --tool TOOL задать инструмент слияния
-I --include ШАБЛОН [+] добавить файлы, имена которых соответствуют данным шаблонам
-X --exclude ШАБЛОН [+] не добавлять файлы, имена которых соответствуют данным шаблонам
-m --message ТЕКСТ текст сообщения фиксации
-l --logfile ФАЙЛ взять сообщение фиксации из файла
-d --date ДАТА использовать эту дату в качестве даты фиксации
-u --user ПОЛЬЗОВАТЕЛЬ использовать этого пользователя как автора фиксации
== ==================== ===============================================================
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)
== ====================== =======================================================================================================================