Mercurial 仅提交修改和删除的文件

Mercurial commit only modified and deleted files

为了避免在每次提交中指定所有文件,git commit -a 的 mercurial 等价物是什么?

谢谢

hgbook.red确实提到了

The hg commit command also provides a -A option that performs this same hg add-and-remove, immediately followed by a commit.

$ echo c > c
$ hg commit -A -m 'Commit with addremove'
adding c

但是hg commit -A 自动检测copied/renamed 文件像hg addremove -s 可以做(-s 猜测重命名的文件相似度)

hg commit 没有选项将自动提交所有修改过的文件在版本控制下。不会自动添加未跟踪的文件。这与 git commit -a.

的行为相同