Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgStatusCommand.java @ 350:33eaed1ad130
Allow FileIterator report any errors from the underlaying file system up to the client
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Tue, 29 Nov 2011 03:46:17 +0100 |
| parents | 6d1804fe0ed7 |
| children | 150500515714 |
comparison
equal
deleted
inserted
replaced
| 349:bba9f52cacf3 | 350:33eaed1ad130 |
|---|---|
| 18 | 18 |
| 19 import static org.tmatesoft.hg.core.HgStatus.Kind.*; | 19 import static org.tmatesoft.hg.core.HgStatus.Kind.*; |
| 20 import static org.tmatesoft.hg.repo.HgInternals.wrongLocalRevision; | 20 import static org.tmatesoft.hg.repo.HgInternals.wrongLocalRevision; |
| 21 import static org.tmatesoft.hg.repo.HgRepository.*; | 21 import static org.tmatesoft.hg.repo.HgRepository.*; |
| 22 | 22 |
| 23 import java.io.IOException; | |
| 23 import java.util.ConcurrentModificationException; | 24 import java.util.ConcurrentModificationException; |
| 24 import java.util.concurrent.CancellationException; | 25 import java.util.concurrent.CancellationException; |
| 25 | 26 |
| 26 import org.tmatesoft.hg.internal.ChangelogHelper; | 27 import org.tmatesoft.hg.internal.ChangelogHelper; |
| 27 import org.tmatesoft.hg.repo.HgRepository; | 28 import org.tmatesoft.hg.repo.HgRepository; |
| 157 | 158 |
| 158 /** | 159 /** |
| 159 * Perform status operation according to parameters set. | 160 * Perform status operation according to parameters set. |
| 160 * | 161 * |
| 161 * @param handler callback to get status information | 162 * @param handler callback to get status information |
| 163 * @throws IOException if there are (further unspecified) errors while walking working copy | |
| 162 * @throws IllegalArgumentException if handler is <code>null</code> | 164 * @throws IllegalArgumentException if handler is <code>null</code> |
| 163 * @throws ConcurrentModificationException if this command already runs (i.e. being used from another thread) | 165 * @throws ConcurrentModificationException if this command already runs (i.e. being used from another thread) |
| 164 */ | 166 */ |
| 165 public void execute(Handler statusHandler) throws CancellationException, HgException { | 167 public void execute(Handler statusHandler) throws CancellationException, HgException, IOException { |
| 166 if (statusHandler == null) { | 168 if (statusHandler == null) { |
| 167 throw new IllegalArgumentException(); | 169 throw new IllegalArgumentException(); |
| 168 } | 170 } |
| 169 if (mediator.busy()) { | 171 if (mediator.busy()) { |
| 170 throw new ConcurrentModificationException(); | 172 throw new ConcurrentModificationException(); |
