hg commit [OPTION]... [FILE]...

aliases: ci

commit the specified files or all outstanding changes

    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".

    See "hg help dates" for a list of formats valid for -d/--date.

    Returns 0 on success, 1 if nothing changed.

options:

 -A --addremove           mark new/missing files as added/removed before
                          committing
    --close-branch        mark a branch as closed, hiding it from the branch
                          list
 -I --include PATTERN [+] include names matching the given patterns
 -X --exclude PATTERN [+] exclude names matching the given patterns
 -m --message TEXT        use text as commit message
 -l --logfile FILE        read commit message from file
 -d --date DATE           record the specified date as commit date
 -u --user USER           record the specified user as committer
 -S --subrepos            recurse into subrepositories

[+] marked option can be specified multiple times

use "hg -v help commit" to show more info