diff src/org/tmatesoft/hg/repo/HgDataFile.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 909306e412e2
children abfbe81154b5
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgDataFile.java	Mon Aug 13 19:24:29 2012 +0200
+++ b/src/org/tmatesoft/hg/repo/HgDataFile.java	Thu Aug 16 17:08:34 2012 +0200
@@ -182,7 +182,7 @@
 					try {
 						fc.close();
 					} catch (IOException ex) {
-						getRepo().getContext().getLog().dump(getClass(), Warn, ex, null);
+						getRepo().getSessionContext().getLog().dump(getClass(), Warn, ex, null);
 					}
 				}
 			}
@@ -208,7 +208,7 @@
 		final int csetRevIndex;
 		if (p.isNull()) {
 			// no dirstate parents 
-			getRepo().getContext().getLog().dump(getClass(), Info, "No dirstate parents, resort to TIP", getPath());
+			getRepo().getSessionContext().getLog().dump(getClass(), Info, "No dirstate parents, resort to TIP", getPath());
 			// if it's a repository with no dirstate, use TIP then
 			csetRevIndex = clog.getLastRevision();
 			if (csetRevIndex == -1) {
@@ -283,7 +283,7 @@
 			metadata = new Metadata();
 		}
 		ErrorHandlingInspector insp;
-		final LogFacility lf = getRepo().getContext().getLog();
+		final LogFacility lf = getRepo().getSessionContext().getLog();
 		if (metadata.none(fileRevisionIndex)) {
 			insp = new ContentPipe(sink, 0, lf);
 		} else if (metadata.known(fileRevisionIndex)) {