perforce

How do I list all files revisions, changelist number & developer's ID within a directory?

試著忘記壹切 提交于 2019-12-13 15:17:42
问题 I am trying to get a list of all revisions on all files within a directory with this information: The version number Changelist number Developer's id. I tried using P4 files: p4 files -a . > output.txt, but this command has no options to give me the developer's id & changelist number. 回答1: My request for clarification notwithstanding, as I understand your question I think you want to use p4 filelog : p4 -c <client-name> filelog ... > output.txt This will produce lines like: //path/to/depot

p4 sync to an alternate location

大兔子大兔子 提交于 2019-12-13 12:33:22
问题 I am writing a build script that gets all the source code for a particular changelist and builds it. I would like to be able to run the script at any time, without having to shelve local changes or move files to a temporary location. The script will be used by others who have their own workspaces defined. I thought it would be easiest just to get all the source code from Perforce at a temporary location and build from there. Unfortunately p4 sync does not seem to support this, it will only

Is there a bi-directional bridge between p4 and git?

烈酒焚心 提交于 2019-12-13 12:26:06
问题 Is there a good (reliable and automated) method for moving git changes between perforce and git for multiple users? git-p4 seems to handle the single user case well but I'm looking for a multi user option. We are currently moving from many different source control systems to one; git. We may either need to move from git to perforce and provide a good way to showcase git to the perforce. For ether case a bi-direction bridge between the two will be essential. Is there something out there that

Perform jenkins build on local files

邮差的信 提交于 2019-12-13 07:42:11
问题 We have a Jenkins server where I have already defined my job. It uses Perforce as SCM. I would like to replicate all the steps that Jenkins takes to build the project but use the files in my local workspace instead. Basically, I would like to run a jenkins build locally based on a job defined on another server. How would I do the same? 回答1: Something like what I created for my Perforce users might work for you -- I added a job in Jenkins that will grab shelved files (so, the user would need

Perforce streams, exclude files from merge/copy

大城市里の小女人 提交于 2019-12-13 05:02:57
问题 I have following perforce streams structure: main branch and 2 development branches linked to it dev_v1 and dev_v2 . Both development streams has some build control files where version specific variables are located. Any change in these files will be reflected in Perforce Streams Graph and the system will ask me to merge them into main and then from main into other development branch. How to exclude specific set of files in Perforce so that in case of any change the system will no show any

Perforce to Git: Invalid option: -r

扶醉桌前 提交于 2019-12-13 00:22:43
问题 I am trying to migrate a project from Perforce into Git. I am using git-p4 as my main tool to do the heavy lifting for me, and it comes by default with Git on Windows: C:\Program Files\Git\mingw64\libexec\git-core\git-p4 . Following Migrating Perforce to Git in Windows, I have reached the step where I execute my cloning command: git p4 clone <PerforceRepo> (where p4 is an alias for the file git-p4.py) I keep getting error: Invalid option: -r. C:\P4-To-Git>git p4 clone //depot/C:\build

How do you clear the default changelist without altering your worktree in Perforce

本小妞迷上赌 提交于 2019-12-12 19:00:54
问题 By accident I reconciled all my work. I want to now keep my working tree as it is, but have perforce remove the changes from the default changelist. How do you clear the default pending changelist without affecting the files? I do not want to revert to the depot state. 回答1: p4 revert -k //... Note that this is a little dangerous because now you have local changes that Perforce doesn't know about -- they'll be silently missed when you submit (unless you do another reconcile), and a force sync

Verify Perforce client file copies

有些话、适合烂在心里 提交于 2019-12-12 12:25:16
问题 I have a large Perforce depot and I believe my client currently has about 2GB of files that are in sync with the server, but what's the best way to verify my files are complete, in-sync, and up to date to a given change level (which is perhaps higher then a handful of files on the client currently)? I see the p4 verify command, and it's MD5s, but these just seem to be from the server's various revisions for the file. Is there a way to compare the MD5 on the server with the MD5 of the revision

How do I checkout files under Perforce from within Emacs?

情到浓时终转凉″ 提交于 2019-12-12 12:16:19
问题 I use Perforce for source control at work and I want to 'open for edit' files that under source control from within Emacs. How can that be done? What do I need to setup in Emacs? Is there a plug in? I also want to perform other p4 operations such as submitting my changes, etc. 回答1: Perforce/Emacs Integration http://p4el.sourceforge.net/p4.el.html Once you have p4.el installed and ready to go you can use emacs' built-in help to review p4.el's functions: C-x p ? will bring up the list. C-h f p4

delete a submitted changelist from perforce history

只愿长相守 提交于 2019-12-12 10:52:16
问题 I accidentally submitted a wrong changelist to my perforce server. I then backed out that changelist using the "backout changelist" option. But, these two changes appear in the history of all those affected files that they were once deleted and then added back again. I want to be able to delete the history from perforce server of these two changelists. Is it possible. Can it be done via some Perforce administrator command. EDIT: I have seen p4 change -d -f which can delete a changelist but