Perforce:命令行列出标记为删除的文件

发布于 2025-01-06 20:18:40 字数 171 浏览 0 评论 0原文

我的工作区中有标记为删除的文件(但尚未提交)。现在我希望它们在命令行中列出。我尝试过以下命令但没有成功。

p4 diff -sd "C:\myworkspace\..."

我在 diff 命令中找不到任何选项来列出标记为删除的文件。是另一个命令,还是隐藏选项?

I have files that are marked for delete in my workspace (but not yet submitted). Now I want them to be listed at command line. I have tried the following command without success.

p4 diff -sd "C:\myworkspace\..."

I could not find any option in the diff command to list files that are marked for delete. Is it another command, or a hidden option?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

眉目亦如画i 2025-01-13 20:18:40

您正在寻找的命令是p4打开

C:\Proj\test>p4 opened
//depot/Test/_header.txt#5 - delete default change (text)
//depot/Test/personnel_updates.sql#1 - add default change (text)

您会可能想要过滤输出以仅包含标记为删除的文件(您可以看到我在默认更改列表上有添加和删除)。

C:\Proj\test>p4 opened | findstr " - delete "
//depot/Test/_header.txt#5 - delete default change (text)

注意:如果您已将更改放在编号更改列表中,则还可以使用 -c 参数指定特定更改列表。

The command you are looking for is p4 opened

C:\Proj\test>p4 opened
//depot/Test/_header.txt#5 - delete default change (text)
//depot/Test/personnel_updates.sql#1 - add default change (text)

You would probably want to filter the output to only include the files as marked for delete (you can see I have an add and delete on the default changelist).

C:\Proj\test>p4 opened | findstr " - delete "
//depot/Test/_header.txt#5 - delete default change (text)

Note: You can also use the -c parameter to specify a certain changelist if you have placed your changes on a numbered changelist.

仙女 2025-01-13 20:18:40

或者你可以使用fstat

p4 fstat -Ro -F "action=delete" -T depotFile,clientFile //...

Or you could use fstat:

p4 fstat -Ro -F "action=delete" -T depotFile,clientFile //...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文