Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgManifest.java @ 300:650b45d290b1
Share range check code
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sat, 17 Sep 2011 13:41:04 +0200 |
parents | 6dbbc53fc46d |
children | 85b8efde5586 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgManifest.java Sat Sep 17 13:26:52 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgManifest.java Sat Sep 17 13:41:04 2011 +0200 @@ -101,6 +101,12 @@ } int start0 = fromChangelog(start); int end0 = fromChangelog(end); + if (end0 < start0) { + // there are tool-constructed repositories that got order of changeset revisions completely different from that of manifest + int x = end0; + end0 = start0; + start0 = x; + } content.iterate(start0, end0, true, new ManifestParser(inspector)); }