Perforce 错误 - 无法从非流客户端提交 [英] Perforce error - cannot submit from non-stream client

查看:504
本文介绍了Perforce 错误 - 无法从非流客户端提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自 GIT 和 SVN 背景,我已经在 Windows 中设置了我的 P4V,设法将我的存储库的内容放入我的本地文件夹(以某种方式),但是一旦我进行了修改并在我的本地文件夹中创建了新文件,我无法将其提交回 Perforce.它给出了错误:

Coming from GIT and SVN background, I've set up my P4V in windows, managed to get the content of my repository into my local folder (somehow), but once I made modification and create new files in my local folder, I cant submit it back to Perforce. It gives error:

//depot/main/p4config.txt - 警告:不能从非流客户端提交没有要提交的文件.提交失败 -- 解决上面的问题,然后使用 'p4 submit -c 6'.

//depot/main/p4config.txt - warning: cannot submit from non-stream client No files to submit. Submit failed -- fix problems above then use '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,所以我们必须与他们相处融洽.非常感谢您的帮助!

If possible, I'd like to add the files in C:\Perforce\kernelpanic\main\src as well... Please help, I can't understand Perforce. I've tried doing a check out both before or after making modification, but both ways also failed to submit the change to server. I'd love to stick to GIT but our client is using Perforce so we have to play nice with them. Thanks a lot for your help!

推荐答案

可能是 P4V 引导您创建了流仓库和主线,但不知何故为您创建了非流工作区.据我所知,由于设置中的某些原因,首次使用 P4V 的用户可能会发生这种情况.

It's possible that P4V has guided you to create a stream depot and a mainline, but has somehow created a non-stream workspace for you. From what I've heard, that's likely to happen for first-time P4V users due to something in the setup.

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

To see if that's the problem, go to Connection/Edit Workspace and look in the 'Stream' field. Is it empty? If so, use Browse to select the stream. This will turn your current workspace into a stream workspace.

这篇关于Perforce 错误 - 无法从非流客户端提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆