Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
492:e4eaa23e3442 | 493:ba36f66c32b4 |
---|---|
86 } | 86 } |
87 | 87 |
88 public HgSubrepoLocation newSubrepo(Path loc, String src, Kind kind, Nodeid rev) { | 88 public HgSubrepoLocation newSubrepo(Path loc, String src, Kind kind, Nodeid rev) { |
89 return new HgSubrepoLocation(repo, loc, src, kind, rev); | 89 return new HgSubrepoLocation(repo, loc, src, kind, rev); |
90 } | 90 } |
91 | |
92 public static Internals getImplementationRepo(HgRepository hgRepo) { | |
93 return hgRepo.getImplHelper(); | |
94 } | |
91 | 95 |
92 public static File getRepositoryDir(HgRepository hgRepo) { | |
93 return hgRepo.getRepositoryRoot(); | |
94 } | |
95 | |
96 /** | 96 /** |
97 * @param source where to read definitions from | 97 * @param source where to read definitions from |
98 * @param globPathRewrite <code>null</code> to use default, or pass an instance to override defaults | 98 * @param globPathRewrite <code>null</code> to use default, or pass an instance to override defaults |
99 * @return | 99 * @return |
100 * @throws IOException | 100 * @throws IOException |