Mercurial > hg4j
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/com/tmate/hgkit/console/Log.java Sat Dec 18 05:47:35 2010 +0100 @@ -0,0 +1,26 @@ +/** + * Copyright (c) 2010 Artem Tikhomirov + */ +package com.tmate.hgkit.console; + +import com.tmate.hgkit.fs.RepositoryFinder; +import com.tmate.hgkit.ll.HgRepository; + +/** + * @author artem + */ +public class Log { + + public static void main(String[] args) throws Exception { + RepositoryFinder repoLookup = new RepositoryFinder(); + HgRepository hgRepo = repoLookup.detect(args); + if (hgRepo.isInvalid()) { + System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); + return; + } + System.out.println(hgRepo.getLocation()); + //new ChangelogWalker().setFile("hello.c").setRevisionRange(1, 4).accept(new Visitor); + + } + +}