Search code examples
mercurialtortoisehg

how to rollback a branch merge in mercurial


enter image description hereI have merged my development branch with production by mistake. I haven't made it public, please let me know how can I revert back this merge ? I am using TortoiseHG workbench.


Solution

  • You can just strip the commit that did the merge, assuming it's the last one. Right-click, Modify History -> Strip.

    If it's more complex that that, post more detail (e.g. screenshot of the graph) and I'll try to help.