comparison cmdline/org/tmatesoft/hg/console/Manifest.java @ 74:6f1b88693d48

Complete refactoring to org.tmatesoft
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 24 Jan 2011 03:14:45 +0100
parents 9a03a80a0f2f
children a3a2e5deb320
comparison
equal deleted inserted replaced
73:0d279bcc4442 74:6f1b88693d48
14 * the terms of a license other than GNU General Public License 14 * the terms of a license other than GNU General Public License
15 * contact TMate Software at support@svnkit.com 15 * contact TMate Software at support@svnkit.com
16 */ 16 */
17 package org.tmatesoft.hg.console; 17 package org.tmatesoft.hg.console;
18 18
19 import static com.tmate.hgkit.ll.HgRepository.TIP; 19 import static org.tmatesoft.hg.repo.HgRepository.TIP;
20 20
21 import org.tmatesoft.hg.core.LogCommand.FileRevision;
22 import org.tmatesoft.hg.core.Nodeid;
21 import org.tmatesoft.hg.core.Path; 23 import org.tmatesoft.hg.core.Path;
22 import org.tmatesoft.hg.core.RepositoryTreeWalker; 24 import org.tmatesoft.hg.core.RepositoryTreeWalker;
23 import org.tmatesoft.hg.core.LogCommand.FileRevision; 25 import org.tmatesoft.hg.repo.HgManifest;
26 import org.tmatesoft.hg.repo.HgRepository;
24 27
25 import com.tmate.hgkit.fs.RepositoryLookup;
26 import com.tmate.hgkit.ll.HgManifest;
27 import com.tmate.hgkit.ll.HgRepository;
28 import com.tmate.hgkit.ll.Nodeid;
29 28
30 /** 29 /**
31 * 30 *
32 * @author Artem Tikhomirov 31 * @author Artem Tikhomirov
33 * @author TMate Software Ltd. 32 * @author TMate Software Ltd.
34 */ 33 */
35 public class Manifest { 34 public class Manifest {
36 35
37 public static void main(String[] args) throws Exception { 36 public static void main(String[] args) throws Exception {
38 RepositoryLookup repoLookup = new RepositoryLookup(); 37 Options cmdLineOpts = Options.parse(args);
39 RepositoryLookup.Options cmdLineOpts = RepositoryLookup.Options.parse(args); 38 HgRepository hgRepo = cmdLineOpts.findRepository();
40 HgRepository hgRepo = repoLookup.detect(cmdLineOpts);
41 if (hgRepo.isInvalid()) { 39 if (hgRepo.isInvalid()) {
42 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); 40 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation());
43 return; 41 return;
44 } 42 }
45 System.out.println(hgRepo.getLocation()); 43 System.out.println(hgRepo.getLocation());