comparison src/com/tmate/hgkit/console/Cat.java @ 2:08db726a0fb7

Shaping out low-level Hg structures
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sun, 19 Dec 2010 05:41:31 +0100
parents a3576694a4d1
children 24bb4f365164
comparison
equal deleted inserted replaced
1:a3576694a4d1 2:08db726a0fb7
1 /** 1 /**
2 * Copyright (c) 2010 Artem Tikhomirov 2 * Copyright (c) 2010 Artem Tikhomirov
3 */ 3 */
4 package com.tmate.hgkit.console; 4 package com.tmate.hgkit.console;
5 5
6 import com.tmate.hgkit.fs.RepositoryFinder; 6 import com.tmate.hgkit.fs.RepositoryLookup;
7 import com.tmate.hgkit.ll.HgRepository; 7 import com.tmate.hgkit.ll.HgRepository;
8 8
9 /** 9 /**
10 * @author artem 10 * @author artem
11 * 11 *
12 */ 12 */
13 public class Cat { 13 public class Cat {
14 14
15 public static void main(String[] args) throws Exception { 15 public static void main(String[] args) throws Exception {
16 RepositoryFinder repoLookup = new RepositoryFinder(); 16 RepositoryLookup repoLookup = new RepositoryLookup();
17 HgRepository hgRepo = repoLookup.detect(args); 17 HgRepository hgRepo = repoLookup.detect(args);
18 if (hgRepo.isInvalid()) { 18 if (hgRepo.isInvalid()) {
19 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); 19 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation());
20 return; 20 return;
21 } 21 }