perforce

how to detect use of Perforce's "reopen for edit" from a script

I'm working on a script to interact with Perforce, which among other things needs to be able to understand pending changelists. For this I use 'p4 describe' and 'p4 opened', which are pretty straightforward. For instance, a file opened for edit shows up like this (from p4 opened): //source/stuff/things.h#1 add default change (text) Wh...

Ignore client generated files in Perforce workspace view

Is there a way to have Perforce ignore new files in a client workspace in the workspace view? I have 120 java files that generate over 700 class files, so managing these files in a single folder view is tedious. I recognize generating the output in a separate folder is an elegant solution but not one that is feasible at the moment. ...

How to use Svn and Perforce simultaneously

I have a project coded in python and I use svn for source-control. But now, I have a part of this code I need to commit with Perforce. As the source tree is quite large with lots of files, I don't want to duplicate the files on the different computers. So I want to keep working on SVN and sometimes, push the code on Perforce. But I have...

In perforce, how do I remove pending changes for NEW/ADDED files not submitted?

I am trying to remove a pending changelist in perforce. All the files (20 old) are new but have not be committed/submitted yet. So in p4Win, they show a RED + cross. I am failing to remove these files from the change list. How do I go about getting rid of these files? Thanks for the answers to right-click and revert. I have tried that b...

Visual Source Safe Changelists

Maybe just maybe somebody knows of an plugin that will let VSS do perforce-like changelists? I know its a long shot, but we are stuck with VSS. ...

Which is easier to learn: AccuRev or Perforce?

We are trying to decide between AccuRev or Perforce. We have a small team, and need something that is easy to learn. Which of these version control applications is easier to learn and more user friendly? ...

How to make a perforce branch with a different java package name?

My first instinct is to branch normally (using p4 integrate), and then use an IDE or sed script to change the package names. But this makes future integration from the trunk extremely painful. ...

How to create a duplicate changelist in Perforce during integration across branches ?

Is there a way to duplicate the change list description using p4 command line when integrating from the source change list across branches ? Details: For e.g. p4 integ -t -b branch_a_to_branch_b -s //my/tree/...@2425,@2425 integrates files from changelist 2425 to the default changelist in the target branch branch_b from source bran...

What's the best way to move to a new Perforce server?

My home Perforce server died. I set up a new one. The project I set it up to support died in the planning phase. The contents of the depot at that point were some prototype code and we never got to setting up a disaster recovery plan. The dev machines still have the existing code on them. As much as possible, I'd like the change of ser...

Is Git recommended for large (>250GB) content repositories

The web-application is a custom-built CMS which has several sub-applications and each one of them has code and content residing in the same directory structure. Due to the application framework's architecture the code and content are intertwined (content depends upon the code for its display and other functionalities) and hence are insep...

How to add a p4sql query as a Perforce custom tool argument?

I'm trying to add this p4sql query as a Custom Tool in P4V (Windows) by adding p4sql.exe as the application and -s "select * from changes where lcase(description) like '$%$D$%' and p4options='longdesc';" as Arguments. When I execute the command and enter '123' as input, the following error comes back: p4sql error: Usage: p4sql ...

Can specific files mapped in a Perforce client spec be made non-editable?

For example some parts of the client spec map files from a 'Published' depot. Is there a way for these so-called published maps to be forced read-only, i.e. they cannot be opened for edit? For example (ignoring [not editable]): //Development/foo/... //client/foo/... //Published/bar/1.0/... //client/bar/... [not editable] //Published/qu...

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...

Same file in multiple changelists in perforce

Is there any way to have the same file be a part of multiples changelists in perforce? With that I mean that from the set of changed lines in the file one subset will belong to a changelist, while the other subset will belong to a second changelist. Bonus question: If perforce does not support this, then which Source Control Systems, if...

Disable warning in VIM?

Is there a way to disable warnings in VIM? In particular, I want to disable Warning 12 when a file turns from read-only to writable. I have a script which opens the file for edit in perforce, but vim thinks the file has changed and issues a warning. Thanks ...

Source control with SharePoint?

Have you tried to use SharePoint with version control such as Perforce (or Subversion), how did you do it? ...

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? ...

Recommend portable source control setup?

Since I have a couple of mid-sized personal projects and a lots of code snippets, sample programs, libraries which usage is demonstrated using unit tests, I want to have this whole lump of code available all the time - at home, at work, when using my laptop, etc. The most logical step is to have this codebase under the source control, s...

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? ...

CVS read only check out

I have to use CVS in a project. So far in my whole working life, I have used only perforce and I do not know anything about CVS, I read the whole CVS manual but could not find how to do this : In perforce, when you check out a file, you first have to do a p4 edit filename.C (telling the perforce system that you are intentionally about t...