Deleting new files after a p4 revert

我只是一个虾纸丫 提交于 2019-12-04 01:58:05

I think what you're looking for is p4 revert -w. From the help:

The -w flag causes files that are open for add to be deleted from the workspace when they are reverted.

Note: I'm using the 2013.2/719516 client against a 2013.2/708877 server, in case that switch was added recently...

Edit: just reread your question - this is a workaround, perhaps not a full solution...


There is a setting in P4Win that allows you to overwrite files when unshelving:

  • Overwrite workspace files even if they are writeable

I normally use that in combination with another option (again in the gui):

  • Revert checked our files before unshelving

They solve my problem.

Looking in the console output while running this from the gui, it looks like it is the -f parameter in the unshelve command.

  • p4 unshelve -s <changelist> -f -c <changelist> <files>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!