perforce

Perforce Dev Branches - Sparse Branching vs. Private Branching

橙三吉。 提交于 2019-12-03 11:35:45
I'm looking for some feedback on the advantages and disadvantages of the methods available for creating individual development branches in a Perforce depot. If I understand correctly, there are two ways of handling this. The first is to create a Private branch, which is a complete copy of the branch that you are working on. The branch would completely stand on its own and completely isolate your changes from the target branch. The other method that I've heard recommended is Sparse branching. It is described in Practical Perforce (Chapter 9, p.242). This creates a branch, but only with the

How do I retrieve the size of a directory from Perforce?

混江龙づ霸主 提交于 2019-12-03 11:20:21
I would like to know how much disk space a directory is going to consume before I bring it over from the Perforce server. I don't see any way to do this other than getting the files and looking at the size of the directory in a file manager. This, of course, defeats the purpose. Is there a way to get file size info from Perforce without actually getting the files? I don't know how I missed this command, but here's how you do it: p4 sizes -s //depot/directory/... p4 fstat 来源: https://stackoverflow.com/questions/174322/how-do-i-retrieve-the-size-of-a-directory-from-perforce

p4 Submit aborted Error - How to resolve

*爱你&永不变心* 提交于 2019-12-03 11:19:13
A p4 check-in failed with the following error: Submit aborted -- fix problems then use 'p4 submit -c XXXX'. Some file(s) could not be transferred from client. I read another solution on the site about how incorrect filetypes might be the problem. How do I get more information regarding the error in p4? Mark Typically you will see this error on submit when there is a file in the changelist that does not exist on the client, and therefore cannot be transferred to the server. There are at least two conditions that can cause this problem:- First, Perforce allows you to add files to your changelist

In Perforce on Unix, how do you add a directory that is a symbolic link?

一个人想着一个人 提交于 2019-12-03 10:54:58
I have created a symbolic link directory in Unix and I would like to add it to perforce. (this question relates to symlinks on Unix. Windows symbolic links can have very different behaviour from Unix.) ../blah/dir1 is the source directory, which contains files that are already in Perforce dir2 is the symlink to the source directory that I want to check in ln -s ../blah/dir1 dir2 If I right-click on "dir2" in the p4v GUI, it will add every file under ../blah/dir1 as a new file (even if these files are already in Perforce) and fubar everything. If I do a "p4 add dir2" from the command line, it

Perforce for a Subversion user?

做~自己de王妃 提交于 2019-12-03 10:47:36
I've just changed jobs. My previous employer uses Subversion, my new employer uses Perforce. Are there any resources out there that'll help me, as a user , change my mental model from a Subversion one to a Perforce one? What are the analogs to common SVN commands? Which concepts are implemented differently? I'm not particularly interested in the pros and cons of Perforce vs Subversion - the decision's been made. There are plenty of other questions on S.O. covering that. I'd like to know what mental readjustment I'll have to make (or not). Perforce and Subversion are quite similar, they both

xcode4 doesn't support Perforce?

匿名 (未验证) 提交于 2019-12-03 08:42:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: xcode4 doesn't support Perforce? I add a repository in xcode4. Only subversion and Git to choose. how to add a perforce repository? thank you. 回答1: I threw together a couple of Automator services that let you bind hotkeys for p4 edit/p4 add on the currently open file in Xcode 4. It's not ideal, but it beats switching to terminal or p4v. https://github.com/jcohen/xcode4-perforce-services 回答2: It's also useful to note that there is a setting in Preferences/Behaviors to add behaviors to particular actions. One of those is Unlock File, which can

Perforce troubles “file not under client's root” error message

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am adding a project to perforce via VS2010 but I keep getting this error 'file' not under client's root for all the files in the project. I can't seem to figure this out. Here is what I am doing: 1) Open VS2010 project which is not in perforce yet. 2) I select add the solotion to perforce (from File > Source Control > Add Solution menu). 3) I select a new workspace. It brings up the properties of the workspace. The root folder is default to c:\Users\My.Name. I change this to the folder where my project is. I also change the view so it

git-p4 migrate branches in different subdirectories

喜你入骨 提交于 2019-12-03 08:22:45
I want to migrate source code tree from perforce to git. The source code contains several dev branches scattered across perforce depot, not necessarily in the same directory. for example the structure is something like this - //depot/dev/project/master //depot/dev/project/branch1 //depot/dev/project/branch2 //depot/dev/sub-project/branch3 //depot/dev/sub-project/branch4 //depot/patch-project/branch5 //depot/patch-project/special/developern/branch6 I went though git-p4 documentation https://git-scm.com/docs/git-p4 BRANCH DETECTION section and also similar articles http://forums.perforce.com

Get the changelist number of current workspace directory

心已入冬 提交于 2019-12-03 05:40:30
问题 Each time we do a build, we have to record the changelist number of source files for tracking. We have different projects (under different directories) and they are synced at different changelist number. May you please show me how can we get the changelist number of a specific directory? Any suggestions are appreciated. Thanks and Best Regards 回答1: Also, there's p4 changes -m1 //path/to/your/project/...#have which, if run in the client workspace that synced the files for building, will give

How can I grab my local changelist and send it to someone else in Perforce?

狂风中的少年 提交于 2019-12-03 05:28:42
How can I grab my local changelist and send it to someone else in Perforce? More specifically, I would like to send unsubmitted changes from a local pending changelist to another user's pending changelist. set P4DIFF=C:\cygwin\bin\diff.exe p4 diff -du -c 12345 > patch-to-head.diff # On Other machine patch -p1 < patch-to-head.diff I may be wrong on the env var there, and you might have to do some fixups on the diff file, but the general idea is that you generate a GNU Unified Diff, that you can send to people that can use GNU patch to apply it. P4 now has native support for the shelve operation