p4

Perforce blame

Is there an equivalent of svn's blame for Perforce on the command line? p4 annotate doesn't display usernames -- only changeset numbers (without ancestor history!). I currently have to track code back through ancestors and compare against the filelog, and there just has to be an easier way -- maybe a F/OSS utility? ...

Perforce. Getting the file status in the sandbox.

Hi I am new to Perforce and I am only used to CVS. Question : How can I figure out the state of the files in my client, I want to know if the file needs an updated, or patched, or modified etc. In CVS, I used to simply run "cvs -n -q update . > file". Later look for M,U,P,C attributes to get the current status of the file. In perfo...

Weird results using P4COM

Hi I'm using P4COM to communicate with our perforce server. I have written an little utility to simplify our QA of what files have changed from one release to another. I have been using the P4COM interface from Delphi. So far so good. I though it might be nice to allow users to view the diff between the two versions of the file from...

Is there a way to delete in perforce without syncing to your client?

I often accidentally create a branch that contains more code than it needs to. When that happens, I delete the branch files, the branch tag, and then start over. The thing that stinks is having to sync the huge pile of data just so I can delete it. Is there a way to delete server-side? ...

In Perforce, what is the command to connect to a different port when switching client user?

What is the command-line equivalent of "Switch Port Client User" as found in the p4win gui client? I am already logged under one port but now I am attempting to connect to a different port on the same server in order to access a separate source control file depot. I assume it would involve using: p4 login However, reading the 'help'...

Is there an easy way to revert an entire P4 changelist?

Let's say I checked in a changelist (in Perforce) with lots of files and I'd like to revert the entire changelist. Is there an easy way to "revert" the entire changelist in one fell swoop? Currently I do something like this for each file in the changelist: p4 sync //path/to/file#n (where "n" is the previous version of the file) cp fi...

How do I get Time Lapse View in P4Win?

In the past, on Windows XP machines, I was able to install P4V (the stupid platform-independent Perforce visual client that Perforce tries to shove down your throats), then after that, install P4Win (the wonderful clean robust mature visual client that Perforce is stupidly trying to deprecate). If I did the installs in that order (and o...

Can Perforce and SourceSafe co-exist in Visual Studio?

Visual Studio 2008, to be more specific. We're testing out moving to Perforce for source control, so I'd like to install the P4SCC plugin to monkey around with. However, I'd also like to continue using SourceSafe's IDE capabilities for projects that haven't been moved over yet. Can the two co-exist peacefully, or is it one or the other f...

How do I use p4merge from Xcode?

I would like to use the p4merge tool from Xcode in an SVN setup. Asking for trouble? ...

Locking a branch in perforce?

Currently after I create a release branch, but when we have some time before we release, I sometimes open the entire branch for edit and then lock all files in order to prevent anybody from modifying anything during "code-freeze" period in the release branch. Is there a better way? Doing it my current way seems possibly like an incorre...

Getting the whole files history with p4-git

As I've mentioned in a previous question, I'm looking into migrating our source control from Perforce to git. Looking around, I've found p4-git (you have to dig a bit more, since it's not even at the repository pointed by the link. The actual p4-git script harder to find). I'm now running this script, and it imports the current versio...

Tracking a remotes/p4/master branch in git

I'm cloning a repo that was first generated by git-p4. git-p4 uses a 'remotes/p4/master' branch that I would like to track. How do I tell git, which is cloning that repo, to track remotes/p4/master as well? That way I would be able to check out "origin/remotes/p4/master" or something. ...

Perforce wildcard problem in branch specification

In a branch spec, I have the following view: //depot/dev/t/a/g/... //depot/dev/t/r/g/... -//depot/dev/t/a/g/p/o*/... //depot/dev/t/r/g/p/... Perforce reports an "Incompatible wildcards" for the second rule there. What I'd like to do is exclude all the directories beginning with "o". What am I doing wrong, and how do I fix this? ...

Showing Perforce changelists submitted since last sync

Before I sync my Perforce client in the morning, I'd like to read the diffs and log messages for any changelists that will affect me. Unfortunately, though, I can't find a simple way to list such changelists using either p4 changes or P4V. I suspect I'm missing something simple, though. Is there a way that I can list all the changelis...

Perforce - only for experts?

I use P4V client. I just want to do basic tasks; I don't want to use the command line and become an expert at Perforce. The simple task I'm trying to accomplish is to copy the description and file list of a submitted changelist. Is there any way to do this basic task? ...

P4 Diff on a Changelist

I want to get diffs on files in a specific pending changelist. I wish I could do this: p4 diff -c 999 Can someone help me string together some csh magic to make this happen? Maybe take the output of p4 opened -c 999 and piping it to p4 diff? ...

p4 Submit Error

Submit aborted -- fix problems then use 'p4 submit -c XXXX'. Some file(s) could not be transferred from client. I read another solution on the site about how incorrect filetypes might be the problem. Firstly, how do I get more information regarding the error in p4? ...

Svn equivalent of p4 opened

Is there an equivalent command to 'p4 opened' in svn? ...

Perforce - submit only files open for branch, not files open for edit

Quite often when I'm working in a branch in Perforce, I realise I need a file I didn't branch when I initially branched. So, I add the file to my client, run p4 integrate -b branchname, then p4 submit. Thing that bugs me is that I then need to go through the list of files for submit, and remove all entries that are open for edit. I ca...

Easy way to create perforce changelist with multiple filespecs

I wish to submit a changelist with multiple filespecs, e.g. ...this... ...file.h ...theother.... Perforce won't let me. I could create a changelist from a file but I do want a chance to review the files and enter the comment. This is for a command-line solution. ...