Set different username per directory tree.
This extension is not distributed with Mercurial.
Author: Marcin Kasperski
Write in your ~/.hgrc:
[extensions] dynamic_username = [dynamic_username] work.location = ~/work work.username = John Smith <firstname.lastname@example.org> hobby.location = ~/hobby, ~/blogging hobby.username = Johny <email@example.com>
and commit as John Smith in ~/work/lib/payments and as Johny in ~/hobby/models.
For detailed description see the extension page