Mercurial > jhg
diff src/org/tmatesoft/hg/internal/ChangelogHelper.java @ 154:ba2bf656f00f
Changeset => RawChangeset
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 24 Feb 2011 22:16:19 +0100 |
parents | 1c1891ad1c73 |
children | f052f40839ec |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/ChangelogHelper.java Thu Feb 24 21:38:46 2011 +0100 +++ b/src/org/tmatesoft/hg/internal/ChangelogHelper.java Thu Feb 24 22:16:19 2011 +0100 @@ -18,7 +18,7 @@ import java.util.TreeMap; -import org.tmatesoft.hg.repo.HgChangelog.Changeset; +import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; import org.tmatesoft.hg.repo.HgDataFile; import org.tmatesoft.hg.repo.HgInternals; import org.tmatesoft.hg.repo.HgRepository; @@ -32,7 +32,7 @@ public class ChangelogHelper { private final int leftBoundary; private final HgRepository repo; - private final TreeMap<Integer, Changeset> cache = new TreeMap<Integer, Changeset>(); + private final TreeMap<Integer, RawChangeset> cache = new TreeMap<Integer, RawChangeset>(); private String nextCommitAuthor; /** @@ -58,13 +58,13 @@ * @return changeset where specified file is mentioned among affected files, or * <code>null</code> if none found up to leftBoundary */ - public Changeset findLatestChangeWith(Path file) { + public RawChangeset findLatestChangeWith(Path file) { HgDataFile df = repo.getFileNode(file); int changelogRev = df.getChangesetLocalRevision(HgRepository.TIP); if (changelogRev >= leftBoundary) { // the method is likely to be invoked for different files, // while changesets might be the same. Cache 'em not to read too much. - Changeset cs = cache.get(changelogRev); + RawChangeset cs = cache.get(changelogRev); if (cs == null) { cs = repo.getChangelog().range(changelogRev, changelogRev).get(0); cache.put(changelogRev, cs);