Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgStatusCommand.java @ 454:36fd1fd06492
oth.util.Status renamed to Outcome as the noun is too overloaded, especially in scm
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 13 Jun 2012 21:07:39 +0200 |
parents | cd658b24a620 |
children | d78cb5ca3053 |
comparison
equal
deleted
inserted
replaced
453:7b883bf03b14 | 454:36fd1fd06492 |
---|---|
30 import org.tmatesoft.hg.repo.HgStatusInspector; | 30 import org.tmatesoft.hg.repo.HgStatusInspector; |
31 import org.tmatesoft.hg.repo.HgWorkingCopyStatusCollector; | 31 import org.tmatesoft.hg.repo.HgWorkingCopyStatusCollector; |
32 import org.tmatesoft.hg.util.CancelSupport; | 32 import org.tmatesoft.hg.util.CancelSupport; |
33 import org.tmatesoft.hg.util.CancelledException; | 33 import org.tmatesoft.hg.util.CancelledException; |
34 import org.tmatesoft.hg.util.Path; | 34 import org.tmatesoft.hg.util.Path; |
35 import org.tmatesoft.hg.util.Status; | 35 import org.tmatesoft.hg.util.Outcome; |
36 | 36 |
37 /** | 37 /** |
38 * Command to obtain file status information, 'hg status' counterpart. | 38 * Command to obtain file status information, 'hg status' counterpart. |
39 * | 39 * |
40 * @author Artem Tikhomirov | 40 * @author Artem Tikhomirov |
319 } | 319 } |
320 } | 320 } |
321 | 321 |
322 public void invalid(Path fname, Exception err) { | 322 public void invalid(Path fname, Exception err) { |
323 try { | 323 try { |
324 handler.error(fname, new Status(Status.Kind.ERROR, "Failed to get file status", err)); | 324 handler.error(fname, new Outcome(Outcome.Kind.Failure, "Failed to get file status", err)); |
325 handlerCancelSupport.checkCancelled(); | 325 handlerCancelSupport.checkCancelled(); |
326 } catch (HgCallbackTargetException ex) { | 326 } catch (HgCallbackTargetException ex) { |
327 failure = ex; | 327 failure = ex; |
328 } catch (CancelledException ex) { | 328 } catch (CancelledException ex) { |
329 cancellation = ex; | 329 cancellation = ex; |