Perforce 协调命令无法识别打开以进行编辑但已删除的文件
Perforce reconcile command doesn't recognize files opened for edit that were deleted
场景:
我有一个由外部工具生成的文件文件夹,我们将其检查到 Perforce 中以进行修订控制,但是我们无法提前知道它何时会从该文件生成 add/remove 文件结构。
所以今天我们的工作流程是检出整个目录,然后让工具重新生成所有 files/hierarchy。当我 运行 协调命令成功找到新文件时,但找不到已删除的文件。
有没有更好的方法来处理这个问题?
将您的 Perforce 服务器升级到 2014.2:
http://www.perforce.com/perforce/doc.current/user/relnotes.txt
Minor new functionality in 2014.2
#841159 **
'p4 reconcile' will now detect files that are open for edit but
missing from the client, and reopen them for delete.
解决方法是在 "p4 reconcile" 之前执行 "p4 revert -k",以便它从头开始。 “-k”选项告诉 revert 忘记文件打开但不实际撤消本地更改。
如果您已经虔诚地使用 "p4 reconcile",那么修改后的工作流程可能更有意义,即跳过 "p4 edit" 并使用 "allwrite" 客户端规范选项或“+ w" 文件类型修饰符使文件可写。
场景:
我有一个由外部工具生成的文件文件夹,我们将其检查到 Perforce 中以进行修订控制,但是我们无法提前知道它何时会从该文件生成 add/remove 文件结构。
所以今天我们的工作流程是检出整个目录,然后让工具重新生成所有 files/hierarchy。当我 运行 协调命令成功找到新文件时,但找不到已删除的文件。
有没有更好的方法来处理这个问题?
将您的 Perforce 服务器升级到 2014.2:
http://www.perforce.com/perforce/doc.current/user/relnotes.txt
Minor new functionality in 2014.2
#841159 **
'p4 reconcile' will now detect files that are open for edit but
missing from the client, and reopen them for delete.
解决方法是在 "p4 reconcile" 之前执行 "p4 revert -k",以便它从头开始。 “-k”选项告诉 revert 忘记文件打开但不实际撤消本地更改。
如果您已经虔诚地使用 "p4 reconcile",那么修改后的工作流程可能更有意义,即跳过 "p4 edit" 并使用 "allwrite" 客户端规范选项或“+ w" 文件类型修饰符使文件可写。