Discussion:
[p4] Get number of lines added/removed/changed from Changelist in .NET API
jpreiss
2013-01-16 16:50:02 UTC
Permalink
Posted on behalf of forum user 'jpreiss'.

I am trying to use the Perforce .NET API to compile some statistics about
changelists in my organization. I can get a list of all changelists in the past
year, but I'm stuck trying to extract the number of lines changed, removed,
and added in a changelist. Ideally I could get the info per-file within a
changelist. I see the IEnumerable<FileMetaData> Changelist.Files member
but I can't make much sense of the FileMetaData class in the documentation.



--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/2276-get-number-of-lines-addedremovedchanged-from-changelist-in-net-api
Lester Cheung
2013-01-24 02:25:01 UTC
Permalink
Posted on behalf of forum user 'Lester Cheung'.

Hi,

One way to do it is to do a "p4 diff2 -u" equivalent in Perforce .NET
and count the number lines which starts with "+" and/or "-".

Please contact ***@perforce.com [mailto:***@perforce.com] should you
need more information.

-les



--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/2276-get-number-of-lines-addedremovedchanged-from-changelist-in-net-api
Loading...