How can I back out a merge in Mercurial and later remerge with that branch?

前端 未结 6 809
误落风尘
误落风尘 2021-01-30 10:33

I have two branches, default and branch1. By mistake one person in our team merged branch1 with default. The content in branch1 is not yet ready to merge with default (it contai

6条回答
  •  长情又很酷
    2021-01-30 11:01

    Thanks to everyone for the great input! Since we were kind of in a rush to solve the problem, and our group is relatively new to Mercurial, we used a very pragmatic solution.

    On our repository server we created a new repository, then we cloned the old repository up until the revision right before the merge. Then pushed the new clone to the server and sent out the new link to everyone. Luckily we are a quite small development team.

    Perhaps not the most cosher way to solve the problem, but it worked :)

提交回复
热议问题