At the moment I am looking at transitioning from subversion to Mercurial at work, and as such the Mercurial repository is not yet published.
I have used the authormap argument to transform our usernames to the Mercurial format, which went fine.
Unfortunately two people have been commiting under the same name. The repository is not very large, so I would like to change the authors to match the right people. For that reason I would like to ask:
Is there any way to change the author for a specific changeset, or a list of changesets?
You can use the bundled extension Mercurial Queues (MQ) to change commit authors. Note that MQ will only work as long as history is linear. If there are branches you need to first rebase them off to a temporary side branch, and then after editing rebase them back.
First
qimportthe changes up till the first changeset you want to modify:Then use
qpoporqgototo navigate to the respective changesets:And then use
qrefreshto change the user info on the currently active changeset:You can verify with
hg logwhether the user was correctly updated. After this, repeat for all other changesets.When you are done,
qpushall patches and useqfinishto finalize the repository.