开发者

Problem with missing files on syncing with git-p4

I'm getting a recurring issue with git-p4. On syncing wi开发者_开发技巧th git-p4 clone //depot/project/main the majority of files are synced up but there are a number of exceptions for which I can find no apparent common denominators. I created a separate Perforce workspace to use with git-p4 and globally set the properties git-p4.client to this workspace and git-p4.useclientspec to true.

On the Perforce server, we version projects as follows:

//depot/project/main

//depot/project/1.0.0

//depot/project/1.1.0

Calling p4 info gives the following version information for the Perforce installation. Summary: It's old.

Server version: P4D/NTX86/2006.2/113956 (2007/01/04)

Can anyone provide leads to debugging this issue or recommend documentation as to what versions of Perforce are supported?

Appreciate the help.


If you have a direct perforce workspace then p4 info will tell you what the version of the server is.


See my commit in this GitHub repo for a fix I had to make to git-p4 to work with an old version of p4.

Unfortunately I don't remember the details of my change. At a glance it appears to only affect git-p4 submit.


I have a similar problem- some files being not loaded for no apparent reason- although I believe that mine is caused by a partial sync interrupted by an overriding path of files to load, then a forced sync. My problem was solved by refreshing my local repository from the ground up... it takes a large chunk of time but works fine.


Because our Perforce server was running on Linux and file names were case sensitive. Any consequent CLs become case sensitive too. The git-p4 collects and applies change lists in the historical order from Perforce on the local filesystem.

When I started the git-p4.py on my Windows box from a case sensitive P4 repository and I had a change which removed a duplicate file (with diference in capitals only) it actually removed the original file because Windows doesn't distinguish it and Python doesn't know about this issue.

The simple solution was to start conversion from Linux box, which made it working just fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜