Is there an equivalent of svn\'s blame for Perforce on the command line? p4 annotate doesn\'t display usernames -- only changeset numbers (without ancestor history!
p4 annotate
I use a small script for blaming
#!/bin/bash FILE="$1" LINE="$2" p4 annotate -cq "${FILE}" | sed "${LINE}q;d" | cut -f1 -d: | xargs p4 describe -s | sed -e '/Affected files/,$d'
you can hook it to some of the editors that will pass the file name and line.
There's a little more complex version here.