This lab helps you get started with Perforce.
P4CLIENT=user.nfs P4USER=user P4PASSWD= P4PORT=phantom:1666Since you haven't set up a password yet, either don't add that line or leave it empty. Set P4CONFIG=.p4 in your .bash_profile.
[parrt@nexus depot]$ p4 info User name: parrt Client name: parrt.nfs Client host: nexus.cs.usfca.edu Client root: /home/parrt/depot Current directory: /home/parrt/depot Client address: 138.202.170.4:58303 Server address: phantom.cs.usfca.edu:1666 Server root: /var/local/perforce Server date: 2003/10/21 13:21:54 -0700 PDT Server version: P4D/LINUX24X86/2003.1/46260 (2003/07/03) Server license: Univ. of San Francisco 35 users (expires 2004/08/11)
$ p4 client -o user.nfsIt will look something like this:
Client: parrt.nfs
Update: 2004/01/29 11:31:07
Access: 2004/01/29 11:31:07
Owner: parrt
Description:
Created by parrt.
Root: /home/parrt/depot
Options: noallwrite noclobber nocompress unlocked nomodtime normdir
LineEnd: local
View:
//depot/cs342/parrt/... //parrt.nfs/...
Password: your-passwordAnd then make sure your .p4 file has the correct password.
/** A is a test file */
public class A {
int i;
}
and B.java
public class B {
public void foo() {
}
}
$ p4 add *.java
$ p4 submitThe editor will come up; type in a description and then exit.
$ p4 edit A.javaand now change the comment to include your name.
$ p4 diff A.java
$ p4 submitAgain, type in a description such as "added my name" and exit the editor.