Perforce Have
If you have a depot path of a file, however you want the workspace path of the file instead, then you can run this command:
p4 have depot_file |
---|
This command is also useful to see what version that you have synced to. For instance,
$ p4 have depot_file depot_file#version_number - workspace_file |
---|
If you want to display all the workspace paths of all the files that you have opened, then you can run this command on UNIX:
p4 opened | awk -F\# '{print $1}' | xargs p4 have | awk '{print $3}' |
---|
These commands are especially useful when you need to execute a file in the depot and you do not know the workspace path needed for execution.
by Phil for Humanity
on 07/28/2011