如何在 Perforce 中查看已删除 file/directoty 的历史记录?
How to see a history of a deleted file/directoty in Perforce?
我知道一个目录的位置和名称,后来被删除了。
我需要查看它的历史记录,或者至少是它被删除的更改列表。最好在命令行上使用 p4
.
p4 filelog //depot/<path>/deleted_dir
打印 no such file(s).
The documentation of p4 filelog mentions that deleted
is one of the possible history actions, but I don't see how do I get there. Neither does global options documentation.
如果您要查找 目录,那么您需要将“...”放在
p4 filelog //depot/<path>/deleted_dir/...
会起作用
你可能想要:
p4 changes -m1 //depot/<path>/deleted_dir/...
影响该路径的最后一个更改将是删除它的更改,因此您只需要 -m1
。
我知道一个目录的位置和名称,后来被删除了。
我需要查看它的历史记录,或者至少是它被删除的更改列表。最好在命令行上使用 p4
.
p4 filelog //depot/<path>/deleted_dir
打印 no such file(s).
The documentation of p4 filelog mentions that deleted
is one of the possible history actions, but I don't see how do I get there. Neither does global options documentation.
如果您要查找 目录,那么您需要将“...”放在
p4 filelog //depot/<path>/deleted_dir/...
会起作用
你可能想要:
p4 changes -m1 //depot/<path>/deleted_dir/...
影响该路径的最后一个更改将是删除它的更改,因此您只需要 -m1
。