Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestAuxUtilities.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 | 12f668401613 |
comparison
equal
deleted
inserted
replaced
423:9c9c442b5f2e | 424:6437d261048a |
---|---|
149 } | 149 } |
150 | 150 |
151 @Test | 151 @Test |
152 public void testManifestCancelSupport() throws Exception { | 152 public void testManifestCancelSupport() throws Exception { |
153 HgRepository repository = Configuration.get().find("branches-1"); // any repo with as many revisions as possible | 153 HgRepository repository = Configuration.get().find("branches-1"); // any repo with as many revisions as possible |
154 class InspectorImplementsAdaptable implements HgManifest.Inspector2, Adaptable { | 154 class InspectorImplementsAdaptable implements HgManifest.Inspector, Adaptable { |
155 public final int when2stop; | 155 public final int when2stop; |
156 public int lastVisitet = 0; | 156 public int lastVisitet = 0; |
157 private final CancelImpl cancelImpl = new CancelImpl(); | 157 private final CancelImpl cancelImpl = new CancelImpl(); |
158 | 158 |
159 public InspectorImplementsAdaptable(int limit) { | 159 public InspectorImplementsAdaptable(int limit) { |
162 | 162 |
163 public boolean begin(int mainfestRevision, Nodeid nid, int changelogRevision) { | 163 public boolean begin(int mainfestRevision, Nodeid nid, int changelogRevision) { |
164 if (++lastVisitet == when2stop) { | 164 if (++lastVisitet == when2stop) { |
165 cancelImpl.stop(); | 165 cancelImpl.stop(); |
166 } | 166 } |
167 return true; | |
168 } | |
169 | |
170 public boolean next(Nodeid nid, String fname, String flags) { | |
171 return true; | 167 return true; |
172 } | 168 } |
173 | 169 |
174 public boolean end(int manifestRevision) { | 170 public boolean end(int manifestRevision) { |
175 return true; | 171 return true; |