Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/PhasesHelper.java @ 490:b3c16d1aede0
Refactoring: move HgRepository's implementation aspects to Internals (which is now its imlementation counterpart and primary repository class to be used by other parts of the library)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 16 Aug 2012 17:08:34 +0200 |
parents | 09f2d38ecf26 |
children | ba36f66c32b4 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/PhasesHelper.java Mon Aug 13 19:24:29 2012 +0200 +++ b/src/org/tmatesoft/hg/internal/PhasesHelper.java Thu Aug 16 17:08:34 2012 +0200 @@ -40,7 +40,10 @@ import org.tmatesoft.hg.repo.HgRepository; /** - * Support to deal with phases feature fo Mercurial (as of Mercutial version 2.1) + * Support to deal with Mercurial phases feature (as of Mercurial version 2.1) + * + * @see http://mercurial.selenic.com/wiki/Phases + * @see http://mercurial.selenic.com/wiki/PhasesDevel * * @author Artem Tikhomirov * @author TMate Software Ltd. @@ -134,13 +137,13 @@ continue; } if (lc.length != 2) { - HgInternals.getContext(repo).getLog().dump(getClass(), Warn, "Bad line in phaseroots:%s", line); + repo.getSessionContext().getLog().dump(getClass(), Warn, "Bad line in phaseroots:%s", line); continue; } int phaseIndex = Integer.parseInt(lc[0]); Nodeid rootRev = Nodeid.fromAscii(lc[1]); if (!repo.getChangelog().isKnown(rootRev)) { - HgInternals.getContext(repo).getLog().dump(getClass(), Warn, "Phase(%d) root node %s doesn't exist in the repository, ignored.", phaseIndex, rootRev); + repo.getSessionContext().getLog().dump(getClass(), Warn, "Phase(%d) root node %s doesn't exist in the repository, ignored.", phaseIndex, rootRev); continue; } HgPhase phase = HgPhase.parse(phaseIndex); @@ -159,7 +162,7 @@ try { br.close(); } catch (IOException ex) { - HgInternals.getContext(repo).getLog().dump(getClass(), Info, ex, null); + repo.getSessionContext().getLog().dump(getClass(), Info, ex, null); // ignore the exception otherwise } }