Mercurial > jhg
comparison src/com/tmate/hgkit/console/Cat.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 */ | |
13 public class Cat { | |
14 | |
15 public static void main(String[] args) throws Exception { | |
16 RepositoryFinder repoLookup = new RepositoryFinder(); | |
17 HgRepository hgRepo = repoLookup.detect(args); | |
18 if (hgRepo.isInvalid()) { | |
19 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); | |
20 return; | |
21 } | |
22 } | |
23 } |