We're switching from Subversion to Mercurial in our corporate environment. There will be a central repository that is accessible via HTTPS with basic HTTP authentication.
Now I'm curious whether it's possible to force specific usernames for commits? I'm talking about the usernames that can be set in
.hgrc like this
[ui] username = John Doe <firstname.lastname@example.org>
and that are visible in the log messages.
Because this file is placed on each developer's machine it's outside of the administrator's control.
This wouldn't be a problem because we trust our internal developers but externals (freelancers) will also have access to at least some repositories. We definitively don't want them to checkin under different names.
It would be great if the username can be bound/forced to the HTTP username. For example if John pushes his changes to the URL
https://email@example.com/hg/project1 then the usernames of all commits will be set to
John Doe <firstname.lastname@example.org.
Is this possible?