Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
492:e4eaa23e3442 | 493:ba36f66c32b4 |
---|---|
22 import java.util.Map; | 22 import java.util.Map; |
23 | 23 |
24 import org.tmatesoft.hg.internal.PhasesHelper; | 24 import org.tmatesoft.hg.internal.PhasesHelper; |
25 import org.tmatesoft.hg.repo.HgChangelog; | 25 import org.tmatesoft.hg.repo.HgChangelog; |
26 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; | 26 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; |
27 import org.tmatesoft.hg.repo.HgInternals; | |
27 import org.tmatesoft.hg.repo.HgPhase; | 28 import org.tmatesoft.hg.repo.HgPhase; |
28 import org.tmatesoft.hg.repo.HgInvalidStateException; | 29 import org.tmatesoft.hg.repo.HgInvalidStateException; |
29 import org.tmatesoft.hg.repo.HgRepository; | 30 import org.tmatesoft.hg.repo.HgRepository; |
30 import org.tmatesoft.hg.repo.HgRuntimeException; | 31 import org.tmatesoft.hg.repo.HgRuntimeException; |
31 import org.tmatesoft.hg.repo.HgStatusCollector; | 32 import org.tmatesoft.hg.repo.HgStatusCollector; |
262 // XXX would be handy to obtain ProgressSupport (perhaps, from statusHelper?) | 263 // XXX would be handy to obtain ProgressSupport (perhaps, from statusHelper?) |
263 // and pass it to #init(), so that there could be indication of file being read and cache being built | 264 // and pass it to #init(), so that there could be indication of file being read and cache being built |
264 synchronized (shared) { | 265 synchronized (shared) { |
265 // ensure field is initialized only once | 266 // ensure field is initialized only once |
266 if (shared.phaseHelper == null) { | 267 if (shared.phaseHelper == null) { |
267 shared.phaseHelper = new PhasesHelper(getRepo(), shared.parentHelper); | 268 shared.phaseHelper = new PhasesHelper(HgInternals.getImplementationRepo(getRepo()), shared.parentHelper); |
268 } | 269 } |
269 } | 270 } |
270 } | 271 } |
271 return shared.phaseHelper.getPhase(this); | 272 return shared.phaseHelper.getPhase(this); |
272 } | 273 } |