Mercurial > jhg
comparison src/org/tmatesoft/hg/core/RepositoryFacade.java @ 115:c0cc2535462c
Introduced channels to pipeline (and easily filter) data streams
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 03 Feb 2011 23:32:08 +0100 |
parents | 0c9804857000 |
children |
comparison
equal
deleted
inserted
replaced
114:46291ec605a0 | 115:c0cc2535462c |
---|---|
39 | 39 |
40 public boolean initFrom(File repoLocation) throws Exception { | 40 public boolean initFrom(File repoLocation) throws Exception { |
41 repo = new HgLookup().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 | |
45 public HgRepository getRepository() { | |
46 if (repo == null) { | |
47 throw new IllegalStateException("Call any of #init*() methods first first"); | |
48 } | |
49 return repo; | |
50 } | |
44 | 51 |
45 public LogCommand createLogCommand() { | 52 public LogCommand createLogCommand() { |
46 return new LogCommand(repo/*, getCommandContext()*/); | 53 return new LogCommand(repo/*, getCommandContext()*/); |
47 } | 54 } |
48 | 55 |