diff cmdline/org/tmatesoft/hg/console/Remote.java @ 114:46291ec605a0

Filters to read and initialize according to configuration files
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 03 Feb 2011 22:13:55 +0100
parents a3a2e5deb320
children 6b55f10ef54b
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Remote.java	Wed Feb 02 21:19:02 2011 +0100
+++ b/cmdline/org/tmatesoft/hg/console/Remote.java	Thu Feb 03 22:13:55 2011 +0100
@@ -33,6 +33,7 @@
 import javax.net.ssl.X509TrustManager;
 
 import org.tmatesoft.hg.internal.ConfigFile;
+import org.tmatesoft.hg.internal.Internals;
 
 /**
  * WORK IN PROGRESS, DO NOT USE
@@ -53,7 +54,7 @@
 	 */
 	public static void main(String[] args) throws Exception {
 		String nid = "d6d2a630f4a6d670c90a5ca909150f2b426ec88f";
-		ConfigFile cfg = new ConfigFile();
+		ConfigFile cfg = new Internals().newConfigFile();
 		cfg.addLocation(new File(System.getProperty("user.home"), ".hgrc"));
 		String svnkitServer = cfg.getSection("paths").get("svnkit");
 		URL url = new URL(svnkitServer + "?cmd=changegroup&roots=a78c980749e3ccebb47138b547e9b644a22797a9");