It's all about the answers!

Ask a question

Can we get a report from RTC which gives us how many times each file changed?


Mohanraj Ragupathi (54417) | asked May 29 '14, 5:49 a.m.
 I wanted a metric for finding “active files” in software for the below reasons.

 Active files are “the set of source files which are changed unusually often”. Active files can help focus code reviews, implement targeted testing, show areas for potential defects.

Statistically a study shows that active files constitute only between 2-8% of the total system size, contribute 20-40% of system file changes, and are responsible for 60-90% of all defects.

 Can you please suggest the best method of collecting this information for projects automatically?

One answer



permanent link
sam detweiler (12.5k6188201) | answered May 29 '14, 8:22 a.m.
rtc doesn't keep track of 'files' it keeps track of changes.

so, you would have to do a two step process, from the commandline

1. scm list changsets - to get all the changeset ids
2. using the changeset ids, list all the changes in the change set. scm list changes changeset_id

then u would have to manipulate those results into the name of the file that changed,
and then use something (database, excel, ...) to count them.

I'm not aware of any provided by the product (tool/report/???) that does this


Your answer


Register or to post your answer.