def get_commit_command(self, message, author=None):
tokens = ['<STR_LIT>']<EOL>if author:<EOL><INDENT>tokens.append('<STR_LIT>' % quote(author.combined))<EOL><DEDENT>tokens.append('<STR_LIT>' % quote(message))<EOL>return ['<STR_LIT:U+0020>'.join(tokens)]<EOL>
Get the command to commit changes to tracked files in the working tree.

This method uses the ``hg remove --after`` to match the semantics of
``git commit --all`` (which is _not_ the same as ``hg commit
--addremove``) however ``hg remove --after`` is _very_ verbose (it
comments on every existing file in the repository) and it ignores the
``--quiet`` option. This explains why I've decided to silence the
standard error stream (though I feel I may regret this later).