我想编写一些 p4 脚本。不幸的是,我们正在跟踪的某些文件名在文件名中包含“@”。

文件名的格式为 a@b.xml 。如果我尝试在 Mac 上执行类似 p4 sync a\@b.xml 的操作(或在 Windows 上执行 p4 sync a@b.xml ),则会出现错误:

无效的变更列表/客户端/标签/日期 '@b.xml'

有没有另一种方法可以逃避它,perforce 会识别?

最佳答案

是的。使用字符的十六进制值的 ASCII 表达式。
p4 sync a%40b.xml
请参阅这篇文章: Limitations on characters in filenames and entities

关于scripting - @ 在 p4 文件名中,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/2923874/

10-14 17:17
查看更多