为了从某个CL进行分支,并将其作为更改列表,我意识到Perforce使用了copy关键字。我尝试使用相同的关键字,但得到一个错误,指出选项无效。以下是我的代码:
result = self.p4.run("copy","-c" + change_List,"-F", Path_1+"/...@"+ CL, Path_2+"/...")我做错了什么吗?有人能给我解释一下我的代码中错误的部分是什么吗?
发布于 2020-05-11 23:06:47
查看p4 copy的使用信息
C:\Perforce\test>p4 help copy
copy -- Copy one set of files to another
p4 copy [options] fromFile[rev] toFile
p4 copy [options] -b branch [-r] [toFile[rev] ...]
p4 copy [options] -b branch -s fromFile[rev] [toFile ...]
p4 copy [options] -S stream [-P parent] [-F] [-r] [toFile[rev] ...]
options: -c changelist# -f -n -v -m max -q没有任何形式的命令接受多个文件参数和一个-F标志。-F标志仅适用于使用流的情况,因为它的目的是允许您覆盖两个流的已定义“流”。
https://stackoverflow.com/questions/61730194
复制相似问题