这是我的命令,但我只同步一个文件。我可以用逗号分隔它们,还是有更好的方式
syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg "]
例如:
def pullfile():
syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg, File2.cfg "]
答案 0 :(得分:1)
sync命令接受多个文件参数:
def pullfile(): syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg", "//depot/proj1/...File2.cfg"]