How to make 'p4 annotate' list the modifier name instead of revision number
In previous organization, 'cvs annotate' used to give annotation w.r.t m开发者_C百科odifier login id. This was very useful and time saving in finding out who modified what in the file. Could i do same thing in perforce with simple tweeks?
Thanks
It appears that version 2016.2 of p4
adds a -u
option to annotate
that prints the username of the person who modified the line:
-u
Display the name of the user who modified the change and the date when the modification occurred.
There is a similar question on SO about that already. The best I can come up with is:
- Write a python (or ruby or ) wrapper, that calls
p4 annotate -c file
, filters out the change numbers and maps those to users (viap4 describe -s #change
) and joins the two outputs - Use the "Time-lapse View" of p4v
精彩评论