Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgFileInformer.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 | 8099939af5fa |
children | c7a513d8ce20 |
comparison
equal
deleted
inserted
replaced
366:189dc6dc1c3e | 367:2fadf8695f8a |
---|---|
122 return checkResult; | 122 return checkResult; |
123 } | 123 } |
124 Nodeid toExtract = null; | 124 Nodeid toExtract = null; |
125 try { | 125 try { |
126 if (cachedManifest == null) { | 126 if (cachedManifest == null) { |
127 int csetRev = repo.getChangelog().getLocalRevision(cset); | 127 int csetRev = repo.getChangelog().getRevisionIndex(cset); |
128 cachedManifest = new ManifestRevision(null, null); // XXX how about context and cached manifest revisions | 128 cachedManifest = new ManifestRevision(null, null); // XXX how about context and cached manifest revisions |
129 repo.getManifest().walk(csetRev, csetRev, cachedManifest); | 129 repo.getManifest().walk(csetRev, csetRev, cachedManifest); |
130 // cachedManifest shall be meaningful - changelog.getLocalRevision above ensures we've got version that exists. | 130 // cachedManifest shall be meaningful - changelog.getRevisionIndex() above ensures we've got version that exists. |
131 } | 131 } |
132 toExtract = cachedManifest.nodeid(file); | 132 toExtract = cachedManifest.nodeid(file); |
133 if (toExtract == null && followRenames) { | 133 if (toExtract == null && followRenames) { |
134 while (toExtract == null && dataFile.isCopy()) { | 134 while (toExtract == null && dataFile.isCopy()) { |
135 renamed = true; | 135 renamed = true; |