Mercurial > jhg
diff src/org/tmatesoft/hg/core/HgRepoFacade.java @ 143:b9700740553a
Command line tools parse and respect most of command-line arguments
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 17 Feb 2011 22:16:25 +0100 |
parents | aa1629f36482 |
children | 1a7a9a20e1f9 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgRepoFacade.java Thu Feb 17 05:06:07 2011 +0100 +++ b/src/org/tmatesoft/hg/core/HgRepoFacade.java Thu Feb 17 22:16:25 2011 +0100 @@ -32,6 +32,14 @@ public HgRepoFacade() { } + + public boolean init(HgRepository hgRepo) { + if (hgRepo == null) { + throw new IllegalArgumentException(); + } + repo = hgRepo; + return !repo.isInvalid(); + } public boolean init() throws Exception /*FIXME RepoInitException*/ { repo = new HgLookup().detectFromWorkingDir();