Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgStatusCollector.java @ 424:6437d261048a
Deprecated code removed
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 28 Mar 2012 15:42:15 +0200 |
parents | 9c9c442b5f2e |
children | 48f993aa2f41 |
comparison
equal
deleted
inserted
replaced
423:9c9c442b5f2e | 424:6437d261048a |
---|---|
108 assert minRev <= maxRev; | 108 assert minRev <= maxRev; |
109 int[] revisionsToCollect = new int[maxRev - minRev + 1]; | 109 int[] revisionsToCollect = new int[maxRev - minRev + 1]; |
110 for (int x = minRev, i = 0; x <= maxRev; i++, x++) { | 110 for (int x = minRev, i = 0; x <= maxRev; i++, x++) { |
111 revisionsToCollect[i] = x; | 111 revisionsToCollect[i] = x; |
112 } | 112 } |
113 repo.getManifest().walk(new HgManifest.Inspector2() { | 113 repo.getManifest().walk(new HgManifest.Inspector() { |
114 private ManifestRevision delegate; | 114 private ManifestRevision delegate; |
115 private boolean cacheHit; // range may include revisions we already know about, do not re-create them | 115 private boolean cacheHit; // range may include revisions we already know about, do not re-create them |
116 | 116 |
117 public boolean begin(int manifestRevision, Nodeid nid, int changelogRevision) { | 117 public boolean begin(int manifestRevision, Nodeid nid, int changelogRevision) { |
118 assert delegate == null; | 118 assert delegate == null; |
124 // otherwise remove entries we just added | 124 // otherwise remove entries we just added |
125 delegate.begin(manifestRevision, nid, changelogRevision); | 125 delegate.begin(manifestRevision, nid, changelogRevision); |
126 cacheHit = false; | 126 cacheHit = false; |
127 } | 127 } |
128 return true; | 128 return true; |
129 } | |
130 | |
131 public boolean next(Nodeid nid, String fname, String flags) { | |
132 throw new IllegalStateException(HgManifest.Inspector2.class.getName()); | |
133 } | 129 } |
134 | 130 |
135 public boolean next(Nodeid nid, Path fname, HgManifest.Flags flags) { | 131 public boolean next(Nodeid nid, Path fname, HgManifest.Flags flags) { |
136 if (!cacheHit) { | 132 if (!cacheHit) { |
137 delegate.next(nid, fname, flags); | 133 delegate.next(nid, fname, flags); |