perforce

Perforce Dev Branches - Sparse Branching vs. Private Branching

余生颓废 提交于 2019-12-04 18:03:59
问题 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.

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

情到浓时终转凉″ 提交于 2019-12-04 17:26:18
问题 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? 回答1: I don't know how I missed this command, but here's how you do it: p4 sizes -s //depot/directory/... 回答2: p4 fstat 来源: https:/

Perforce for a Subversion user?

只愿长相守 提交于 2019-12-04 15:49:40
问题 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

git-p4 submit fails with “Not a valid object name HEAD~261”

£可爱£侵袭症+ 提交于 2019-12-04 13:35:14
I've got a git repository that I'd like to mirror to a Perforce repository. I've downloaded the git-p4 script (the more recent version that doesn't give deprecation warnings), and have been working with that. I've figured out how to pull changes from Perforce, but I'm getting an error when I try to sync changes from the git repo back. Here's what I've done so far: git clone git@github.com:asdf/qwerty.git git-p4 sync //depot/path/to/querty git merge remotes/p4/master (there was a single README file...) So, I've copied the origin to a clean, new director, got a lovely looking merged tree of

Anything similar to git-svn for Perforce?

柔情痞子 提交于 2019-12-04 13:14:22
问题 Is there a tool that allows me to gain the same functionality as git-svn for Perforce? I saw git-p4 on github but it looks like this imports source from a git repo to a Perforce repo. Does it go the other way around? Is it intended to be used as a frequent tool or just a 1 time, import-only type of tool? Scenario: I am a contractor, my client uses Perforce for their source control, but I would like to use git locally. 回答1: git-p4 can go both ways. Use git-p4 sync or git-p4 rebase to update

git-p4 migrate branches in different subdirectories

强颜欢笑 提交于 2019-12-04 13:08:00
问题 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:/

How can I clear the list of recent connections from Perforce P4V?

元气小坏坏 提交于 2019-12-04 10:18:00
问题 Perforce P4V keeps a list of recent connections under the menu 'Connections -> Recent Connections'. We have moved our Perforce depot files to a different server so I still have the old connection listed but when it is selected it errors as it can't connect. Is there a way to clear these old connections? I am using Perforce Visual Client/NTX86/2010.1/271261. 回答1: Are you in Linux/Unix? If so, in your home directory is a .p4qt/ directory. If Windows, I'm sure you have something similar. You

Perforce, How to integrate a change to another branch?

*爱你&永不变心* 提交于 2019-12-04 08:23:40
问题 I have trunk and a release branch. If I fixed a bug in release branch, I definitely should integrate the fix back to trunk. However, I didn't find a command dedicated to integrate such a single change list; did I miss something? 回答1: To integrate changelist 100, for example, you'd use: p4 merge //releasebranch/...@=100 //trunk/... p4 resolve p4 submit (If you have an older Perforce server you'll have to use 'integ' instead of 'merge'.) Note that '@=100' means the same thing as '@100,100' in

Perforce tasks for MS Build

拥有回忆 提交于 2019-12-04 08:10:11
Are there any community MSBuild tasks for Perforce (e.g. even just basic syncing)? Neither the MSBuild Community tasks or MSBuildExtenstion pack seem to have any. It looks like the open source MSBuild Contrib project has some p4 tasks. I've never used them before so I can't say how well they work. If they don't work you can always write your own tasks, they are pretty easy if you are able to write .NET code. If you don't want to go that route you can use the Exec task to execute command line commands to perform those operations for you. 来源: https://stackoverflow.com/questions/2418712/perforce

Unable to integrate fully from main branch to feature branch, after backing out a previous messed-up integration

血红的双手。 提交于 2019-12-04 07:52:33
I am using the Perforce P4V client (version 2013.1/611291, dated 2013 March 20). I attempted to Merge/Integrate from the main branch to my feature branch. It had been a long time since I had done this, so a significant number of files were added to the changelist. I then resolved conflicting files that could not be merged automatically. I then submitted the changelist. After doing that, I discovered that some of the files had remained in a messy conflicting state. Exactly why is a mystery to me, but instead of trying to fix them, I thought it would be easier to just undo the Merge/Integrate