Mercurial > jhg
diff src/org/tmatesoft/hg/repo/HgInternals.java @ 493:ba36f66c32b4
Refactor to keep knowledge about repository control files and their location in respect to .hg/ in a single place (facilitate future adoption of shared repositories)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 18 Oct 2012 18:36:13 +0200 |
parents | b3c16d1aede0 |
children | e1b29756f901 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgInternals.java Thu Oct 18 16:27:32 2012 +0200 +++ b/src/org/tmatesoft/hg/repo/HgInternals.java Thu Oct 18 18:36:13 2012 +0200 @@ -88,11 +88,11 @@ public HgSubrepoLocation newSubrepo(Path loc, String src, Kind kind, Nodeid rev) { return new HgSubrepoLocation(repo, loc, src, kind, rev); } + + public static Internals getImplementationRepo(HgRepository hgRepo) { + return hgRepo.getImplHelper(); + } - public static File getRepositoryDir(HgRepository hgRepo) { - return hgRepo.getRepositoryRoot(); - } - /** * @param source where to read definitions from * @param globPathRewrite <code>null</code> to use default, or pass an instance to override defaults