p4 where

November 14th, 2008 by Steve Leave a reply »

When you’re setting up your workspace view in Perforce it can be confusing to figure out how to map directories in the depot to particular directories in your local filesystem. I just noticed the ‘p4 where’ command which looks like it could help with this by showing the predicted location of a given file in the client view and filesystem:

$ p4 where //depot/mainline/path/to/index.html
//depot/mainline/path/to/index.html //sha-skh2-webphp5/depot/mainline/path/to/index.html /home/skh2/depot/mainline/path/to/index.html
Advertisement

Leave a Reply

You must be logged in to post a comment.