Mercurial > hg4j
comparison src/com/tmate/hgkit/console/Status.java @ 10:382cfe9463db
Dirstate parsing. DataAccess refactored to allow reuse and control over constants
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sat, 25 Dec 2010 21:50:12 +0100 |
parents | |
children | 02ee376bee79 |
comparison
equal
deleted
inserted
replaced
9:d6d2a630f4a6 | 10:382cfe9463db |
---|---|
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 import com.tmate.hgkit.ll.LocalHgRepo; | |
9 | |
10 /** | |
11 * | |
12 * @author artem | |
13 */ | |
14 public class Status { | |
15 | |
16 public static void main(String[] args) throws Exception { | |
17 RepositoryLookup repoLookup = new RepositoryLookup(); | |
18 RepositoryLookup.Options cmdLineOpts = RepositoryLookup.Options.parse(args); | |
19 HgRepository hgRepo = repoLookup.detect(cmdLineOpts); | |
20 if (hgRepo.isInvalid()) { | |
21 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); | |
22 return; | |
23 } | |
24 System.out.println(hgRepo.getLocation()); | |
25 ((LocalHgRepo) hgRepo).loadDirstate().dump(); | |
26 } | |
27 } |