Let's suppose it was performed merge with "Discard all changes from merge ..." option, bu accident.
And this wrong commit has been committed into the "central" repository.
How to deal with this case if I need to merge in correct way the branch changes?
Commands to reproduce the case:
hg init mr
cd mr
echo "123" > file.txt
hg add
hg ci -m "initial"
hg branch br
echo "234" >> file.txt
hg ci -m "in branch"
hg up default
echo "567" >> file.txt
hg ci -m "in default"
After these commands open tortoisehg, and merge 2nd revision (default head) with br
branch with "Discard ..." option.
UPD:
It is a question about doing the opposite How to merge to get rid of head with Mercurial command line, like I can do with TortoiseHg? ;-)
But still cannot find how to revert that step :-(