version control - How to sync multiple perforce workspaces -


i have multiple workspaces in perforce, w1, w2, w3,... different mappings may or may not point different folders in same depot(s). want write .bat file syncs them automatically , in sequence not put stress on server.

optimally, want start off automatically , have first sync w1, after it's done have sync w2, , on. assume don't have environment variables set, if they're necessary, please let me know.

how go doing this?

if don't want set p4 environment variables, use global options , this:

p4 -u <user> -p <password> -p <port> login p4 -u <user> -p <password> -p <port> -c <workspace1> sync //path/to/sync/... p4 -u <user> -p <password> -p <port> -c <workspace2> sync //other/path/... p4 -u <user> -p <password> -p <port> -c <workspace3> sync //yet/another/path/... 

if set p4user, p4passwd, , p4port p4 environment variables (see p4 set command), clean little this:

p4 login p4 -c <workspace1> sync //path/to/sync/... p4 -c <workspace2> sync //other/path/... p4 -c <workspace3> sync //yet/another/path/... 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -