Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
299:45dc79e545f5 | 300:650b45d290b1 |
---|---|
99 if (inspector == null) { | 99 if (inspector == null) { |
100 throw new IllegalArgumentException(); | 100 throw new IllegalArgumentException(); |
101 } | 101 } |
102 int start0 = fromChangelog(start); | 102 int start0 = fromChangelog(start); |
103 int end0 = fromChangelog(end); | 103 int end0 = fromChangelog(end); |
104 if (end0 < start0) { | |
105 // there are tool-constructed repositories that got order of changeset revisions completely different from that of manifest | |
106 int x = end0; | |
107 end0 = start0; | |
108 start0 = x; | |
109 } | |
104 content.iterate(start0, end0, true, new ManifestParser(inspector)); | 110 content.iterate(start0, end0, true, new ManifestParser(inspector)); |
105 } | 111 } |
106 | 112 |
107 /** | 113 /** |
108 * "Sparse" iteration of the manifest | 114 * "Sparse" iteration of the manifest |