Main / P4
Changing comments on a completed submissionp4 change -f <changelist#> Bring down a nice text copy of a diffp4 diff -du9999 //depot/bar.c //depot/Software/foo.c > diff.txt Notes on loginp4 -u <superuser_user> -P <superuser_password> <command> Notes on submitp4 submit -c <changelist#> just sends in everything, with no chance to edit note or select files http://www.perforce.com/perforce/doc.current/manuals/cmdref/index.html Example: Auto-rollback Script#!/bin/bash for i in * do if [[ "$i" == *e* ]] then echo $i atfile=`echo /depot/lib/$i/foo.bar` echo $atfile pfile=`echo $atfile | sed 's/e/%/g'` echo $pfile p4 sync -f /$pfile#34 p4 edit /$pfile p4 sync /$pfile#head p4 resolve -ay //WORKSPACE$pfile fi done |