gpt4 book ai didi

perforce - 如何在 Perforce 中快速查找/删除所有空的更改列表?

转载 作者:行者123 更新时间:2023-12-04 14:52:57 25 4
gpt4 key购买 nike

我想知道尝试删除提交的更改列表有什么意义,因为提交的更改列表不应该是空的。

但是后来我正在使用教程库,并在整个分支上使用清除命令,我可以看到在某些情况下,您最终会得到空的已提交更改列表(需要使用 -f 标志删除)。

但是,我不知道如何使用命令行找到它们,因为我不知道如何查找没有关联文件的更改列表。

有没有一种简单的方法可以做到这一点?

谢谢,

托马斯

最佳答案

啊!

在问这个之前我应该​​浏览更多的文档......

http://public.perforce.com/wiki/Perforce_Command_Line_Recipes

Description: Delete all empty submitted changelists.
Shell command: p4 changes -s submitted | cut -d " " -f 2 | xargs -n1 p4 change -d -f
Powershell: p4 changes -s submitted | %{p4 change -d -f $_.split()[1]}
px: px -F %change% changes -s submitted | px -X- change -d -f
Contributors: Sam Stafford, Philip Kania, Shawn Hladky



呃。

托马斯

关于perforce - 如何在 Perforce 中快速查找/删除所有空的更改列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1576850/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com