OS: Windows 7 64-bit
P4V 2011.1 version + P4 command line client comes with P4V
I've created a client on my "D:\Perforce\Client1 directory" with P4V and synced all files. When using p4 command line tool to check the same directory (using command: p4 client or p4 opened). It seems p4 is using a client named < my computer name >, not the client I created via p4v. I also verified this again by right click on the directory in Explorer and go to "Perforce > Connection Info" in the context menu. The client name shows < my computer name >, not "Client1".
Is there any way to make p4 having the same setting that p4v has.
Use the p4 info command to display the root being used. This enables users to use the same Perforce client workspace specification on multiple platforms, even those with different directory naming conventions.
To specify the effective workspace, set P4CLIENT . The client workspace root is the top directory of your client workspace, where Helix Server stores your working copies of depot files. Be sure to set the workspace root, or you might inadvertently sync files to your computer's root directory.
Your Perforce client spec defines your workspace location, the depot files you plan to work with, and their location in your workspace when you invoke Perforce commands. When you work with P4Web, all workspaces reside on the machine where P4Web is running.
The p4 command line is sensitive to client settings that are stored using the 'p4 set' command, or in a P4CONFIG file; the P4V tool stores connection information in P4V preferences files. To get them to use the same settings, you need to run the appropriate 'p4 set' commands to set P4CLIENT, etc. http://www.perforce.com/perforce/doc.current/manuals/cmdref/set.html
UPDATE: The documentation URLs seem to have changed again, try: https://www.perforce.com/perforce/doc.current/manuals/cmdref/Content/CmdRef/p4_set.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With