开发者

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:

  1. Write a python (or ruby or ) wrapper, that calls p4 annotate -c file, filters out the change numbers and maps those to users (via p4 describe -s #change) and joins the two outputs
  2. Use the "Time-lapse View" of p4v
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜