perforce

How can I see a unified log of changes to a set of files in perforce?

拥有回忆 提交于 2019-12-07 04:38:15
问题 I'm new to perforce, coming from a history of cvs->svn->git. I'm having a difficult time seeing a compact representation of the most recent changes impacting a set of file. For instance, if I go to a directory and type: % p4 filelog . It doesn't do anything useful. More interesting is % p4 filelog * However this shows me the change history of every file individually. I'd rather see a unified view of changes in a format showing: change number, submit message, changed files for the most recent

Can I safely edit a renamed file in perforce

余生颓废 提交于 2019-12-07 02:32:30
问题 I have a file I need to move that's already under perforce. Once moved it needs some editing - update the package, etc - appropriate to its new location. Should I submit the move changespec and then reopen it for edit, or can I do this in one go? If so, what is the appropriate sequence of events? 回答1: I have done this before in one go, but depending on your build process, I recommend against it. What I generally do is this: Move the file. If the move needs a change in order to compile, open

In Perforce, how do I find the local path for files in a pending changelist?

江枫思渺然 提交于 2019-12-06 20:05:47
问题 Given a Perforce changelist number, I want to find the local path of all files in that pending changelist. p4 describe changelist -- gets me the depot path for files in the changelist (method 1) p4 opened -c changelist -- gets me the depot path for files in the changelist (method 2) p4 have -- gets me the depot path and local path for all files that have previously been submitted Using a combination of p4 describe and p4 have , I can find the local paths for all files in the changelist that

How to resolve integrated files in Perforce JAVA API

你。 提交于 2019-12-06 18:46:30
How to resolve integrated files in Perforce JAVA API. I am trying to merge files from one branch to another. I am using following code to merge. tmpClient.integrateFiles(file, toFile, "17.2", opts ); After executing this command, files need to be resolved. How can I do that? Look at IClient.resolveFile() and IClient.resolveFilesAuto(): https://www.perforce.com/perforce/r15.1/manuals/p4java-javadoc/com/perforce/p4java/client/IClient.html The specific method you use will depend on whether you expect that you will always be able to rely on auto-resolve (which is a bad expectation generally) and

P4 - change workspace for client

折月煮酒 提交于 2019-12-06 17:25:23
问题 I want to change the workspace client using the p4 command line but i don't know if its possible. You can create, delete or edit workspace using the p4 workspace command, but i want to change the current workspace with a .bat method. Exemple : p4 -c MyClient changeworkspace myNewWorkspace If you know in first step if it's possible. Thanks. 回答1: Either set the P4CLIENT environment variable to the name of the workspace you want to be your current workspace, or consistently pass that workspace

How to retrieve submitted changelists in a day using Perforce Python API

怎甘沉沦 提交于 2019-12-06 13:55:03
问题 I am new to Perforce Python API and still finding my way through it. So far I have been able to retrieve changelist information like number, desc etc, if I provide the file name. I am trying to get a list of all the submitted changelists for a specified date/time range so that I can gather information like files changed and description of each changelist etc. Is there a way to do this using the API? Thanks 回答1: From a read of the less than extensive P4Python documentation and a question from

Perforce with dynamic ip

情到浓时终转凉″ 提交于 2019-12-06 13:47:20
问题 I've set up a perforce server on an old always-on laptop which is always assigned a reserved address by the router. I have have an account at no-ip.com, which sends to my router, which in turn redirects port 1666 requests to this laptop. when i try to set p4port to this no-ip.org address, that part is fine, but when i run p4d i get: Perforce server error: Listen USERNAME.no-ip.org:1666 failed. TCP listen on USERNAME.no-ip.org:1666 failed. bind: USERNAME.no-ip.org:1666: WSAEADDRNOTAVAIL

Can a script be automated after a commit on Perforce?

霸气de小男生 提交于 2019-12-06 09:58:49
We use Perforce at work, and routinely keep software projects in the repository. In general creators follow the normal Perforce flow, BUT we also have a class of users, who doesn't have any need to edit the files but only read them. Currently we use P4Web but that requires the user so download each file individually to reassemble the project directory. Ideally I would like to have a process where when a user does a commit/submit in Perforce, the script would automatically run to generate a single zip file of the project directory and files, so that it was a one-click download that was

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

依然范特西╮ 提交于 2019-12-06 08:57:07
问题 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

Is it possible to list the changelists that have been integrated to a workspace?

≡放荡痞女 提交于 2019-12-06 06:14:31
In perforce, is it possible to get a list of the change lists that have been integrated into a workspace but not committed? What about p4 resolved ? It won't tell you exactly which changelists, but it will tell you which file versions, which can then be pretty easily tracked back to changelists. 来源: https://stackoverflow.com/questions/3737012/is-it-possible-to-list-the-changelists-that-have-been-integrated-to-a-workspace