It's all about the answers!

Ask a question

How to get LOC (lines of code) for Jazz SCM

Ayesha Koul (111) | asked Jul 05 '16, 10:33 a.m.
edited Jul 11 '16, 11:21 a.m. by David Lafreniere (4.8k7)
 I need to get the LOC from the JAZZ SCM in a branch. How can i get it? 
Are there any command line options ?

Accepted answer

permanent link
Lily Wang (4.9k714) | answered Jul 05 '16, 9:06 p.m.
You can use "scm list changesets" and "scm list changes" commands to get the change sets and files modified on the steam.
Then use "scm diff" to show the difference of a file in two change sets. You may need some scripting to get lines of changes then.
David Lafreniere selected this answer as the correct answer

David Lafreniere commented Jul 11 '16, 11:23 a.m.

There currently is no build-in feature to determine/calculate the LOC. The answer above would be one way, or you could load an entire workspace/stream to disk, then write your own tool to walk/read the files, generating your own report of the LOC per file as you go.

Your answer

Register or to post your answer.