When I run hg commit, Mercurial generates a file for my commit message that looks like this :
hg commit
HG: Enter commit message. Lines beginning with \'
A Mac/Linux variant of Jim Eggleston's answer... I made a script called hg-commit-editor:
#!/bin/sh hg status --unknown | sed -e 's|^|HG: |' >> $1 editor $1
and then set it as my commit editor in my hgrc:
[ui] editor = hg-commit-editor