comparison cmdline/org/tmatesoft/hg/console/Log.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 45dc79e545f5
children 5dcb4581c8ef
comparison
equal deleted inserted replaced
426:063b0663495a 427:31a89587eb04
18 18
19 import static org.tmatesoft.hg.console.Options.asSet; 19 import static org.tmatesoft.hg.console.Options.asSet;
20 20
21 import java.util.List; 21 import java.util.List;
22 22
23 import org.tmatesoft.hg.core.HgChangesetHandler;
23 import org.tmatesoft.hg.core.HgFileRevision; 24 import org.tmatesoft.hg.core.HgFileRevision;
24 import org.tmatesoft.hg.core.HgLogCommand; 25 import org.tmatesoft.hg.core.HgLogCommand;
25 import org.tmatesoft.hg.repo.HgDataFile; 26 import org.tmatesoft.hg.repo.HgDataFile;
26 import org.tmatesoft.hg.repo.HgRepository; 27 import org.tmatesoft.hg.repo.HgRepository;
27 import org.tmatesoft.hg.util.CancelSupport; 28 import org.tmatesoft.hg.util.CancelSupport;
117 int rv = start_end[1] - start_end[0]; 118 int rv = start_end[1] - start_end[0];
118 start_end[1]--; // range needs index, not length 119 start_end[1]--; // range needs index, not length
119 return rv; 120 return rv;
120 } 121 }
121 122
122 private static final class Dump extends ChangesetDumpHandler implements HgLogCommand.FileHistoryHandler { 123 private static final class Dump extends ChangesetDumpHandler implements HgChangesetHandler.WithCopyHistory {
123 124
124 public Dump(HgRepository hgRepo) { 125 public Dump(HgRepository hgRepo) {
125 super(hgRepo); 126 super(hgRepo);
126 } 127 }
127 128