Try to do:
hg --debug showconfig
which shows all the configuration settings that Mercurial finds and where it finds them. Since it looks like you're on windows, one of the possibilities is the specifications (byte order markers) at the beginning of your hgrc
file. Nodepad likes to post them there incorrectly.
As a last resort, you can always make hg --config ui.username=Whatever_you_want commit
, but these are scary long-term solutions.
Finally, it is expected that the error is on commit
, but you said you were getting it on push
. I can not imagine how this could happen.
source share