When you commit, your message editor will contain a list of files that will be transferred in the ignored section. If you make a transaction with hg -m "message", this will not work when the editor step is skipped:
HG: Enter commit message. Lines beginning with 'HG:' are removed.
HG: Leave message empty to abort commit.
HG:
HG: user: User <user@user.land>
HG: branch 'default'
HG: changed myfile.yxy
You can use hg commitit hg rollbackto cancel the last commit if it contains a file that you do not want to commit. rollback works until you are hg pushin a different repository.
State works with the same patterns as commit. You can use hg status some/path/*and then hg commit some/path/*replace only the command to use.
source
share