在 perforce 客户端创建中将主机覆盖为 null [英] Override host to null in perforce client creation

查看:62
本文介绍了在 perforce 客户端创建中将主机覆盖为 null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

p4 client -o -t old_client new_client

我想从 perforce 规范中删除 Host 变量.我尝试使用

I want to remove the Host variable from the perforce spec. I tried to override the Host value using

p4 -H '' client -o -t old_client new_client

但仍然使用 p4 info 命令中的 Host 信息创建 perforce 客户端.知道如何删除 Host 参数.我正在以编程方式执行此操作.因此,打开客户端文件并删除 Host 对我不起作用.

but still the perforce client is getting created taking the Host info from p4 info command. Any idea how I can remove Host parameter. I am doing this programatically. So, opening the client file and removing Host wont work for me.

推荐答案

要从工作区规范中删除 Host 字段,请执行以下操作:

To remove the Host field from the workspace spec, do:

p4 client -o -t old_client new_client | grep -v Host: | p4 client -i

也就是说,在将客户端表单提交回服务器之前,只需 grep 出 Host 字段.

That is, simply grep out the Host field before submitting the client form back to the server.

这篇关于在 perforce 客户端创建中将主机覆盖为 null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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