How I like to code

Tag Archives: p4

Creating a remote from an already existing depo

Today, I created a remote depo, so that I can use the DVCS functionality in P4 with one of my projects. First, I connected to my perforce server and typed: $p4 remotes To see all of the remotes that were on the server. Before doing this command you have to type: $p4 login Which thankfully, […]

How to install Perforce DVCS

Introduction For 9 years now, I’ve used Perforce; before that, it was MKD, Subversion, VisualSourceSafe, CVS and a few others. In the past year, I used Git. One cool thing that Git has that Perforce didn’t have was being able to save your changes while not being connected to a central server. However, Perforce recently […]

Aaaargh! Stop auto substituting my text!

Ugh! I’ve been running into problems with my Jenkins scripts that would fail when attempting to run my p4 commands, because the three periods I inserted into the p4 command were automatically converted to an ellipsis by MacOSX, which is not a good thing: Three dots are automatically changed to an ellipsis

Perforce and Xcode5

In a previous post, Perforce and Xcode4, I created applescripts to work with Xcode4 and Perforce. I updated the AppleScripts to work with Xcode5 only and added a couple of new scripts. One, called p4_file_renamed.scpt, is used to update the renamed file Perforce when you are using Xcodes rename functionality, either directly or through the […]

Perforce and Xcode4

I created some AppleScripts that allow you to control some basic Perforce functionality in Xcode4, which was lost when Apple released the latest version of their IDE. Perforce actually published a way of checking out files using the Behaviors functionality in Xcode (Xcode and P4), but I wanted a little more. Note, these scripts are […]

Checking out a file in Perforce using Xcode’s 4 behaviors

Perforce published a knowledge base article on how to use Xcode’s built in behaviors to check out a file: Automatically checking out files for edit in Xcode 4.3 This is nifty and similar to an article I saw posted on stackoverflow by user Mark Thalman. Update I actually have AppleScripts that will do some of […]

Xcode Script Menu and P4

Here is another way that I am able to check out a file using the Xcode Script Menu and a keyboard hot key: ?View Code BASH#!/bin/sh # This shell script checks out the current file from Perforce   # Get the file’s path components FULL_FILE_PATH="%%%{PBXFilePath}%%%" SRC_FILE=${FULL_FILE_PATH##*/} FILE_PATH=${FULL_FILE_PATH%/*}   # This line brings in my settings […]

Xcode 3.1 and Perforce

I use Perforce and I love it! Over the years I’ve used Visual SourceSafe, CVS, SVN and I experimented with other tools, but none of them have come close to the usefulness of Perforce. I also use Xcode for my Mac coding but when you use Xcode with Perforce, you get some wierd behaviour. Xcode […]