[p4] Is there a better "p4 blame" command?

Roy Smith smith_roy at emc.com
Tue Apr 10 10:56:40 PDT 2007


In CVS, you used to be able to do "cvs blame" and get a nice line-by- 
line annotated listing of who most recently broke each line in a  
file :-)  Is there a way to do that with the p4 command line client?

p4 annotate just gives you the revision or change number for each  
line.  The emacs p4 integration takes that and cooks up a nicely  
annotated output...

Change  Rev       Date  Author
61699    1 2007/03/20  snydea: # Makedefs - Subsystem Make  
definitions for NETWORK

which is exactly what our old CVS users are looking for, but from the  
command line.  I'm sure we could cook up some kind of script which  
parses the p4 annotate output and mixes in the other information from  
p4 describe, but this seems like it would be such a common thing to  
want that somebody must have done it already.

-------------------
Roy Smith <smith_roy at emc.com>
Software Guy, EMC Common Management Group
44 South Broadway, 7th floor
White Plains, NY 10601
(914) 580-3427
AIM: roysmith649



More information about the perforce-user mailing list