comparison cmdline/org/tmatesoft/hg/console/Options.java @ 95:bcd31a4c638a

Lookup to HgLookup
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 27 Jan 2011 21:22:57 +0100
parents 6f1b88693d48
children a3a2e5deb320
comparison
equal deleted inserted replaced
94:af1f3b78b918 95:bcd31a4c638a
24 import java.util.LinkedList; 24 import java.util.LinkedList;
25 import java.util.List; 25 import java.util.List;
26 import java.util.Set; 26 import java.util.Set;
27 27
28 import org.tmatesoft.hg.repo.HgRepository; 28 import org.tmatesoft.hg.repo.HgRepository;
29 import org.tmatesoft.hg.repo.Lookup; 29 import org.tmatesoft.hg.repo.HgLookup;
30 30
31 /** 31 /**
32 * Parse command-line options 32 * Parse command-line options
33 * 33 *
34 * @author Artem Tikhomirov 34 * @author Artem Tikhomirov
42 public Set<String> users; 42 public Set<String> users;
43 public Set<String> branches; 43 public Set<String> branches;
44 44
45 public HgRepository findRepository() throws Exception { 45 public HgRepository findRepository() throws Exception {
46 if (repoLocation != null) { 46 if (repoLocation != null) {
47 return new Lookup().detect(repoLocation); 47 return new HgLookup().detect(repoLocation);
48 } 48 }
49 return new Lookup().detectFromWorkingDir(); 49 return new HgLookup().detectFromWorkingDir();
50 } 50 }
51 51
52 52
53 public static Options parse(String[] commandLineArgs) { 53 public static Options parse(String[] commandLineArgs) {
54 Options rv = new Options(); 54 Options rv = new Options();