首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在P4Python中撤消更改列表

在P4Python中撤消更改列表
EN

Stack Overflow用户
提问于 2020-04-27 16:51:26
回答 1查看 63关注 0票数 0

我在使用p4python撤消Perforce中的更改时遇到了一个问题,因为我已经汇总了我现在想要撤消的更改列表。我的想法是首先创建一个更改列表,然后运行撤消。然而,我做了一些错误的事情,文件没有被撤销。

代码语言:javascript
复制
# 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)

会有任何帮助。谢谢。

EN

回答 1

Stack Overflow用户

发布于 2020-05-11 22:13:06

undo命令不接受description参数。

代码语言:javascript
复制
C:\Perforce\test>p4 help undo

    undo -- Undo a range of revisions

    p4 undo [-n] [-c changelist#] file[revRange]
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61455028

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档