This extension will remove the BOM from all UTF-8 encoded files. Resulting file will still be UTF-8 but without the pesky BOM bytes.
This extension is not distributed with Mercurial.
Author: Josip Medved
Following commands are added:
hg checkbom to see if there are files starting with UTF-8 BOM.
hg killbom to remove any UTF-8 BOM found.
Configure your .hgrc to enable the extension by adding following lines:
[extensions] killbom = /path/to/killbom.py