Mercurial > jhg
comparison src/org/tmatesoft/hg/internal/RepositoryComparator.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 | 994b5813a925 |
comparison
equal
deleted
inserted
replaced
366:189dc6dc1c3e | 367:2fadf8695f8a |
---|---|
105 if (!localRepo.hasChildren(n)) { | 105 if (!localRepo.hasChildren(n)) { |
106 // there might be (old) nodes, known both locally and remotely, with no children | 106 // there might be (old) nodes, known both locally and remotely, with no children |
107 // hence, we don't need to consider their local revision number | 107 // hence, we don't need to consider their local revision number |
108 continue; | 108 continue; |
109 } | 109 } |
110 int lr = changelog.getLocalRevision(n); | 110 int lr = changelog.getRevisionIndex(n); |
111 if (lr < earliestRevision) { | 111 if (lr < earliestRevision) { |
112 earliestRevision = lr; | 112 earliestRevision = lr; |
113 } | 113 } |
114 } | 114 } |
115 if (earliestRevision == Integer.MAX_VALUE) { | 115 if (earliestRevision == Integer.MAX_VALUE) { |