diff src/org/tmatesoft/hg/internal/Internals.java @ 501:d2f6ab541330

Change the way extensions are accessed (with ExtensionsManager now), add preliminary Rebase extension support
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 29 Oct 2012 19:04:13 +0100
parents ba36f66c32b4
children bf352ce2b97f
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/Internals.java	Mon Oct 29 18:16:21 2012 +0100
+++ b/src/org/tmatesoft/hg/internal/Internals.java	Mon Oct 29 19:04:13 2012 +0100
@@ -42,7 +42,7 @@
  * @author Artem Tikhomirov
  * @author TMate Software Ltd.
  */
-public final class Internals {
+public final class Internals implements SessionContext.Source {
 	
 	/**
 	 * Allows to specify Mercurial installation directory to detect installation-wide configurations.
@@ -95,7 +95,7 @@
 		dataAccess = new DataAccessProvider(ctx);
 		RepoInitializer repoInit = new RepoInitializer().initRequiresFromFile(repoDir);
 		requiresFlags = repoInit.getRequires();
-		dataPathHelper = repoInit.buildDataFilesHelper(getContext());
+		dataPathHelper = repoInit.buildDataFilesHelper(getSessionContext());
 		repoPathHelper = repoInit.buildStoreFilesHelper();
 	}
 	
@@ -135,7 +135,7 @@
 		return new File(repoDir, storagePath.toString());
 	}
 	
-	public SessionContext getContext() {
+	public SessionContext getSessionContext() {
 		return repo.getSessionContext();
 	}