是否有可能获得一个fstat (或任何其他命令)来返回用户当前工作区中不存在的所有“现有”文件(未删除/存档/等)的列表?
理想情况下,示例应该在python中,但是标准的p4命令也可以。
发布于 2022-02-21 23:30:48
假设您指的是以前同步但已从工作区中删除的文件,则这方面的标准命令是p4 diff -sd。
diff -- Display diff of client file with depot file
p4 diff [-d<flags> -f -m max -Od -s<flag> -t] [file[rev] ...]
...
The -s options lists the files that satisfy the following criteria:
...
-sd Unopened files that are missing on the client.您还可以使用p4 reconcile -n -d、p4 status -d等。
如果你只是在寻找还没有同步的文件,那就是p4 sync -n。列出为added的文件是工作空间中完全缺失的文件,因此将由sync添加到其中。
https://stackoverflow.com/questions/71214193
复制相似问题