views:

25

answers:

1

I'm new to mercurial, so may be my question is stupid. Let say you made a mistake when you first started working on your code. For example, you putted

instead of

Now you want to change this, but not only to the latest revision, but to all revisions and versions of your page. Is this possible?

A: 

Omar, mercurial is about an immutable, historical record of you work. You can/should fix your error in all the heads, but it stays in history forever like a scientist's logbook.

There are plenty of ways to go about Editing History including histedit, convert, mercurial queues, and import/export/transplant, but none of them a strictly speaking Mercurial as it should be used, and all of them alter the hashids for all subsequent changesets which breaks the clones of anyone else working on the project.

Short answer: If at all possible make your peace with keeping the old data in history and correct it in a new revision.

Ry4an