perforce

Perforce trigger to deny submission of unchanged files?

Perforce allows people to check in unchanged files. Why any version control system would allow this is beyond me, but that's a topic for another question. I want to create a trigger that will deny the submission of unchanged files. However, I have no experience with Perforce triggers. From what I've read, I'm guessing this would be a ...

Tracking Changes to a Directory Tree over Time

Does anyone know of an application or system out there for tracking changes (files added/removed, diffs on text files) to a non-source controlled directory over time? Something that would let you Take a snapshot of a certain directory tree at time A Come back at time period B and see what has changed Come back at time period C and see...

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

Perforce repository monitor for Windows

I used to work with Subversion and a system tray tool (SVN Notifier) to monitor the repository so I would immediately see when my local copy was not up-to-date anymore, and I am wondering if some equivalent was available for Perforce (on Windows). ...

How do I build and install P4Python for Mac OS X?

I've been unable to build P4Python for an Intel Mac OS X 10.5.5. These are my steps: I downloaded p4python.tgz (from http://filehost.perforce.com/perforce/r07.3/tools/) and expanded it into "P4Python-2007.3". I downloaded p4api.tar (from http://filehost.perforce.com/perforce/r07.3/bin.macosx104x86/) and expanded it into "p4api-2007.3....

What is the command line syntax to delete files in Perforce?

I am creating some build scripts that interact with Perforce and I would like to mark for delete a few files. What exactly is the P4 syntax using the command line? ...

Is it possible to get perforce to behave like subversion?

Can perforce be adjusted so I don't need to "open files for edit"? Someone told me that this was a "feature", and that s/he guessed it could be turned off. ...

How do I retrieve the size of a directory from Perforce?

I would like to know how much disk space a directory is going to consume before I bring it over from the Perforce server. I don't see any way to do this other than getting the files and looking at the size of the directory in a file manager. This, of course, defeats the purpose. Is there a way to get file size info from Perforce wit...

How do I check out a file from perforce in python?

I would like to write some scripts in python that do some automated changes to source code. If the script determines it needs to change the file I would like to first check it out of perforce. I don't care about checking in because I will always want to build and test first. ...

How to assign keyboard shortcut to Source Control commands in Visual Studio 2008?

I use Visual C++ 2008 in Visual Studio 2008. I frequently use the following command to diff an open file against its most recent checked-in version: File | Source Control | Compare... I can also do the same thing by clicking on an icon in the Source Control toolbar. I'm not certain, but I believe this command is the same for any sou...

Disabling +S filetype in Perforce

Perforce's filetype system includes the +S modified to denote that a file is a temporary file. The implication of this is that no file history is stored for that file - only the most recent version is maintained, and it is replaced with each new checkin. This is obviously a dangerous flag to set accidentally, which we recently discovere...

Perforce : Is there a way to link a numbered changelist to a folder in the depot?

Problem : I have multiple projects checked out in my depot. I also have multiple pending numbered change lists, each change list containing checked out files specific to its project. When I check out a new file, it appears in the default change list instead of in the change list that is relevant to its project and I need to manually move...

How can I quickly and easily delete all Perforce jobs that are attached to changelists?

I have a list of about 600 jobs that I can't delete from the command line because they are attached to changelists. The only way I know how to detach them is via the GUI, but that would take forever. Does anyone know a better (i.e., faster) way? ...

GIT vs. Perforce- Two VCS will enter... one will leave.

So I'm in the process of getting GIT sold at work. First thing I need is to convince everyone that GIT is better at what they're already used to doing. We currently use Perforce. Anybody else go through a similar sale? Any good links/advice? One of the big wins is that we can work with it disconnected from the network. Another win IMO i...

Perforce branching from a Perforce branch

Hi, A path in Perforce contains files a.txt and b.txt. I'll refer to the main path as mainline. I've create a branch (called initialbranch) from there which contains just a.txt. I make lots of changes to a.txt, and am very happy with it. However, it's not yet ready for submitting back to mainline. I can easily integrate any changes to ...

What are the advantages to Perforce?

What are the benefits of Perforce? I'd love to have some insight as to how Perforce can work better in a given situation than, say, svn. If you have experience with both perforce and svn and you don't believe that there are any advantages, or believe that svn has advantages over perforce, I'd like to know why, as well. ...

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

How does Visual Studio's source control integration work with Perforce?

We're using Perforce and Visual Studio. Whenever we create a branch, some projects will not be bound to source control unless we use "Open from Source Control", but other projects work regardless. From my investigations, I know some of the things involved: In our .csproj files, there are these settings: <SccProjectName> <SccLocalPath>...

How does one handle file type changes in Perforce?

When you add a file to Perforce, it attempts to determine what type of file it is (text, binary, utf16, etc.). It's does a good job of this, but apparently never checks the file type again after the initial submission to version control. A coworker recently made a change to a text file that converted it to Unicode (utf16). Perforce di...

Detecting Perforce unopened modified files

I'm trying to figure out a way to detect files that are not opened for editing but have nevertheless been modified locally. p4 fstat returns a value headModTime for any given file, but this is the change time in the depot, which should not be equal to the filesystem's stat last modified time. I'm hoping that there exists a more lightwei...