Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.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 | a0864b2892cd |
children | 5f9073eabf06 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java Thu Nov 24 04:33:42 2011 +0100 +++ b/src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java Tue Nov 29 03:46:17 2011 +0100 @@ -141,7 +141,7 @@ // may be invoked few times, TIP or WORKING_COPY indicate comparison shall be run against working copy parent // NOTE, use of TIP constant requires certain care. TIP here doesn't mean latest cset, but actual working copy parent. - public void walk(int baseRevision, HgStatusInspector inspector) { + public void walk(int baseRevision, HgStatusInspector inspector) throws IOException { if (HgInternals.wrongLocalRevision(baseRevision) || baseRevision == BAD_REVISION) { throw new IllegalArgumentException(String.valueOf(baseRevision)); } @@ -266,7 +266,7 @@ } } - public HgStatusCollector.Record status(int baseRevision) { + public HgStatusCollector.Record status(int baseRevision) throws IOException { HgStatusCollector.Record rv = new HgStatusCollector.Record(); walk(baseRevision, rv); return rv; @@ -607,11 +607,11 @@ walker = fileWalker; } - public void reset() { + public void reset() throws IOException { walker.reset(); } - public boolean hasNext() { + public boolean hasNext() throws IOException { while (walker.hasNext()) { walker.next(); if (filter.accept(walker.name())) { @@ -622,7 +622,7 @@ return false; } - public void next() { + public void next() throws IOException { if (didNext) { didNext = false; } else {