comparison src/com/tmate/hgkit/console/Log.java @ 1:a3576694a4d1

Repository detection from local/specified directory
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sat, 18 Dec 2010 05:47:35 +0100
parents
children 08db726a0fb7
comparison
equal deleted inserted replaced
0:dbd663faec1f 1:a3576694a4d1
1 /**
2 * Copyright (c) 2010 Artem Tikhomirov
3 */
4 package com.tmate.hgkit.console;
5
6 import com.tmate.hgkit.fs.RepositoryFinder;
7 import com.tmate.hgkit.ll.HgRepository;
8
9 /**
10 * @author artem
11 */
12 public class Log {
13
14 public static void main(String[] args) throws Exception {
15 RepositoryFinder repoLookup = new RepositoryFinder();
16 HgRepository hgRepo = repoLookup.detect(args);
17 if (hgRepo.isInvalid()) {
18 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation());
19 return;
20 }
21 System.out.println(hgRepo.getLocation());
22 //new ChangelogWalker().setFile("hello.c").setRevisionRange(1, 4).accept(new Visitor);
23
24 }
25
26 }