2012-10-04 29 views
24

來自GIT和SVN背景,我已經在Windows中設置了我的P4V,設法將我的存儲庫的內容放入我的本地文件夾(不知何故),但是一旦我修改並在我的本地文件夾中創建新文件,我不能將它提交給Perforce。它給出的錯誤: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公司\內核錯誤\主\ SRC以及... 請幫幫忙,我不能瞭解Perforce。我試着在修改之前或之後進行檢查,但兩種方法都無法將更改提交到服務器。我很想堅持GIT,但我們的客戶使用Perforce,所以我們必須與他們打好關係。非常感謝你的幫助!

+0

你如何提交?從P4V或命令行?你的文件在哪裏?看起來你正在嘗試提交更改列表中沒有文件。 – ChrisF

+0

順便說一下,Perforce剛剛發佈了'Git Fusion',這是一款新產品,可以讓您克隆用於存儲在Perforce服務器中的文件的git repo。還有git-p4。這些都可能讓你堅持使用git,至少在你的最後。 – user1054341

+0

@ChrisF:我已經嘗試了P4V和命令行,兩者都不起作用。我的問題就像user1054341提供的答案。可悲的是,我不明白perforce和無法弄清事情 – Zennichimaro

回答

47

P4V可能已經引導您創建一個流庫和一個主線,但卻爲您創建了一個非流工作區。從我聽說的情況來看,由於設置中的某些原因,這可能會發生在第一次使用P4V的用戶身上。

要查看是否有問題,請轉至連接/編輯工作區並查看「流」字段。它是空的嗎?如果是這樣,請使用瀏覽選擇流。這會將當前工作區變成流工作區。

+0

這聽起來更可能是錯誤的原因。 – Dennis

+0

非常感謝!這解決了問題,現在我所有的修改表都可以提交!我真的不知道這些工作區和流thingy,並沒有想法排除故障... Google也提供了很少的幫助..真的很感謝您的幫助.. – Zennichimaro

+0

這幾乎是另一個問題,但爲什麼會發生這種情況時間用戶如此之多?我其實討厭這個功能。我已經使用了P4多年沒有流,並且流只造成了問題(最小的是這樣的,但一些主要的) –