JetThoughts

Convert authors names in Mercurial

October 3rd 2009

Problem:

Change name and email in mercurial repository.

Solution:

Use the extension ConvertExtension. Install this extension and configure your .hgrc to enable the extension by adding following lines:

 [extensions]
 hgext.convert=

We create a file authors:

 old_email@example.com=New Name <new_email@gmail.com>

Then run command to convert old project with old names and emails to new repo with new names:

 hg convert project project_new -A authors
blog comments powered by Disqus

Powered by Rackspace Cloud Computing