Mercurial > hg4j
diff cmdline/org/tmatesoft/hg/console/Status.java @ 427:31a89587eb04
FIXMEs: consistent names, throws for commands and their handlers. Use of checked exceptions in hi-level api
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 29 Mar 2012 17:14:35 +0200 |
parents | 150500515714 |
children | 36fd1fd06492 |
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Status.java Wed Mar 28 19:34:37 2012 +0200 +++ b/cmdline/org/tmatesoft/hg/console/Status.java Thu Mar 29 17:14:35 2012 +0200 @@ -74,7 +74,7 @@ final EnumMap<HgStatus.Kind, List<Path>> data = new EnumMap<HgStatus.Kind, List<Path>>(HgStatus.Kind.class); final Map<Path, Path> copies = showCopies ? new HashMap<Path,Path>() : null; - public void handleStatus(HgStatus s) { + public void status(HgStatus s) { List<Path> l = data.get(s.getKind()); if (l == null) { l = new LinkedList<Path>(); @@ -86,7 +86,7 @@ } } - public void handleError(Path file, org.tmatesoft.hg.util.Status s) { + public void error(Path file, org.tmatesoft.hg.util.Status s) { System.out.printf("FAILURE: %s %s\n", s.getMessage(), file); s.getException().printStackTrace(System.out); }