perforce

perforce client spec - making different depot paths map to the same client workspace path

拜拜、爱过 提交于 2019-12-22 10:33:43
问题 I want to create a client with the following view: //depot/location1/main/... //myclient/main/... //depot/location2/main/... //myclient/main/... No files and directories are common between //depot/location1/main/..., and //depot/location2/main/... But when I do p4 sync, it only syncs from //depot/location2/main/... How can I make it sync from both locations? 回答1: Use this //depot/location1/main/... //myclient/main/... +//depot/location2/main/... //myclient/main/... The plus does what you are

How to connect & perform Sync with Perforce on Mac

こ雲淡風輕ζ 提交于 2019-12-22 10:05:31
问题 I am trying to access perforce and perform Sync operation from command line on Mac machine OS x 10.8.5 Can any one tell me how to access perforce for command line. I have placed p4 client in /usr/bin directory, From Terminal when i execute command : P4 or p4 help, im getting below error message. Perforce client error: Connect to server failed; check $P4PORT. TCP connect to perforce:1666 failed. nodename not servname provided, or not known Step by step approach to set up Perforce, will be

Perforce: How can I delete a changelist that p4v refuses to delete?

…衆ロ難τιáo~ 提交于 2019-12-22 09:30:24
问题 After a while of working with perforce I was left with a lot of still open change lists. To clean up I want to get rid of a subset of them. So here is what makes this complicate: For a subset of the changes the host of the client has changed. Some changes contain shelved files. Files from the change list may be deleted or moved. When one or more of above points are true for a change list, p4v (the visual client) will not allow you to delete the change list. So what is an effective way of

svn to perforce migration

女生的网名这么多〃 提交于 2019-12-22 08:51:36
问题 I am looking at migrating our svn code base to perforce. Looking at google search results, I did find 2 tools which do the same P4Convert ftp://ftp.perforce.com/pub/perforce/tools/p4convert/docs/index.html SVN2P4 http://public.perforce.com/wiki/SVN2P4 Both these tools seems to be from the Perforce website. But I couldn't find pros and cons of using one tool vs the other. We also need to migrate the svn history to perforce. Is this possible using any of these tools ? 回答1: I'd recommend trying

svn to perforce migration

懵懂的女人 提交于 2019-12-22 08:50:07
问题 I am looking at migrating our svn code base to perforce. Looking at google search results, I did find 2 tools which do the same P4Convert ftp://ftp.perforce.com/pub/perforce/tools/p4convert/docs/index.html SVN2P4 http://public.perforce.com/wiki/SVN2P4 Both these tools seems to be from the Perforce website. But I couldn't find pros and cons of using one tool vs the other. We also need to migrate the svn history to perforce. Is this possible using any of these tools ? 回答1: I'd recommend trying

How do I search for the content of files in a Perforce depot (P4V)?

假装没事ソ 提交于 2019-12-22 07:41:08
问题 I am currently using Perforce version 2010.2. It appears that this version does not have an integrated search functionality that will go through the content of every single file. My current P4V version only allows me to search for filenames but not for content. Any input on this would be much appreciated. Thank you in advance. 回答1: Try the 'p4 grep' command, added in release 2010.1, I believe. 来源: https://stackoverflow.com/questions/10519342/how-do-i-search-for-the-content-of-files-in-a

Perforce client side pre-commit hook

会有一股神秘感。 提交于 2019-12-22 05:33:39
问题 We are using perforce as a source control for Visual studio solution. Working with P4 and P4V. Is it possible to add client side pre-commit hook? for instance to ensure the word "debugger;" is not exist in *.js files. Could find something in Google. Thanks. 回答1: Perforce triggers can be used to enforce such a policy, but they run in the server, not client-side. So most sites that I'm aware of would enforce a rule such as the one you describe using a change-content trigger in the server. http:

How do I move folders between Perforce “depots”

对着背影说爱祢 提交于 2019-12-22 05:13:50
问题 After deleting my Svn repo by accident the other day I wanted to try something else and I have chosen Perforce as my current versioning tool testing ground. It is going great and I am liking what am seeing in Perforce. Here is my problem. I have submitted my files to my Perforce server and then used my client pcs to grab those projects from the master Perforce server. Now all works great except that I realized that it is possible to use more than a single "depot" in Perforce, and it makes

How to find changelists submitted in the last week for a particular user using Perforce?

百般思念 提交于 2019-12-22 04:30:21
问题 Is there a way to ask Perforce to list all changelists submitted by a particular user in a specific time frame ? p4 changes @2001/04/01,@now This lists all the changes submitted from 1st April till now. p4 changes -m 5 -u edk Shows the last five submitted changelists from user edk. Is there a way to combine both the above for a particular directory ? 回答1: You can combine them like so: p4 changes -m 5 -u edk -s submitted @2001/04/01,@now To specify a directory: p4 changes -m 5 -u edk -s

How to get --detect-branches to work with git-p4?

吃可爱长大的小学妹 提交于 2019-12-22 03:53:10
问题 My p4 repository has a structure similar to: //depot/project/branch1 //depot/project/branch2 //depot/project/branch3 ... etc However, when I use git-p4 to clone "project", all 3 branches are not considered as branches and all get cloned into the single master branch. This is how I'm invoking git-p4 : git-p4 clone --detect-branches //depot/project I was expecting git-p4 to create a git database for " project " with three branches, and the root of the project would be mapped to the portion of