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!
The p4 annotate
command actually can follow merges/integrations and branching on the command line with the -I
and -i
commands (but it cannot do both at once :( ):
-I
Follow integrations into the file. If a line was introduced into the file by a merge, the source of the merge is indicated as the changelist that introduced the line. If that source was itself the result of an integration, that source will be used instead, and so on.
The use of the -I option implies the -c option. The -I option cannot be combined with -i.
-i
Follow file history across branches. If a file was created by branching, Perforce includes revisions up to the branch point.
The use of the -i option implies the -c option. The -i option cannot be combined with -I.