0% found this document useful (0 votes)
97 views2 pages

Perforce Workflow & Java Code Style

This document contains instructions for backing up a .cshrc file, setting up a Perforce environment, formatting Java code, deleting a Perforce view, and checking code into Perforce from the command line in multiple steps including file checkout, modification, changelist creation, review assignment, and final submission.

Uploaded by

Sidharth Pallai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views2 pages

Perforce Workflow & Java Code Style

This document contains instructions for backing up a .cshrc file, setting up a Perforce environment, formatting Java code, deleting a Perforce view, and checking code into Perforce from the command line in multiple steps including file checkout, modification, changelist creation, review assignment, and final submission.

Uploaded by

Sidharth Pallai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

.

cshrc file backup (this will work for sankey and not for sbxdell3)

/bin/tcsh
setenv PATH /sonus/p4/bin:$PATH
setenv P4PORT ssl:perforceindev1:7667
setenv P4CONFIG .p4config

p4 login -a
(windows password)

p4 trust

/sonus/p4/bin/mkws (to create workspace)

/sonus/p4/bin/workon <view name>

> cd $EMS_ROOT

-------------------------------------

Java code style


--------------------
/sonus/p4/bin/doastyle

Delete perforce view

p4 client -d jklotzbach.blr.cloud2
cd /sonus/p4/ws/jklotzbach
rm -rf cloud2

p4 clients | grep sbmishra

Check in process from commandline


---------------------------
Step 1 (File Checkout)
p4 edit [FILE_NAME]

Step 2 : Modify the file

Step 3 :

p4 change
Modify the description and save the file
An change Id would be generated for e.g. 2353

Step 4 :
p4 fix -c 2353 INS-24754
Map the change ID to the JIRA id (job no)

Step 5 :
ccollab addchangelist new 2353
Enter URL : http://smartbear/
Enter Windows password
You will get a review Id, for e.g. 245

Step 6 : Open the review to assign reviewers


http://smartbear/ui#review:id=245
Use your windows credentials

Step 7: Attach change Id to review Id


ccollab addchangelist 245 2353

Step 9:
Reviewer has to approve or else it won’t allow to checkin

Step 8 : Check in
p4 submit -c 2353

You might also like