Mercurial > hg4j
diff 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 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgFileInformer.java Fri Dec 16 04:43:18 2011 +0100 +++ b/src/org/tmatesoft/hg/core/HgFileInformer.java Fri Dec 16 15:37:27 2011 +0100 @@ -124,10 +124,10 @@ Nodeid toExtract = null; try { if (cachedManifest == null) { - int csetRev = repo.getChangelog().getLocalRevision(cset); + int csetRev = repo.getChangelog().getRevisionIndex(cset); cachedManifest = new ManifestRevision(null, null); // XXX how about context and cached manifest revisions repo.getManifest().walk(csetRev, csetRev, cachedManifest); - // cachedManifest shall be meaningful - changelog.getLocalRevision above ensures we've got version that exists. + // cachedManifest shall be meaningful - changelog.getRevisionIndex() above ensures we've got version that exists. } toExtract = cachedManifest.nodeid(file); if (toExtract == null && followRenames) {