Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/HgSubrepoLocation.java @ 295:981f9f50bb6c
Issue 11: Error log facility. SessionContext to share common facilities
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 16 Sep 2011 05:35:32 +0200 |
parents | df9d2854d3d6 |
children | 2747b0723867 |
comparison
equal
deleted
inserted
replaced
294:32890bab7209 | 295:981f9f50bb6c |
---|---|
17 package org.tmatesoft.hg.repo; | 17 package org.tmatesoft.hg.repo; |
18 | 18 |
19 import java.io.File; | 19 import java.io.File; |
20 | 20 |
21 import org.tmatesoft.hg.core.HgBadStateException; | 21 import org.tmatesoft.hg.core.HgBadStateException; |
22 import org.tmatesoft.hg.core.HgException; | 22 import org.tmatesoft.hg.core.HgInvalidFileException; |
23 import org.tmatesoft.hg.internal.Experimental; | 23 import org.tmatesoft.hg.internal.Experimental; |
24 import org.tmatesoft.hg.util.Path; | 24 import org.tmatesoft.hg.util.Path; |
25 | 25 |
26 /** | 26 /** |
27 * WORK IN PROGRESS, DO NOT USE | 27 * WORK IN PROGRESS, DO NOT USE |
84 | 84 |
85 public HgRepository getOwner() { | 85 public HgRepository getOwner() { |
86 return owner; | 86 return owner; |
87 } | 87 } |
88 | 88 |
89 public HgRepository getRepo() throws HgException { | 89 public HgRepository getRepo() throws HgInvalidFileException { |
90 if (kind != Kind.Hg) { | 90 if (kind != Kind.Hg) { |
91 throw new HgBadStateException(); | 91 throw new HgBadStateException(); |
92 } | 92 } |
93 return new HgLookup().detect(new File(owner.getWorkingDir(), source)); | 93 return new HgLookup().detect(new File(owner.getWorkingDir(), source)); |
94 } | 94 } |