perforce

Perforce changing the default editor

岁酱吖の 提交于 2019-12-09 17:04:48
问题 I use perforce for my revision control, when I hit 'p4 change' it always opens up the list on emacs, and we all know the pain of deleting text in it. How do i change it to gedit or vim or anything else? My default text editor is gedit. 回答1: On the command line, set P4EDITOR either as an environment variable or in the P4CONFIG file. 回答2: From the command line, p4 set P4EDITOR="C:\File Editor\editor.exe" You can test that this was successfull by running the following command after, which should

Unable to execute - Git P4 clone broken

瘦欲@ 提交于 2019-12-09 11:57:34
问题 After git installation - I tried to clone an existing p4 branch, but it failed with the following information: c:\P4_GIT\DT>git p4 clone //depot/CTAT/Windows/OneP/ fatal: 'p4' appears to be a git command, but we were not able to execute it. Maybe git-p4 is broken? 回答1: I've had more success (on Linux admittedly) downloading one of the git-p4 branches from github and calling it directly ( git-p4 ) rather than through git p4 . Maybe that would help you? 回答2: I saw this on Git for Windows 2.16.1

Where can I find the patience diff implemented?

旧巷老猫 提交于 2019-12-09 04:46:50
问题 It is well-answered on this site that Bram Cohen's patience diff is found in bazaar as the default diff and as an option with git diff, but I am finding it difficult to source an independent standalone program that implements this particular diff algorithm. For example I'd like to apply patience diff to perforce diffs, and it's pretty clear with the canonical "frobnitz" code example how patience diff is better: The terminal on the right has invoked the git diff with the --patience flag. I

Servname not supported for ai_socktype

拥有回忆 提交于 2019-12-08 16:27:45
问题 I'm running a Centos virtual machine using Vagrant. The machine seems to run properly, but when I try to sync Perforce I can see the following error: [vagrant@vagrant-c5-x86_64 ~]$ /perforce/p4 sync -f ... Perforce client error: Connect to server failed; check $P4PORT. failed.TCP connect to perforce.xxx.com:1666 Servname not supported for ai_socktype I have read this http://www.ducea.com/2006/09/11/error-servname-not-supported-for-ai_socktype/ and tried to set the ports in /etc/services , but

.net wrapper for Perforce API?

主宰稳场 提交于 2019-12-08 15:55:02
问题 I'm currently developing an application in .NET 4 which has to interact with a Perforce server. My team previously developed some sort of wrapper using the Perforce API, but its missing quite a few use-cases and doesn't properly handle exceptions. In short, it's not something that I can really use as-is, as it would require considerable effort to make it as "bullet-proof" as possible. I was wondering if there's a Perforce API wrapper that exists for .NET which properly handles exceptions ? As

How to trigger a Jenkins job using the p4 plugin or p4?

≯℡__Kan透↙ 提交于 2019-12-08 04:34:20
问题 I've installed this p4 plugin in a Jenkins job. This scynces a workspace to the latest change and then builds. Now, under "Build Triggers", I've chosen "Build periodically" and set the job to run every 10 mins. Is there a way do trigger this Jenkins job when a new submit comes in to P4? Do I use the plugin or do I do something with "p4 trigger"? If so, how can I do this? Thank you! 回答1: Under the same Build Triggers section, there is an option named Poll SCM . Enable that option. This option

How can i get all Changelists of a branch since a specific Changelist?

霸气de小男生 提交于 2019-12-08 03:12:05
问题 I like to use the Perforce Java API to make a list of all changelists since a specific Changelist of a Branch. On the command line you can get it with: p4 changes -L BRANCHNAME@CHANGELISTID,#head. But now i like to use the API. List<IFileSpec> fileSpecs = new ArrayList<>(); FilePath path = new FilePath(PathType.DEPOT, p4Branch + "/..."); FileSpec fileSpec = new FileSpec(path); fileSpec.setChangelistId(changelist.getId()); printFileSpec(fileSpec); fileSpecs.add(fileSpec); try { changelists =

Can we create Labels in perforce

余生长醉 提交于 2019-12-08 03:07:56
问题 I am working in a project. We use both clearcase and perforce. As we are working on differnet builds, In clearcase we create a label for each release. Say for release "X", we create a clearcase case "Label X". Label X is having all the latest files with respect to release "X". When we finish another release say "Y", we create another label say "Label Y". Label "Y" is again having all the files for release "Y". But at any point of time we can go back to "Label X" .It means all the files will

In Perforce command line, how to diff a file reopened for add?

我是研究僧i 提交于 2019-12-08 02:05:15
问题 Suppose you open a file for branch to another place (without submitting), and then reopen it for add and make some edits. I would like to diff this edited version against its branch source in a script. p4 diff2 is no good because one of the versions is in the client. p4 diff is no good because it can only diff against the "corresponding" version of the file in the depot, which a branched unsubmitted file doesn't have yet. Is there a way, or is the only option to just grab the two files and

How can I store perforce P4V password?

∥☆過路亽.° 提交于 2019-12-07 18:30:01
问题 I have to use this software and I need to store password, because it disconnects regularly. How can I do that, there is no checkbox to save password. Thanx a lot! 回答1: If you are an administrator (or can convince your admin to do this), you can create a group, put yourself in it, then edit the group permissions to prevent your session from ever timing out. In P4V group management is done via Tools->Administration->Permissions tab->Groups tab Set the "Duration before login session times out"