Ask a questionAsk a question
 

AnswerLabel required for Code Churn statistics

  • Monday, October 26, 2009 9:53 AMHisham Jaber Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    Is is a requirement to label the builds in order for CodeChurn to be calculated?
    If yes, what is the reason behind that?

    Basically I want to find out what the CodeChurn is between two different changesets of a specific file.

    Thank you,
    Hisham.

Answers

  • Tuesday, October 27, 2009 2:55 AMHongye SunMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello Hisham,

    It is not neccesary to label the builds. CodeChurn is relative to ChangeSet and Files. By making use of ChangeSet and Filename dimension, you can get what you want.

    Please use Excel to create a pivot table which connects to the TFS OLAP database and Code Churn perspective.

    1. Changeset and Filename dimensions as report filter
    2. Code Churn Count measure as value

    Select the changesets from start to the end one, and select the interested file. Then you will be able to view the code churn count.

    Hope it helps.

     

    Hongye Sun [MSFT]
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked As Answer byHisham Jaber Wednesday, October 28, 2009 7:23 AM
    •  

All Replies

  • Tuesday, October 27, 2009 2:55 AMHongye SunMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello Hisham,

    It is not neccesary to label the builds. CodeChurn is relative to ChangeSet and Files. By making use of ChangeSet and Filename dimension, you can get what you want.

    Please use Excel to create a pivot table which connects to the TFS OLAP database and Code Churn perspective.

    1. Changeset and Filename dimensions as report filter
    2. Code Churn Count measure as value

    Select the changesets from start to the end one, and select the interested file. Then you will be able to view the code churn count.

    Hope it helps.

     

    Hongye Sun [MSFT]
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked As Answer byHisham Jaber Wednesday, October 28, 2009 7:23 AM
    •  
  • Wednesday, October 28, 2009 7:23 AMHisham Jaber Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello Hongye.

    Thank you for the answer; I tried to the Excel solution and it worked like a charm.

    Regards,
    Hisham.