comparison src/org/tmatesoft/hg/core/HgManifestCommand.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 31a89587eb04
comparison
equal deleted inserted replaced
423:9c9c442b5f2e 424:6437d261048a
129 void file(HgFileRevision fileRevision); // XXX allow to check p is invalid (df.exists()) 129 void file(HgFileRevision fileRevision); // XXX allow to check p is invalid (df.exists())
130 void end(Nodeid manifestRevision); 130 void end(Nodeid manifestRevision);
131 } 131 }
132 132
133 // I'd rather let HgManifestCommand implement HgManifest.Inspector directly, but this pollutes API alot 133 // I'd rather let HgManifestCommand implement HgManifest.Inspector directly, but this pollutes API alot
134 private class Mediator implements HgManifest.Inspector2 { 134 private class Mediator implements HgManifest.Inspector {
135 // file names are likely to repeat in each revision, hence caching of Paths. 135 // file names are likely to repeat in each revision, hence caching of Paths.
136 // However, once HgManifest.Inspector switches to Path objects, perhaps global Path pool 136 // However, once HgManifest.Inspector switches to Path objects, perhaps global Path pool
137 // might be more effective? 137 // might be more effective?
138 private PathPool pathPool; 138 private PathPool pathPool;
139 private List<HgFileRevision> manifestContent; 139 private List<HgFileRevision> manifestContent;
179 } 179 }
180 visitor.end(manifestNodeid); 180 visitor.end(manifestNodeid);
181 manifestNodeid = null; 181 manifestNodeid = null;
182 return true; 182 return true;
183 } 183 }
184 public boolean next(Nodeid nid, String fname, String flags) {
185 throw new IllegalStateException(HgManifest.Inspector2.class.getName());
186 }
187 184
188 public boolean next(Nodeid nid, Path fname, Flags flags) { 185 public boolean next(Nodeid nid, Path fname, Flags flags) {
189 if (matcher != null && !matcher.accept(fname)) { 186 if (matcher != null && !matcher.accept(fname)) {
190 return true; 187 return true;
191 } 188 }