Yes it is possible. Use Convert extension and then hg convert from the repository with bad names to the new repository with good names and use authormap. There are many things you can do using the conversion extension and conversion from Mercurial to another Mercurial repo.
Startup file, suppose Eric Hopper <bumpy@bar.com> is the canonical name of the author:
Eric Hopper <bouncy@foo.com>=Eric Hopper <bumpy@bar.com> Eric M. Hopper <bouncy@foo.com>=Eric Hopper <bumpy@bar.com> Eric Hopper <bouncy@baz.com>=Eric Hopper <bumpy@bar.com>
Then:
hg convert -s hg -d hg --authormap authormap badnamesrepo goodnamesrepo
Note: that when converting hg to an hg repository, many new changesets will not always be created, in this case it will be, and they will be equivalent to (but different from) the changesets to the original repository. This means that everyone using this repository will have to delete all the clones that they have and get new ones.
In the general case, converting an hg repository to an hg repository is likely to create at least a few new sets of changes, otherwise there would be no reason for this. And that will almost certainly require everyone to destroy all their clones and re-clone.
If your analysis tool has the ability to reassign author names, this is probably the best way. But this is not what you asked for, so I gave you the answer you asked. :-)
Omnifarious Oct. 16 '10 at 21:14 2010-10-16 21:14
source share