abort: no username supplied (see "hg help config")

Snehal picture Snehal · Mar 19, 2010 · Viewed 91.2k times · Source

I have added repository and at the time of commit I get error as

error:  abort: no username supplied (see "hg help config") 

I am not getting Mercurial.ini file on my local as well. Does anyone know how I can resolve this error on Fedora?

Answer

cjg picture cjg · Mar 19, 2010

Either put a hgrc in the .hg directory in your repo or put a .hgrc (hgrc for Windows) file in your home dir (then it covers all your projects) In the file you should write

[ui]
username = Your Name <your@mail>