Or tell him to forget these files:
hg forget XYZ hg commit ...
Or use the addremove or addremove command to commit:
hg addremove Hg commit ...
or
hg commit
Using this command, you can find additional information about these commands:
hg help forget hg help commit
source share