我在使用p4python撤消Perforce中的更改时遇到了一个问题,因为我已经汇总了我现在想要撤消的更改列表。我的想法是首先创建一个更改列表,然后运行撤消。然而,我做了一些错误的事情,文件没有被撤销。
# new_cl is the created changelist
# cl_to_undo is the changelist to undo.
# description is string
P4.run("undo", '-c'+new_cl, filePath+"@" + cl_to_undo, description)
# Submit
P4.submit(new_cl)会有任何帮助。谢谢。
发布于 2020-05-11 22:13:06
undo命令不接受description参数。
C:\Perforce\test>p4 help undo
undo -- Undo a range of revisions
p4 undo [-n] [-c changelist#] file[revRange]https://stackoverflow.com/questions/61455028
复制相似问题