Reputation: 1065
Simple scenario:
I have renamed a file. The changes are committed and pushed. I didn't have used hg rename
.
How can I tell mercurial that an add/remove in a commit was a rename? Is there something like the svn .mergeinfo that I can edit manually?
(It is not the last commit, so solution with amending to a commit are nice, but won't help me.)
Upvotes: 2
Views: 210
Reputation: 5605
You could try the following:
hg update
to the commit before the file was renamed.
Do an hg rename
to the new filename, and ensure the contents of the file are the same as on the main branch.
hg commit
.
hg update
to the main branch.
hg merge --tool internal:other
the new branch into the main branch.
From the merged commit onwards Mercurial should know about the rename.
Upvotes: 2