Mercurial > jhg
diff src/org/tmatesoft/hg/repo/Revlog.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 | 114c9fe7b643 |
children | 0e01f9182e16 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/Revlog.java Tue May 17 03:40:52 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/Revlog.java Tue May 17 03:42:33 2011 +0200 @@ -98,7 +98,7 @@ // Till now, i follow approach that NULL nodeid is never part of revlog public final boolean isKnown(Nodeid nodeid) { final int rn = content.findLocalRevisionNumber(nodeid); - if (Integer.MIN_VALUE == rn) { + if (BAD_REVISION == rn) { return false; } if (rn < 0 || rn >= content.revisionCount()) {