commit

To read the commit message from a file:

hg ci -l ci.txt

To supply your user name at the command line:

hg ci -u name@company.com -m doc