本文介绍了HG:撤消历史记录的提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个HG存储库,具有版本1、2、3、4、5和6.

I have a HG repository with revs 1, 2, 3, 4, 5 and 6.

在提交修订版4时,我不知不觉地破坏了我本不应该进行的修订3中的某些更改.在修订版6已提交之前,我没有注意到这一点.

When I committed rev 4, I unknowingly botched some changes in rev3 that I should not have. I did not notice this until rev 6 was already committed.

我需要撤消第4版的更改,然后在此之后重新应用所有其他更改.基本上撤消提交#4.我该怎么办?

I need to undo changes in rev 4, but then re-apply all other changes after that. Basically undoing commit #4. How can I do that?

推荐答案

您要 hg退出

回退通过应用与要回退的变更集相反的变更集而起作用.该新变更集将提交到存储库,并最终合并...

Backout works by applying a changeset that's the opposite of the changeset to be backed out. That new changeset is committed to the repository, and eventually merged...

这篇关于HG:撤消历史记录的提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 19:52