comparison src/com/tmate/hgkit/console/Manifest.java @ 13:df8c67f3006a

Basic manifest parsing to analyze what's in there
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sun, 26 Dec 2010 03:21:17 +0100
parents
children 40532cdc92fc
comparison
equal deleted inserted replaced
12:181fccc176ef 13:df8c67f3006a
1 /*
2 * Copyright (c) 2010 Artem Tikhomirov
3 */
4 package com.tmate.hgkit.console;
5
6 import com.tmate.hgkit.fs.RepositoryLookup;
7 import com.tmate.hgkit.ll.HgRepository;
8
9 /**
10 *
11 * @author artem
12 */
13 public class Manifest {
14
15 public static void main(String[] args) throws Exception {
16 RepositoryLookup repoLookup = new RepositoryLookup();
17 RepositoryLookup.Options cmdLineOpts = RepositoryLookup.Options.parse(args);
18 HgRepository hgRepo = repoLookup.detect(cmdLineOpts);
19 if (hgRepo.isInvalid()) {
20 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation());
21 return;
22 }
23 System.out.println(hgRepo.getLocation());
24 hgRepo.getManifest().dump();
25 }
26 }