开发者

Who wrote the code? Svn code tracking system

I recently came across a piece of code, that I thought was very funny. Apart from being funny, I needed to find out who checked in that piece of code, to maintain code quality i开发者_StackOverflown our application.

Is there a mechanism to dig in the owner of the code from svn? So If I highlight a piece of code, I can get information on when it was checked in and who committed it.


You should try out blame:

svn blame <file>


May be you are looking for svn blame

From description: "Show author and revision information in-line for the specified files or URLs"

Also works in git and mercurial.


you can see the history of who checked in that file. How many distinct committers on that file are there? Do you also need to know the exact revision in which the funny code was committed?


Or you could also try this : svn log | head -n, where n is the last n commits you want to see. I am sure this would help.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜