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

Zen*_*aro 25 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/*
Run Code Online (Sandbox Code Playgroud)

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

use*_*341 55

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

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

  • 多谢!这解决了问题,现在我所有的变更列表都可以提交了!我真的不知道这些工作区和流的东西,也不知道如何排除故障...谷歌也提供很少的帮助..真的非常感谢你的帮助.. (2认同)
  • 这几乎是另一个问题,但为什么第一次用户会发生这种情况呢?我其实很讨厌这个功能。我在没有流的情况下使用 P4 已经很多年了,流除了问题之外什么也没有造成(大多数像这样的小问题,但也有一些主要的问题) (2认同)