Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgStatusCollector.java @ 135:3959bffb14e9
explicit op name instead math op to get last rev number
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 16 Feb 2011 22:00:39 +0100 |
parents | 4a948ec83980 |
children | 8248aae33f7d |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgStatusCollector.java Wed Feb 16 21:51:32 2011 +0100 +++ b/src/org/tmatesoft/hg/repo/HgStatusCollector.java Wed Feb 16 22:00:39 2011 +0100 @@ -105,10 +105,10 @@ ((Record) inspector).init(rev1, rev2, this); } if (rev1 == TIP) { - rev1 = repo.getManifest().getRevisionCount() - 1; + rev1 = repo.getManifest().getLastRevision(); } if (rev2 == TIP) { - rev2 = repo.getManifest().getRevisionCount() - 1; // XXX add Revlog.tip() func ? + rev2 = repo.getManifest().getLastRevision(); } // in fact, rev1 and rev2 are often next (or close) to each other, // thus, we can optimize Manifest reads here (manifest.walk(rev1, rev2))