diff cmdline/org/tmatesoft/hg/console/Remote.java @ 483:e31e85cf4d4c

Handle include and unset directives in config files
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 07 Aug 2012 19:14:53 +0200
parents 981f9f50bb6c
children
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Remote.java	Tue Aug 07 14:27:13 2012 +0200
+++ b/cmdline/org/tmatesoft/hg/console/Remote.java	Tue Aug 07 19:14:53 2012 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 TMate Software Ltd
+ * Copyright (c) 2011-2012 TMate Software Ltd
  *  
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -35,6 +35,7 @@
 import javax.net.ssl.TrustManager;
 import javax.net.ssl.X509TrustManager;
 
+import org.tmatesoft.hg.internal.BasicSessionContext;
 import org.tmatesoft.hg.internal.ConfigFile;
 
 /**
@@ -90,7 +91,7 @@
 	 empty result
 	 */
 	public static void main(String[] args) throws Exception {
-		ConfigFile cfg =  new ConfigFile();
+		ConfigFile cfg =  new ConfigFile(new BasicSessionContext(null));
 		cfg.addLocation(new File(System.getProperty("user.home"), ".hgrc"));
 		String svnkitServer = cfg.getSection("paths").get("svnkit");
 //		URL url = new URL(svnkitServer + "?cmd=branches&nodes=30bd389788464287cee22ccff54c330a4b715de5");