如何对同一字符串中的两个文件执行 p4 同步
How do you perform p4 sync on two files in the same string
这是我的命令,但我只同步了一个文件。我可以用逗号分隔它们还是有更好的方法
syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg "]
例如:
def pullfile():
syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg, File2.cfg "]
同步命令接受多个文件参数:
def pullfile(): syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg", "//depot/proj1/...File2.cfg"]
这是我的命令,但我只同步了一个文件。我可以用逗号分隔它们还是有更好的方法
syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg "]
例如:
def pullfile():
syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg, File2.cfg "]
同步命令接受多个文件参数:
def pullfile(): syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg", "//depot/proj1/...File2.cfg"]