Perforce错误 - 无法从非流客户端提交

时间:2012-10-04 16:27:42

标签: perforce

来自GIT和SVN背景,我在windows中设置了我的P4V,设法将我的存储库的内容放到我的本地文件夹中(不知何故),但是一旦我修改并在我的本地文件夹中创建新文件,我无法将其提交给Perforce。它给出了错误:

// depot / main / p4config.txt - 警告:无法从非流客户端提交 没有要提交的文件。 提交失败 - 修复上面的问题然后使用'p4 submit -c 6'。

我的软件仓库层次结构:

C:\Perforce\kernelpanic\main>p4 client -S //depot/main -o
# A Perforce Client Specification.
#
#  Client:      The client name.
#  Update:      The date this specification was last modified.
#  Access:      The date this client was last used in any way.
#  Owner:       The user who created this client.
#  Host:        If set, restricts access to the named host.
#  Description: A short description of the client (optional).
#  Root:        The base directory of the client workspace.
#  AltRoots:    Up to two alternate client workspace roots.
#  Options:     Client options:
#                      [no]allwrite [no]clobber [no]compress
#                      [un]locked [no]modtime [no]rmdir
#  SubmitOptions:
#                      submitunchanged/submitunchanged+reopen
#                      revertunchanged/revertunchanged+reopen
#                      leaveunchanged/leaveunchanged+reopen
#  LineEnd:     Text file line endings on client: local/unix/mac/win/share.
#  ServerID:    If set, restricts access to the named server.
#  View:        Lines to map depot files into the client workspace.
#  Stream:      The stream to which this client's view will be dedicated.
#               (Files in stream paths can be submitted only by dedicated
#               stream clients.) When this optional field is set, the
#               View field will be automatically replaced by a stream
#               view as the client spec is saved.
#
# Use 'p4 help client' to see more about client views and options.

Client: kernelpanic

Update: 2012/10/04 15:35:16

Access: 2012/10/04 15:59:39

Owner:  me.kernelpanic

Host:   kernelpanic

Description:
        Created by me.kernelpanic.

Root:   C:/Perforce/kernelpanic

Options:        noallwrite noclobber nocompress unlocked nomodtime normdir

SubmitOptions:  submitunchanged

LineEnd:        local

View:
        //depot/... //kernelpanic/...
        //depot/main/doc/... //kernelpanic/main/doc/...
        //depot/* //kernelpanic/*
        //depot/main/* //kernelpanic/main/*

如果可能的话,我想在C:\ Perforce \ kernelpanic \ main \ src中添加文件...... 请帮忙,我无法理解Perforce。我在修改之前或之后尝试过检查,但两种方式都无法将更改提交给服务器。我很想坚持使用GIT,但我们的客户正在使用Perforce,因此我们必须与他们合作。非常感谢你的帮助!

1 个答案:

答案 0 :(得分:54)

P4V可能已经引导您创建流库和主线,但以某种方式为您创建了非流工作区。据我所知,由于设置中的某些内容,第一次使用P4V的用户可能会发生这种情况。

要查看是否存在问题,请转到“连接/编辑工作区”并查看“流”字段。它是空的吗?如果是这样,请使用“浏览”选择流。这会将您当前的工作区变为流工作区。