Mercurial > jhg
comparison cmdline/org/tmatesoft/hg/console/Manifest.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 | 9c9c442b5f2e |
children | d78cb5ca3053 |
comparison
equal
deleted
inserted
replaced
426:063b0663495a | 427:31a89587eb04 |
---|---|
17 package org.tmatesoft.hg.console; | 17 package org.tmatesoft.hg.console; |
18 | 18 |
19 import static org.tmatesoft.hg.console.Options.asSet; | 19 import static org.tmatesoft.hg.console.Options.asSet; |
20 import static org.tmatesoft.hg.repo.HgRepository.TIP; | 20 import static org.tmatesoft.hg.repo.HgRepository.TIP; |
21 | 21 |
22 import org.tmatesoft.hg.core.HgManifestHandler; | |
22 import org.tmatesoft.hg.core.HgFileRevision; | 23 import org.tmatesoft.hg.core.HgFileRevision; |
23 import org.tmatesoft.hg.core.HgManifestCommand; | 24 import org.tmatesoft.hg.core.HgManifestCommand; |
24 import org.tmatesoft.hg.core.Nodeid; | 25 import org.tmatesoft.hg.core.Nodeid; |
25 import org.tmatesoft.hg.repo.HgInvalidControlFileException; | 26 import org.tmatesoft.hg.repo.HgInvalidControlFileException; |
26 import org.tmatesoft.hg.repo.HgInvalidRevisionException; | 27 import org.tmatesoft.hg.repo.HgInvalidRevisionException; |
43 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); | 44 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); |
44 return; | 45 return; |
45 } | 46 } |
46 final boolean debug = cmdLineOpts.getBoolean("--debug"); | 47 final boolean debug = cmdLineOpts.getBoolean("--debug"); |
47 final boolean verbose = cmdLineOpts.getBoolean("-v", "--verbose"); | 48 final boolean verbose = cmdLineOpts.getBoolean("-v", "--verbose"); |
48 HgManifestCommand.Handler h = new HgManifestCommand.Handler() { | 49 HgManifestHandler h = new HgManifestHandler() { |
49 | 50 |
50 public void begin(Nodeid manifestRevision) { | 51 public void begin(Nodeid manifestRevision) { |
51 } | 52 } |
52 public void dir(Path p) { | 53 public void dir(Path p) { |
53 } | 54 } |