comparison src/org/tmatesoft/hg/internal/ChangelogHelper.java @ 367:2fadf8695f8a

Use 'revision index' instead of the vague 'local revision number' concept in the API
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 16 Dec 2011 15:37:27 +0100
parents 5f9073eabf06
children 6e37c7168585
comparison
equal deleted inserted replaced
366:189dc6dc1c3e 367:2fadf8695f8a
61 public RawChangeset findLatestChangeWith(Path file) throws HgInvalidControlFileException { 61 public RawChangeset findLatestChangeWith(Path file) throws HgInvalidControlFileException {
62 HgDataFile df = repo.getFileNode(file); 62 HgDataFile df = repo.getFileNode(file);
63 if (!df.exists()) { 63 if (!df.exists()) {
64 return null; 64 return null;
65 } 65 }
66 int changelogRev = df.getChangesetLocalRevision(HgRepository.TIP); 66 int changelogRev = df.getChangesetRevisionIndex(HgRepository.TIP);
67 if (changelogRev >= leftBoundary) { 67 if (changelogRev >= leftBoundary) {
68 // the method is likely to be invoked for different files, 68 // the method is likely to be invoked for different files,
69 // while changesets might be the same. Cache 'em not to read too much. 69 // while changesets might be the same. Cache 'em not to read too much.
70 RawChangeset cs = cache.get(changelogRev); 70 RawChangeset cs = cache.get(changelogRev);
71 if (cs == null) { 71 if (cs == null) {