Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我从命令行调用它,我会调用(例如):
p4 撤消 //depot/myfile.txt#2
如何使用 perforce API 完成同样的事情?似乎没有用于 UNDO 的 api。
看起来您可以RunCommand在没有 API 包装器的情况下运行任意服务器命令:
RunCommand
https://www.perforce.com/manuals/p4api.net/p4api.net_reference/html/M_Perforce_P4_P4Server_RunCommand.htm