开发者

How to diff all changes by an author in an SVN branch?

开发者 https://www.devze.com 2023-01-17 21:39 出处:网络
As part of a code review, I need to review all 开发者_JAVA百科the changes made by a single person to an svn branch. Is there a single command that can do this? Or will I have to just go through each r

As part of a code review, I need to review all 开发者_JAVA百科the changes made by a single person to an svn branch. Is there a single command that can do this? Or will I have to just go through each revision marked with their name one by one.


TortoiseSVN is probably the easiest way to do it; you can Show log for the branch's directory, make sure stop-on-copy is enabled, then use the search box to filter by author.

From the command line, I suspect you have some log parsing and a little script-fu to do. One way would be to have a script call svn log with the --xml switch, then use some command-line XML processing tools (like Python) to filter only the revisions committed by the reviewee. From there, it's a short hop to go from revision numbers to diffs for each revision.

0

精彩评论

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