Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-6256

Blame calculation problem: Blame#getTotalLines differs from FileRevision#getLineCount

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Low
    • N/A
    • None
    • None

    Description

      For example when calculating blame for https://swarm.workshop.perforce.com/changes/16637, we get the following error:

      2015-12-09 19:51:13,181 DEBUG [IncrPing2 P4-swarm-B ] fisheye BlameChunksCalculator-applyHunks - Applying hunks; oldBlame=[0-1:301753, 1-17:301159, 17-20:301753], hunk
      s=[<0:1, 0:1>, <17:0, 17:3>], hunksRevId=301785
      2015-12-09 19:51:13,182 DEBUG [IncrPing2 P4-swarm-B ] fisheye BaseBlameAndLinecountCalculator-calcBlame - Problems calculating blame for guest/perforce_software/sdp/de
      v/Server/Unix/p4/common/bin/sdp_hosts.cfg@16638, will fetch from repository instead
      com.cenqua.fisheye.rep.AuthorBlameException: guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/sdp_hosts.cfg@16638: Revision's calculated number of blame lines differs from stored revision linecount: blameLines=23, revisionLinecount=20 (P4RevInfo{P4RevInfo=guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/sdp_hosts.cfg@16638, revId=301785, author=tom_tyler, comment=Routine merge down to dev from main using:, date=Wed Dec 09 19:51:27 CET 2015, copyFrom=null, ancestors=[guest/perforce_software/sdp/main/Server/Unix/p4/common/bin/sdp_hosts.cfg@16637]})
              at com.cenqua.fisheye.rep.BaseBlameAndLinecountCalculator.assertBlameLinesEqualRevisionLines(BaseBlameAndLinecountCalculator.java:514) [fisheye.jar:?]
              at com.cenqua.fisheye.rep.BaseBlameAndLinecountCalculator.getAuthDiff(BaseBlameAndLinecountCalculator.java:488) [fisheye.jar:?]

      See full log attached to FECRU-6112.

      This problem also appears when processing http://svn.apache.org/viewvc/commons/proper/io. See the attached log.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kcichy Kamil Cichy
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: