Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-5843

Allow to use the original SVN author on merges

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0
    • Component/s: Scm
    • Labels:
      None

      Description

      See pull request: https://github.com/SonarCommunity/sonar-scm-activity/pull/7

      Current implementation of the SvnExeScmProvider shows the user who merged branch as changes author.
      This pull request uses svn '--use-merge-history' option to extract the original author for each line.

      The raised error is :

      [INFO] [21:44:31.350] Retrieve SCM info for /path/to/xxx.java
      [ERROR] [21:44:31.353] Failure during SCM blame retrievaljava.lang.NullPointerException: null
              at org.sonar.plugins.scmactivity.Blame.normalizeString(Blame.java:99) ~[na:na]
              at org.sonar.plugins.scmactivity.Blame.save(Blame.java:61) ~[na:na]
              at org.sonar.plugins.scmactivity.BlameVersionSelector.fileChanged(BlameVersionSelector.java:59) ~[na:na]
              at org.sonar.plugins.scmactivity.BlameVersionSelector.detect(BlameVersionSelector.java:47) ~[na:na]
              at org.sonar.plugins.scmactivity.ScmActivitySensor$1.call(ScmActivitySensor.java:109) ~[na:na]
              at org.sonar.plugins.scmactivity.ScmActivitySensor$1.call(ScmActivitySensor.java:107) ~[na:na]
              at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_67]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_67]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_67]
              at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_67]
      

        Attachments

          Activity

            People

            • Assignee:
              henryju OLD - Julien HENRY
              Reporter:
              henryju OLD - Julien HENRY
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: