Perforce升级后的未知字段名称“SubmitOptions”

时间:2011-05-20 18:43:51

标签: perforce perforce-client-spec

我刚刚从Windows 2003 Perforce 2009.2安装迁移/升级到Windows 2008 R2 2010.2框,并注意到升级后,似乎唯一的问题是无法从UI创建/编辑工作区 - 因为它尝试设置SubmitOptions参数并抛出

Error at line 0 of field 'SubmitOptions' in client specification.
Unknown field name 'SubmitOptions'.

是的,我可以使用p4 client创建/编辑客户端规范,只要我不尝试包含SubmitOptions参数。

据我所知,升级的所有方面都成功了(p4d替换,p4d -xu升级数据库,许可证到位等等。)

有什么想法吗?没有在网上找到这个问题的耳语(我的Google-fu非常好......)

更新 p4 spec -o client的输出(我删除了所有评论)

# A Perforce Spec Specification.
Fields:
    301 Client word 32 key
    302 Update date 20 always
    303 Access date 20 always
    304 Owner word 32 optional
    305 Host word 32 optional
    306 Description text 128 optional
    307 Root line 64 required
    308 AltRoots llist 64 optional
    309 Options line 64 optional
    310 LineEnd select 12 optional
    311 View wlist 64 optional

Words:
    View 2

Formats:
    Client 1 normal
    Update 2 L
    Access 4 L
    Owner 3 R
    Host 5 R
    LineEnd 0 L

Values:
    Options noallwrite/allwrite,noclobber/clobber,nocompress/compress,unlocked/locked,nomodtime/modtime,normdir/rmdir
    LineEnd local/unix/mac/win/share

1 个答案:

答案 0 :(得分:4)

最后,向客户端规范提交以下新增内容解决了问题:

Fields:
    313 SubmitOptions select 25 optional
    314 Stream line 64 optional
Formats:
    SubmitOptions 0 L
Values:
    SubmitOptions submitunchanged/submitunchanged+reopen/revertunchanged/revertunchanged+reopen/leaveunchanged/leaveunchanged+reopen

我将这些添加到之前的值并使用

的组合提交了更改
p4 configure set spec.custom=1

p4 spec -i client < fixedp4clientspec.txt

第一个命令是必需的,因为我在没有它的情况下尝试更新规范时收到错误"Custom spec of type 'client' is not allowed. Set spec.custom=1 to override."。而且我实际上并不知道需要使用314行来解决这个问题,但有人建议在与其他地方有效的规范进行分歧时。

感谢您的帮助!