user1912935
user1912935

Reputation: 381

Find number of different lines between SVN revisions

How to find the number of lines which are different between two SVN commits?

Like modified, commented added etc.

Is there any direct command to do this?

Say for example version 1 has 500 lines and version 2 has 650 lines. Then the output would be like: Difference: 150

Upvotes: 0

Views: 1492

Answers (1)

Philippe F
Philippe F

Reputation: 12165

diffstat does what you want:

svn diff -r[oldrev]:[newrev] | diffstat

Example:

 $ svn diff | diffstat
 some_file.py |   17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

Upvotes: 1

Related Questions