How do you set the username that Mercurial uses for commits?

In your ~/.hgrc (*nix) or mercurial.ini (Windows) file:

[ui]
username = First Last <email@address.com>

(mercurial.ini is in C:\Documents and Settings\[username]\ for XP and lower, C:\Users\[username]\ for Vista and higher. You can also run hgtk userconfig if you have TortoiseHg installed and do it that way.)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)