Perforce - transition to the workspace from the command line

I am asking how to switch from client1 to client2 where client1 belongs to stream1 and client2 belongs to stream2.

What I'm looking for is to do the same thing as in p4v, and then right-click on the workspace and select "go to workspace"

Please note that if your current workspace is client1 and you use:

p4 client -s -S //DEPOT/stream2

or

p4 client -s S //DEPOT/stream2 client2

it will not change the workspace in the p4v GUI.

Any idea?

Thank!

+4
source share
1 answer

There are several different concepts here.

You can have one workspace, or you can have several workspaces.

, .

, , "client -s" , . , , . Perforce (2015.1+) "p4 switch", .

"client -s" , .

, sync'd, . , , , "p4", , P4CLIENT "-c" . :

p4 -c client1 sync

p4 -c client2 sync

p4 client1, client2. :

p4 set P4CLIENT=client1
p4 sync

p4 set P4CLIENT=client2
p4 sync

( ).

P4V, , " ", , , P4CLIENT , P4V " " ".

, , P4V , , P4V , , : http://www.perforce.com/blog/100114/p4v-secrets-calling-p4v-command-line

, new P4V , , P4V.

, , - Windows GUI, Autoit (https://www.autoitscript.com/site/), script, "" " ..." "".

+9

All Articles