Mercurial > jhg
comparison 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 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 217:e39cf474ef94 | 218:047b1dec7a04 | 
|---|---|
| 173 throw new IllegalArgumentException(); | 173 throw new IllegalArgumentException(); | 
| 174 } | 174 } | 
| 175 if (inspector instanceof Record) { | 175 if (inspector instanceof Record) { | 
| 176 ((Record) inspector).init(rev1, rev2, this); | 176 ((Record) inspector).init(rev1, rev2, this); | 
| 177 } | 177 } | 
| 178 final int lastManifestRevision = repo.getManifest().getLastRevision(); | 178 final int lastManifestRevision = repo.getChangelog().getLastRevision(); | 
| 179 if (rev1 == TIP) { | 179 if (rev1 == TIP) { | 
| 180 rev1 = lastManifestRevision; | 180 rev1 = lastManifestRevision; | 
| 181 } | 181 } | 
| 182 if (rev2 == TIP) { | 182 if (rev2 == TIP) { | 
| 183 rev2 = lastManifestRevision; | 183 rev2 = lastManifestRevision; | 
