Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: svn metric extractor

by Anonymous Monk
on Oct 09, 2012 at 09:16 UTC ( #997958=note: print w/replies, xml ) Need Help??

in reply to Re: svn metric extractor
in thread svn metric extractor

John, it's possible to share the commands that you use to find add, modified and deleted lines between two revisions? Thank's for all

Replies are listed 'Best First'.
Re^3: svn metric extractor
by jmcnamara (Monsignor) on Oct 09, 2012 at 10:21 UTC

    Using diffstat with the -m option gives the modified lines (as well as the added and deleted):

    diff dir1 dir2 | diffstat -m

    I didn't need to modify it in any way. However, at the time of the original post I had to build the code from the website to get a version with the -m option. I think more recent OSes will come with that version by default or at least provide a package.


Re^3: svn metric extractor
by Anonymous Monk on Oct 10, 2012 at 11:03 UTC

    Thank's for all John. It's possible to obtain # Lines Added # Lines Modified # Lines Churned (Added + Modified) # Lines Deleted separatly between two revisions? I need to obtain lines added, lines modified, lines deleted with shell commands between two subversion revision. It's possible?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997958]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-06-21 23:08 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (120 votes). Check out past polls.