Basic Commands:
P4 opened
function to set p4 client
function p4client()
{
if [ -z $1 ];
then
curr=`pwd`
base=`basename $curr`
else
base=$1
fi
export P4PORT="p4sw1:1666"
export P4USER="ssankar"
export P4CLIENT="$base"
export F10MKVERBOSE=1
}
P4 diff <file>
or p4 diff – full diff
P4 revert <filename>
P4 submit –c <changelist no>
#save changelist (cl> to p4 server then pathc in other
client
P4 shelve –c
<cl no>
P4 unshelve
–s <changelist no>
#delete p4
shelve
P4 shelve –d
–c <changelistno>
p4 client -d <clientname>
If you facing problem in deleting P4 Client , check for pending change list associated with P4 Client , revert the changes or you can delete forcibly if you have admin permission
p4 client -d <p4clietn name>
p4 changes -c <client-name> -s pending
p4 change -d <clno>