Mercurial > jhg
comparison cmdline/org/tmatesoft/hg/console/Log.java @ 131:aa1629f36482
Renamed .core classes to start with Hg prefix
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 16 Feb 2011 20:47:56 +0100 |
parents | 645829962785 |
children | 4a948ec83980 |
comparison
equal
deleted
inserted
replaced
130:7567f4a42fe5 | 131:aa1629f36482 |
---|---|
19 import java.util.Formatter; | 19 import java.util.Formatter; |
20 import java.util.LinkedList; | 20 import java.util.LinkedList; |
21 import java.util.List; | 21 import java.util.List; |
22 | 22 |
23 import org.tmatesoft.hg.core.HgChangeset; | 23 import org.tmatesoft.hg.core.HgChangeset; |
24 import org.tmatesoft.hg.core.LogCommand; | 24 import org.tmatesoft.hg.core.HgLogCommand; |
25 import org.tmatesoft.hg.core.LogCommand.FileRevision; | 25 import org.tmatesoft.hg.core.HgLogCommand.FileRevision; |
26 import org.tmatesoft.hg.core.Nodeid; | 26 import org.tmatesoft.hg.core.Nodeid; |
27 import org.tmatesoft.hg.core.Path; | 27 import org.tmatesoft.hg.core.Path; |
28 import org.tmatesoft.hg.repo.HgChangelog; | 28 import org.tmatesoft.hg.repo.HgChangelog; |
29 import org.tmatesoft.hg.repo.HgDataFile; | 29 import org.tmatesoft.hg.repo.HgDataFile; |
30 import org.tmatesoft.hg.repo.HgRepository; | 30 import org.tmatesoft.hg.repo.HgRepository; |
46 System.out.println(hgRepo.getLocation()); | 46 System.out.println(hgRepo.getLocation()); |
47 final Dump dump = new Dump(hgRepo); | 47 final Dump dump = new Dump(hgRepo); |
48 dump.complete = true; //cmdLineOpts; | 48 dump.complete = true; //cmdLineOpts; |
49 dump.verbose = false; //cmdLineOpts; | 49 dump.verbose = false; //cmdLineOpts; |
50 dump.reverseOrder = true; | 50 dump.reverseOrder = true; |
51 LogCommand cmd = new LogCommand(hgRepo); | 51 HgLogCommand cmd = new HgLogCommand(hgRepo); |
52 if (cmdLineOpts.users != null) { | 52 if (cmdLineOpts.users != null) { |
53 for (String u : cmdLineOpts.users) { | 53 for (String u : cmdLineOpts.users) { |
54 cmd.user(u); | 54 cmd.user(u); |
55 } | 55 } |
56 } | 56 } |
113 int rv = start_end[1] - start_end[0]; | 113 int rv = start_end[1] - start_end[0]; |
114 start_end[1]--; // range needs index, not length | 114 start_end[1]--; // range needs index, not length |
115 return rv; | 115 return rv; |
116 } | 116 } |
117 | 117 |
118 private static final class Dump implements LogCommand.FileHistoryHandler { | 118 private static final class Dump implements HgLogCommand.FileHistoryHandler { |
119 // params | 119 // params |
120 boolean complete = false; // roughly --debug | 120 boolean complete = false; // roughly --debug |
121 boolean reverseOrder = false; | 121 boolean reverseOrder = false; |
122 boolean verbose = true; // roughly -v | 122 boolean verbose = true; // roughly -v |
123 // own | 123 // own |