Mercurial > jhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
113:67ae317408c9 | 114:46291ec605a0 |
---|---|
31 import javax.net.ssl.SSLContext; | 31 import javax.net.ssl.SSLContext; |
32 import javax.net.ssl.TrustManager; | 32 import javax.net.ssl.TrustManager; |
33 import javax.net.ssl.X509TrustManager; | 33 import javax.net.ssl.X509TrustManager; |
34 | 34 |
35 import org.tmatesoft.hg.internal.ConfigFile; | 35 import org.tmatesoft.hg.internal.ConfigFile; |
36 import org.tmatesoft.hg.internal.Internals; | |
36 | 37 |
37 /** | 38 /** |
38 * WORK IN PROGRESS, DO NOT USE | 39 * WORK IN PROGRESS, DO NOT USE |
39 * | 40 * |
40 * @author Artem Tikhomirov | 41 * @author Artem Tikhomirov |
51 nodeids are in hex (printable) format, need to convert fromAscii() | 52 nodeids are in hex (printable) format, need to convert fromAscii() |
52 cmd=branchmap | 53 cmd=branchmap |
53 */ | 54 */ |
54 public static void main(String[] args) throws Exception { | 55 public static void main(String[] args) throws Exception { |
55 String nid = "d6d2a630f4a6d670c90a5ca909150f2b426ec88f"; | 56 String nid = "d6d2a630f4a6d670c90a5ca909150f2b426ec88f"; |
56 ConfigFile cfg = new ConfigFile(); | 57 ConfigFile cfg = new Internals().newConfigFile(); |
57 cfg.addLocation(new File(System.getProperty("user.home"), ".hgrc")); | 58 cfg.addLocation(new File(System.getProperty("user.home"), ".hgrc")); |
58 String svnkitServer = cfg.getSection("paths").get("svnkit"); | 59 String svnkitServer = cfg.getSection("paths").get("svnkit"); |
59 URL url = new URL(svnkitServer + "?cmd=changegroup&roots=a78c980749e3ccebb47138b547e9b644a22797a9"); | 60 URL url = new URL(svnkitServer + "?cmd=changegroup&roots=a78c980749e3ccebb47138b547e9b644a22797a9"); |
60 | 61 |
61 SSLContext sslContext = SSLContext.getInstance("SSL"); | 62 SSLContext sslContext = SSLContext.getInstance("SSL"); |