comparison src/org/tmatesoft/hg/core/RepositoryFacade.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
17 package org.tmatesoft.hg.core; 17 package org.tmatesoft.hg.core;
18 18
19 import java.io.File; 19 import java.io.File;
20 20
21 import org.tmatesoft.hg.repo.HgRepository; 21 import org.tmatesoft.hg.repo.HgRepository;
22 import org.tmatesoft.hg.repo.Lookup; 22 import org.tmatesoft.hg.repo.HgLookup;
23 23
24 /** 24 /**
25 * 25 *
26 * @author Artem Tikhomirov 26 * @author Artem Tikhomirov
27 * @author TMate Software Ltd. 27 * @author TMate Software Ltd.
31 31
32 public RepositoryFacade() { 32 public RepositoryFacade() {
33 } 33 }
34 34
35 public boolean init() throws Exception /*FIXME RepoInitException*/ { 35 public boolean init() throws Exception /*FIXME RepoInitException*/ {
36 repo = new Lookup().detectFromWorkingDir(); 36 repo = new HgLookup().detectFromWorkingDir();
37 return repo != null && !repo.isInvalid(); 37 return repo != null && !repo.isInvalid();
38 } 38 }
39 39
40 public boolean initFrom(File repoLocation) throws Exception { 40 public boolean initFrom(File repoLocation) throws Exception {
41 repo = new Lookup().detect(repoLocation.getCanonicalPath()); 41 repo = new HgLookup().detect(repoLocation.getCanonicalPath());
42 return repo != null && !repo.isInvalid(); 42 return repo != null && !repo.isInvalid();
43 } 43 }
44 44
45 public LogCommand createLogCommand() { 45 public LogCommand createLogCommand() {
46 return new LogCommand(repo/*, getCommandContext()*/); 46 return new LogCommand(repo/*, getCommandContext()*/);