Perforce p4命令行使用的客户端与p4v中使用的客户端不同 [英] Perforce p4 command line is not using same client as the one used in p4v

查看:877
本文介绍了Perforce p4命令行使用的客户端与p4v中使用的客户端不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

操作系统:Windows 7 64位

OS: Windows 7 64-bit

P4V 2011.1版本+ P4命令行客户端随附P4V

P4V 2011.1 version + P4 command line client comes with P4V

我已经在P4V的"D:\ Perforce \ Client1目录"上创建了一个客户端,并同步了所有文件.使用p4命令行工具检查同一目录时(使用命令: p4客户端 p4已打开).看来p4正在使用名为<我的计算机名称> ,而不是我通过p4v创建的客户端.我还通过右键单击资源管理器中的目录并在上下文菜单中转到"Perforce>连接信息"再次验证了这一点.客户端名称显示<我的计算机名称> ,而不是" Client1 ".

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".

有什么方法可以使p4具有与p4v相同的设置.

Is there any way to make p4 having the same setting that p4v has.

推荐答案

p4命令行对使用'p4 set'命令或P4CONFIG文件存储的客户端设置敏感. P4V工具将连接信息存储在P4V首选项文件中.要使它们使用相同的设置,您需要运行适当的"p4 set"命令来设置P4CLIENT等.

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

更新:文档URL似乎再次更改,请尝试: https://www.perforce.com/perforce/doc.current/manuals/cmdref/Content/CmdRef/p4_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

这篇关于Perforce p4命令行使用的客户端与p4v中使用的客户端不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆