yellowman0021
yellowman0021

Reputation: 23

How do you perform p4 sync on two files in the same string

Here is my command but i'm only syncing one file. Can I seperate them by comma or is there a better way

syncCommand = ["p4", "-c", workspace_name, "sync",  "//depot/proj1/...File1.cfg "]

For example :

def pullfile(): 
syncCommand = ["p4", "-c", workspace_name, "sync",  "//depot/proj1/...File1.cfg, File2.cfg "]

Upvotes: 2

Views: 487

Answers (1)

Samwise
Samwise

Reputation: 71454

The sync command accepts multiple file arguments:

def pullfile(): syncCommand = ["p4", "-c", workspace_name, "sync", "//depot/proj1/...File1.cfg", "//depot/proj1/...File2.cfg"]

Upvotes: 1

Related Questions