Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/FileAnnotation.java @ 629:5f52074707b2
Diff/blame methods as command, their residence in HgDataFile was a mistake
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 22 May 2013 16:46:15 +0200 |
parents | 6526d8adbc0f |
children | 72c979555cb8 |
comparison
equal
deleted
inserted
replaced
628:6526d8adbc0f | 629:5f52074707b2 |
---|---|
17 package org.tmatesoft.hg.internal; | 17 package org.tmatesoft.hg.internal; |
18 | 18 |
19 | 19 |
20 import org.tmatesoft.hg.core.HgCallbackTargetException; | 20 import org.tmatesoft.hg.core.HgCallbackTargetException; |
21 import org.tmatesoft.hg.core.HgIterateDirection; | 21 import org.tmatesoft.hg.core.HgIterateDirection; |
22 import org.tmatesoft.hg.repo.HgBlameInspector; | 22 import org.tmatesoft.hg.core.HgBlameInspector; |
23 import org.tmatesoft.hg.repo.HgBlameInspector.RevisionDescriptor; | 23 import org.tmatesoft.hg.core.HgBlameInspector.RevisionDescriptor; |
24 import org.tmatesoft.hg.repo.HgDataFile; | 24 import org.tmatesoft.hg.repo.HgDataFile; |
25 import org.tmatesoft.hg.repo.HgInvalidStateException; | 25 import org.tmatesoft.hg.repo.HgInvalidStateException; |
26 import org.tmatesoft.hg.repo.HgRuntimeException; | 26 import org.tmatesoft.hg.repo.HgRuntimeException; |
27 | 27 |
28 /** | 28 /** |
52 public static void annotate(HgDataFile df, int changelogRevisionIndex, LineInspector insp) throws HgCallbackTargetException, HgRuntimeException { | 52 public static void annotate(HgDataFile df, int changelogRevisionIndex, LineInspector insp) throws HgCallbackTargetException, HgRuntimeException { |
53 if (!df.exists()) { | 53 if (!df.exists()) { |
54 return; | 54 return; |
55 } | 55 } |
56 FileAnnotation fa = new FileAnnotation(insp); | 56 FileAnnotation fa = new FileAnnotation(insp); |
57 df.annotate(changelogRevisionIndex, fa, HgIterateDirection.NewToOld); | 57 df.annotate(0, changelogRevisionIndex, fa, HgIterateDirection.NewToOld); |
58 } | 58 } |
59 | 59 |
60 // keeps <startSeq1, startSeq2, len> of equal blocks, origin to target, from some previous step | 60 // keeps <startSeq1, startSeq2, len> of equal blocks, origin to target, from some previous step |
61 private RangeSeq activeEquals; | 61 private RangeSeq activeEquals; |
62 // equal blocks of the current iteration, to be recalculated before next step | 62 // equal blocks of the current iteration, to be recalculated before next step |