comparison cmdline/org/tmatesoft/hg/console/Remote.java @ 178:62665d8f0686

Complete logic to discover all branches missing locally. Most of wire protocol in HgRemoteRepository
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 06 Apr 2011 01:34:16 +0200
parents e10225daface
children da426c2fe1ec
comparison
equal deleted inserted replaced
177:e10225daface 178:62665d8f0686
123 // HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); 123 // HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
124 urlConnection.setRequestProperty("User-Agent", "jhg/0.1.0"); 124 urlConnection.setRequestProperty("User-Agent", "jhg/0.1.0");
125 urlConnection.setRequestProperty("Accept", "application/mercurial-0.1"); 125 urlConnection.setRequestProperty("Accept", "application/mercurial-0.1");
126 urlConnection.setRequestProperty("Authorization", "Basic " + authInfo); 126 urlConnection.setRequestProperty("Authorization", "Basic " + authInfo);
127 urlConnection.setSSLSocketFactory(sslContext.getSocketFactory()); 127 urlConnection.setSSLSocketFactory(sslContext.getSocketFactory());
128 byte[] body = "pairs=30bd389788464287cee22ccff54c330a4b715de5-dbd663faec1f0175619cf7668bddc6350548b8d6".getBytes(); 128 byte[] body = "pairs=f5aed108754e817d2ca374d1a4f6daf1218dcc91-9429c7bd1920fab164a9d2b621d38d57bcb49ae0".getBytes();
129 urlConnection.setRequestMethod("POST"); 129 urlConnection.setRequestMethod("POST");
130 urlConnection.setRequestProperty("Content-Length", String.valueOf(body.length)); 130 urlConnection.setRequestProperty("Content-Length", String.valueOf(body.length));
131 urlConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); 131 urlConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
132 urlConnection.setDoOutput(true); 132 urlConnection.setDoOutput(true);
133 urlConnection.setDoInput(true); 133 urlConnection.setDoInput(true);