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

Peter Stephenson pws at csr.com
Thu Apr 12 02:59:47 PDT 2007


Roy Smith <smith_roy at emc.com> wrote:
> 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?

Here's a Perl script (doesn't need the Perl API) which I wrote some while
ago...  I abandoned it in favour of "p4 annotate -c" and the Emacs function
you mentioned, so it could do with some work.  In particular it doesn't line
up the columns, and there are only a limited number of fields.  However, it
doesn't look like I'm going to be doing anything to it any time soon, and
it's quite short, so I'll just attach what I've got.

-- 
Peter Stephenson <pws at csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p4annotate
Url: http://maillist.perforce.com/pipermail/perforce-user/attachments/20070412/94e3e6f3/p4annotate.ksh


More information about the perforce-user mailing list