如何查找文件是否由 perforce 管理?
How do I find if a file is managed by perforce?
如何确定文件是否由 perforce 管理?
我试过了
p4 status myfile
但我得到了
myfile - reconcile to add //repo/myfile
阅读您收到的消息的另一种方法是 "this file is not managed by Perforce; run reconcile to add it"。所以你 运行 是正确的命令;只需将 "reconcile to add" 解释为 "this file has not yet been added".
另一个选项是 "p4 files myfile",如果文件不在 Perforce 中,它将 return "no such file",如果是,将 return 有关 depot 文件的信息。几乎所有报告文件信息的 Perforce 命令都可用于确定特定文件是否由 Perforce 管理,因为如果不是,它们都会 return 按照这些行进行操作。
如何确定文件是否由 perforce 管理?
我试过了
p4 status myfile
但我得到了
myfile - reconcile to add //repo/myfile
阅读您收到的消息的另一种方法是 "this file is not managed by Perforce; run reconcile to add it"。所以你 运行 是正确的命令;只需将 "reconcile to add" 解释为 "this file has not yet been added".
另一个选项是 "p4 files myfile",如果文件不在 Perforce 中,它将 return "no such file",如果是,将 return 有关 depot 文件的信息。几乎所有报告文件信息的 Perforce 命令都可用于确定特定文件是否由 Perforce 管理,因为如果不是,它们都会 return 按照这些行进行操作。