How to extract changes between labels or dates?

Matthew.Rice at ftlsol.comMatthew.Rice Matthew.Rice at ftlsol.comMatthew.Rice
Thu Apr 23 10:10:09 PDT 1998


> ochg=`p4 changes //depot/us/tag/4.2/...$1 | head -1 | awk '{print $2}'`

You could avoid the 'head' (and possible delay if there are *lots*
of changes) by using 'p4 changes -m 1 ...'.

something like:
   ochg=`p4 changes -m 1 //depot/us/tag/4.2/...$1 | cut -d' ' -f2`

Also, you might want to check that you do get a real value (not '').

Regards,
- -- 
Matthew Rice                             e-mail: matthew.rice at ftlsol.com





More information about the perforce-user mailing list