Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

mercurial

hgrc

I'm not sure why but since today I have the problem with pushing my source to repo. I got abort: no username supplied (see "hg help config") The thing is that I have [ui] section in hgrc:

[ui]
username = My username
verbose = true

Where's the problem then?

like image 959
KennyPowers Avatar asked May 11 '12 16:05

KennyPowers


1 Answers

Try doing:

hg --debug showconfig

that shows you all the configuration settings Mercurial is finding and where it's finding them. Since it looks like you're on windows one possibility is BOMs (byte order markers) at the front of your hgrc file. Nodepad likes to incorrectly put them in there.

In a pinch you can always do hg --config ui.username=Whatever_you_want commit, but that's a terrible long term solutions.

Lastly, one expects that error on commit, but you said you're getting it on push. I can't imagine how that could happen.

like image 79
Ry4an Brase Avatar answered Oct 05 '22 13:10

Ry4an Brase