根据p4 help revert
,我得到:
The -w flag causes files that are open for add to be deleted from the
workspace when they are reverted.
但是,当我尝试使用-w时,我得到以下内容:
> p4 revert -w ./dir1/newfile.c
//depot/test/dir1/newfile.c#1 - was add, reverted
> ls ./dir1/newfile.c
./dir1/newfile.c
我错过了什么,或者这是p4中的错误? (注意:我的版本如下):
Proxy version: P4P/LINUX26X86_64/2014.2/1099171 (2015/06/16)
答案 0 :(得分:0)
“p4 revert”仅撤消尚未提交的操作。 它不会从磁盘中删除该文件。您应该在还原后单独删除该文件。