If just to see how a program behave, an
hg up -r 1000
is done, while the current revision is 1020
.
Then some changes are made to 2 files, and accidentally, the files are committed.
So now there are changes made from revision 1000 to 1020, and also some changes that is from 1000 directly to 1021...
In this case, how should it be handled?
At least one possibility maybe
hg backout -r 1021
hg up tip
and make changes as if nothing happened with 1021. Is the other option to do an hg merge
and need to be careful about how the code is merged? (because all changes from 1000 to 1021 are all related to the same feature and same files). Or is there any other option besides these two?