add p4 多个文件_Perforce解决方法使用’@’添加文件

您可以在其中添加包含Perforce通配符的文件.作为’p4 help add’页面文档:

To add files with filenames that contain wildcard characters,

specify the -f flag. Filenames that contain the special characters

‘@’, ‘#’, ‘%’ or ‘*’ are reformatted to encode the characters using

ASCII hexadecimal representation. After the files are added, you

must refer to them using the reformatted file name, because Perforce

does not recognize the local filesystem name.

从那时起使用编码的’@’统一引用文件名的要求很烦人,我同意,但它确实有效.

这是一个简短的例子:

$touch 'carbon-fiber-@2X.png'

$p4 add 'carbon-fiber-@2X.png'

The file named 'carbon-fiber-@2X.png' contains wildcards [@#%*].

Can't add filenames with wildcards [@#%*] in them.

Use -f option to force add.

$p4 add -f 'carbon-fiber-@2X.png'

//depot/carbon-fiber-%402X.png#1 - opened for add

/path/to/carbon-fiber-@2X.png - empty, assuming text.

$p4 submit -d added-carbon-fibre

Submitting change 2.

Locking 1 files ...

add //depot/carbon-fiber-%402X.png#1

Change 2 submitted.

$p4 files //...

//depot/carbon-fiber-%402X.png#1 - add change 2 (text)

$p4 fstat //depot/carbon-fiber-%402X.png

... depotFile //depot/carbon-fiber-%402X.png

... clientFile /path/to/carbon-fiber-@2X.png

... isMapped

... headAction add

... headType text

... headTime 1466547058

... headRev 1

... headChange 2

... headModTime 1466547033

... haveRev 1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值