diff src/org/tmatesoft/hg/core/HgChangeset.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 7bcfbc255f48
children 934037edbea0
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgChangeset.java	Thu Oct 18 16:27:32 2012 +0200
+++ b/src/org/tmatesoft/hg/core/HgChangeset.java	Thu Oct 18 18:36:13 2012 +0200
@@ -24,6 +24,7 @@
 import org.tmatesoft.hg.internal.PhasesHelper;
 import org.tmatesoft.hg.repo.HgChangelog;
 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset;
+import org.tmatesoft.hg.repo.HgInternals;
 import org.tmatesoft.hg.repo.HgPhase;
 import org.tmatesoft.hg.repo.HgInvalidStateException;
 import org.tmatesoft.hg.repo.HgRepository;
@@ -264,7 +265,7 @@
 			synchronized (shared) {
 				// ensure field is initialized only once 
 				if (shared.phaseHelper == null) {
-					shared.phaseHelper = new PhasesHelper(getRepo(), shared.parentHelper);
+					shared.phaseHelper = new PhasesHelper(HgInternals.getImplementationRepo(getRepo()), shared.parentHelper);
 				}
 			}
 		}