Skip to content

Tag Archives: perforce

How to make Vim and Perforce work together in three easy steps

(Vim logo from http://www.vim.org/) Step 1: Make sure that the perforce client is in your path. Can you open a shell (or command prompt) and type ‘p4′? Do you get a help message from Perforce? Step 2: Open the .vimrc file (on Windows, look for a _vimrc file) in your home directory. If you don’t [...]

Roll back a submitted Perforce changelist easily and quickly

(image taken from goldberg’s photostream) One of those key features of a version control system is being able to take a change that you submitted (maybe 5 minutes ago, maybe last week) and vaporize it. Like it never existed. Actually, doing that is hard, but you can apply a change that is the exact mirror [...]

How to find out what files aren’t added in your Perforce client

(image taken from jparise’s photstream) I’ve first used Perforce in 2002. At the time we were using another product. Perforce was about 10 times as fast and 10 times less likely to make me want to storm into the comms room, rip the source code server out the rack and drop it off the fire [...]

renaming multiple files in Perforce with the help of Ruby

Half an hour ago, I had about 60 files that had the same irritating prefix to the filename. I wanted to drop the prefix so the reader could see the significant portion of the filename first. There is no way that I would rename that many files by hand and not mess one up. bad_path=/my_redundant_path/ [...]