Bitbucket FAQ

Why are my commits showing up under another user?

As commits in Mercurial are local, we have no way of controlling that you've set your username correctly. It's important for you to set this in a way so we can identify your user account on Bitbucket when you push them to us.

The recommended way of setting it up, in ~/.hgrc is like this:

[ui]
username = Firstname Lastname <your@email.address>

That gives us sufficient information to backtrack it to your account here (given that the email address is the same as you signed up with.)