从 perforce 历史记录中删除提交的更改列表 [英] delete a submitted changelist from perforce history

查看:144
本文介绍了从 perforce 历史记录中删除提交的更改列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心向我的 perforce 服务器提交了错误的更改列表.然后我使用退出更改列表"选项退出该更改列表.但是,这两个更改会出现在所有受影响文件的历史记录中,这些文件曾经被删除然后又重新添加.

I accidentally submitted a wrong changelist to my perforce server. I then backed out that changelist using the "backout changelist" option. But, these two changes appear in the history of all those affected files that they were once deleted and then added back again.

我希望能够从这两个更改列表的 perforce 服务器中删除历史记录.是否可以.是否可以通过一些 Perforce 管理员命令来完成.

I want to be able to delete the history from perforce server of these two changelists. Is it possible. Can it be done via some Perforce administrator command.

我已经看到 p4 change -d -f 可以删除更改列表,但这需要对更改列表中的文件使用 p4 删除.这是否意味着我必须删除所有受更改列表影响的文件.这对我来说似乎不是一个可行的解决方案,因为我不想删除这些文件.由于提交了两个更改列表,我是否应该只删除文件的那两个特定修订版?

I have seen p4 change -d -f which can delete a changelist but this requires to use p4 obliterate on the files which were there in the changelist. Does this mean that I have to obliterate all the files which were affected by the changelist. This doesnt seem a viable solution for me as I do not want to delete those files. Should I only obliterate those specific two revisions of the files due to the two submitted changelists?

推荐答案

您的 perforce 管理员可以调用 p4 删除 来完全清除文件、修订和历史记录.但我强烈建议不要这样做.回滚文件/更改并查看其历史记录是一件非常正常的事情.

Your perforce administrator could call p4 obliterate to completely wipe out files, revisions and history. But I'd strongly advise not to do so. It's a perfectly normal thing to rollback files/changes and to see the history of it.

如果您仍然决定使用 p4 删除,请确保先调用它而不使用-y"选项(预览)然后(如果 perforce 所说的输出会发生的话)使用-y"选项调用相同的命令(实际执行擦除).

In case you still decide to use p4 obliterate make sure you call it without the "-y" option first (preview) and then (if the output of what perforce says will happen is ok) call the same command with the "-y" option (to actually perform the obliterate).

如果您调用带有文件修订版的 p4 删除(例如 p4 删除//depot/dir/file#5),那么只有该修订版的更改和历史记录将被删除,保留所有以前的修订和历史完整.您还可以删除修订范围.

If you call p4 obliterate with a file revision (e.g. p4 obliterate //depot/dir/file#5) then only the changes and history of that revision will be removed leaving all previous revisions and history intact. You can also obliterate a revision range.

这篇关于从 perforce 历史记录中删除提交的更改列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆