hg commit [ПАРАМЕТР]... [ФАЙЛ]...
псевдонимы: ci
зафиксировать указанные файлы или все изменения в хранилище
Commit changes to the given files into the repository. Unlike a centralized SCM, this operation is a local operation. See 'hg push' for a way to actively distribute your changes.
If a list of files is omitted, all changes reported by 'hg status' will be committed.
If you are committing the result of a merge, do not provide any filenames or -I/-X filters.
If no commit message is specified, Mercurial starts your configured editor where you can enter a message. In case your commit fails, you will find a backup of your message in ".hg/last-message.txt".
The --close-branch flag can be used to mark the current branch head closed. When all heads of a branch are closed, the branch will be considered closed and no longer listed.
The --amend flag can be used to amend the parent of the working directory with a new commit that contains the changes in the parent in addition to those currently reported by 'hg status', if there are any. The old commit is stored in a backup bundle in ".hg/strip-backup" (see 'hg help bundle' and 'hg help unbundle' on how to restore it).
Message, user and date are taken from the amended commit unless specified. When a message isn't specified on the command line, the editor will open with the message of the amended commit.
It is not possible to amend public changesets (see 'hg help phases') or changesets that have children.
See 'hg help dates' for a list of formats valid for -d/--date.
Returns 0 on success, 1 if nothing changed.
Examples:
hg commit --include "set:**.py"
hg commit --exclude "set:binary()"
hg commit --amend --date now
options ([+] can be repeated):
| -A | --addremove | пометить новые/недостающие файлы как добавленные/удаленные перед фиксацией |
| --close-branch | mark a branch head as closed | |
| --amend | amend the parent of the working directory | |
| -s | --secret | использовать секретную фазу для фиксации |
| --draft | use the draft phase for committing | |
| -e | --edit | вызвать редактор для создания сообщения фиксации |
| --force-close-branch | forcibly close branch from a non-head changeset (ADVANCED) | |
| -i | --interactive | use interactive mode |
| -I | --include ШАБЛОН [+] | добавить файлы, имена которых соответствуют данным шаблонам |
| -X | --exclude ШАБЛОН [+] | не добавлять файлы, имена которых соответствуют данным шаблонам |
| -m | --message ТЕКСТ | текст сообщения фиксации |
| -l | --logfile ФАЙЛ | взять сообщение фиксации из файла |
| -d | --date ДАТА | использовать эту дату в качестве даты фиксации |
| -u | --user ПОЛЬЗОВАТЕЛЬ | использовать этого пользователя как автора фиксации |
| -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) |