p4 edit 打开几个文件
我的“p4 edit”命令有问题,它为我打开两个文件,当我尝试提交更改时,这会造成混乱。 以下是 p4 edit 的示例输出:
p4 edit //depot/project/myproject/Test.java
//depot/project/myproject/Test.java#24 - current opening for edit //depot/project/myproject/Test.java#20 - 当前打开进行编辑
我无法弄清楚为什么会发生这种情况,我唯一的想法是检查我是否有错误的客户端规范,但它是正确的。我将一个软件仓库文件夹映射到一个客户端文件夹。
问候,维克多
I have a problem with "p4 edit" command, it opens two files for me which creates mess when I try to submit my changes.
Here is example output of p4 edit:
p4 edit //depot/project/myproject/Test.java
//depot/project/myproject/Test.java#24 - currently opened for edit
//depot/project/myproject/Test.java#20 - currently opened for edit
I can not figure out why this happens, only idea I have is to check if I have wrong client specification, but it is correct. I map one depot folder to exactly one client folder.
Regards, Victor
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可能以某种方式将 Test.java 的两个副本映射到 Perforce 工作区中的不同本地文件。要测试这个理论,请运行
然后,如果您在不同的目录中有两个版本,请运行
并编辑客户端中的路径,以便仅将 //depot/project/myproject/ 映射到单个本地目录。
I think you might have somehow got two copies of Test.java mapped to different local files in your Perforce workspace. To test this theory, run
Then, if you do have two versions in different directories, run
and edit the paths in your client so that you only map //depot/project/myproject/ to a single local directory.