I didn’t set the username on my development computer and made a few commits. Can I retroactively change the username so it’s clear who committed these changesets?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’ve not published your repository then this shouldn’t be too hard. You need to use the Convert extension to Mercurial, which will let you ‘filter’ your existing repository to create a new one. the –authors switch lets you edit the author for each commit as it is filtered.
If you have published your repository, please consider the impact on your users, the mercurial wiki has some reasons not to edit history.
Enable the extension by adding these lines to your .hgrc:
Write a file to map the old name to the new name (authors.convert.list):
Run the conversion:
I just checked it, it works for me :).