Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/FileAnnotation.java @ 568:8ed4f4f4f0a6
Blame facility refactored, get ready for follow/no-follow support
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 10 Apr 2013 15:45:53 +0200 |
parents | 6fbca6506bb5 |
children | 707b5c7c6fa4 |
comparison
equal
deleted
inserted
replaced
567:88f04c7cfedb | 568:8ed4f4f4f0a6 |
---|---|
56 public static void annotate(HgDataFile df, int changelogRevisionIndex, LineInspector insp) throws HgCallbackTargetException { | 56 public static void annotate(HgDataFile df, int changelogRevisionIndex, LineInspector insp) throws HgCallbackTargetException { |
57 if (!df.exists()) { | 57 if (!df.exists()) { |
58 return; | 58 return; |
59 } | 59 } |
60 FileAnnotation fa = new FileAnnotation(insp); | 60 FileAnnotation fa = new FileAnnotation(insp); |
61 HgBlameFacility af = new HgBlameFacility(); | 61 HgBlameFacility af = new HgBlameFacility(df); |
62 af.annotate(df, changelogRevisionIndex, fa, HgIterateDirection.NewToOld); | 62 af.annotate(changelogRevisionIndex, fa, HgIterateDirection.NewToOld); |
63 } | 63 } |
64 | 64 |
65 // keeps <startSeq1, startSeq2, len> of equal blocks, origin to target, from some previous step | 65 // keeps <startSeq1, startSeq2, len> of equal blocks, origin to target, from some previous step |
66 private RangeSeq activeEquals; | 66 private RangeSeq activeEquals; |
67 // equal blocks of the current iteration, to be recalculated before next step | 67 // equal blocks of the current iteration, to be recalculated before next step |