Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgStatusCollector.java @ 218:047b1dec7a04
Issue 7: Correctly handle manifest and changelog with different number of (or non-matching) revisions
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 17 May 2011 03:42:33 +0200 |
parents | 3a7696fb457c |
children | 04735ce6bed2 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgStatusCollector.java Tue May 17 03:40:52 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgStatusCollector.java Tue May 17 03:42:33 2011 +0200 @@ -175,7 +175,7 @@ if (inspector instanceof Record) { ((Record) inspector).init(rev1, rev2, this); } - final int lastManifestRevision = repo.getManifest().getLastRevision(); + final int lastManifestRevision = repo.getChangelog().getLastRevision(); if (rev1 == TIP) { rev1 = lastManifestRevision; }