gpt4 book ai didi

perforce - Perforce 可以删除版本条目(如 ClearCase Destroy)吗?

转载 作者:行者123 更新时间:2023-12-03 06:41:31 31 4
gpt4 key购买 nike

我在 Perforce 中提交了变更列表,但我忘记先从列表中删除几个文件。我想撤消这些更改。我知道 Perforce 允许我“回滚”——但这只是向文件提交了另一个更改,使我的分支变得困惑。这是我根本不想更改的文件。当我重新集成到基线中时,该文件显示为需要集成(即使它与基线上的文件相同)。

在 Clearcase 中,我能够简单地对文件的特定版本发出“销毁”命令,将其从存储库中删除,就好像从未有过一样(是的,我意识到从修订控制的角度来看这很可怕- 我了解风险)。

Perforce 中有等效的命令吗?或者我试图做一些明确禁止的事情?

最佳答案

<强> Perforce obliterate 应该很好地等同于 cleartool rmver

p4 obliterate -y file#3,5

Obliterate revisions 3, 4, and 5 of file.

If #5 was the head revision, the new head revision is now #2, and the next revision will be #3.
If #5 was not the head revision, the head revision remains unchanged.

关于perforce - Perforce 可以删除版本条目(如 ClearCase Destroy)吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2723543/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com