Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgInternals.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 | 7232b94f2ae3 |
children | 02f2963c70fa |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgInternals.java Wed Sep 14 04:41:57 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgInternals.java Fri Sep 16 05:35:32 2011 +0200 @@ -25,6 +25,7 @@ import java.net.InetAddress; import java.net.UnknownHostException; +import org.tmatesoft.hg.core.SessionContext; import org.tmatesoft.hg.internal.ConfigFile; import org.tmatesoft.hg.internal.Experimental; import org.tmatesoft.hg.internal.RelativePathRewrite; @@ -114,6 +115,11 @@ // path caching is better to be done in the code which knows that path are being reused return new FileWalker(repoRoot, pathSrc, workindDirScope); } + + // expose othewise package-local information primarily to use in our own o.t.hg.core package + public static SessionContext getContext(HgRepository repo) { + return repo.getContext(); + } // Convenient check of local revision number for validity (not all negative values are wrong as long as we use negative constants)